A free open source IT asset/license management system
Move translations from guideline to rule
Marcus Moore38ecee7b15df
diff --git a/.ai/guidelines/snipe-it-architecture.md b/.ai/guidelines/snipe-it-architecture.mdindex ea98dce6ae..31cd48ae70 100644--- a/.ai/guidelines/snipe-it-architecture.md+++ b/.ai/guidelines/snipe-it-architecture.md@@ -56,10 +56,6 @@ After checkout, `Helper::getRedirectOption()` reads `$request->redirect_option`.- `checkout_to_type=user`- `assigned_user={{ $user->id }}`-## Translations--UI strings are translation keys in `resources/lang/en-US/general.php` and its sibling files. Always add a new key rather than hard-coding English in a view.-## Global View Variables`$snipeSettings` is shared with every view by `SettingsServiceProvider`. Use it directly in Blade — do not pass `Setting::getSettings()` from the controller.diff --git a/.ai/rules/app.md b/.ai/rules/app.mdindex fe0b20f307..c557b0e38d 100644--- a/.ai/rules/app.md+++ b/.ai/rules/app.md@@ -5,5 +5,10 @@ paths:# App+## Translations++UI strings are translation keys in `resources/lang/en-US/general.php` and its sibling files. Always add a new key rather+than hard-coding English in a view.+## Use trans(), never __()Translate with `trans('admin/hardware/message.some_key')` using short dotted keys from `resources/lang/<locale>/`. Never use `__()` — it appears nowhere in this codebase. Add a new key rather than hard-coding English.diff --git a/.ai/rules/views.md b/.ai/rules/views.mdindex 0cd96cdaed..53e8a0c958 100644--- a/.ai/rules/views.md+++ b/.ai/rules/views.md@@ -5,6 +5,11 @@ paths:# Views+## Translations++UI strings are translation keys in `resources/lang/en-US/general.php` and its sibling files. Always add a new key rather+than hard-coding English in a view.+## Use trans(), never __()Translate with `trans('general.some_key')` using short dotted keys from `resources/lang/<locale>/`. Never use `__()` — it appears nowhere in this codebase. Add a new key rather than hard-coding English.diff --git a/AGENTS.md b/AGENTS.mdindex 3d39c2e6d9..2ee90c6d3e 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -59,10 +59,6 @@ After checkout, `Helper::getRedirectOption()` reads `$request->redirect_option`.- `checkout_to_type=user`- `assigned_user={{ $user->id }}`-## Translations--UI strings are translation keys in `resources/lang/en-US/general.php` and its sibling files. Always add a new key rather than hard-coding English in a view.-## Global View Variables`$snipeSettings` is shared with every view by `SettingsServiceProvider`. Use it directly in Blade — do not pass `Setting::getSettings()` from the controller.diff --git a/CLAUDE.md b/CLAUDE.mdindex 3d39c2e6d9..2ee90c6d3e 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -59,10 +59,6 @@ After checkout, `Helper::getRedirectOption()` reads `$request->redirect_option`.- `checkout_to_type=user`- `assigned_user={{ $user->id }}`-## Translations--UI strings are translation keys in `resources/lang/en-US/general.php` and its sibling files. Always add a new key rather than hard-coding English in a view.-## Global View Variables`$snipeSettings` is shared with every view by `SettingsServiceProvider`. Use it directly in Blade — do not pass `Setting::getSettings()` from the controller.