Split the settings locale files into one folder per page

Merged
JO
24d ago
+12183-12026

Problem

config/locales/views/settings/<lang>.yml holds every settings page, so parallel PRs that add settings strings collide on the same files. Split out of #4773 so that PR's diff stays about AI transports.

Change

Each settings page gets config/locales/views/settings/<page>/<lang>.yml (ai_prompts, appearances, background_jobs, budget_shares, debugs, llm_usages, mcp, payments, preferences, profiles, plus the existing folders). The shared nav and partial strings stay in settings/<lang>.yml. Duplicate copies of securities.show keys, which settings/securities/ already overrode, are dropped.

No code changes; no user-visible change.

Validation

  • Dumped every loaded translation (all locales, every key and value) through I18n.backend on main and on this branch: identical.
  • bin/rails test test/i18n_test.rb: green.

Should merge before #4775 (2c), which adds strings under settings/ai_prompts/.

🤖 Generated with Claude Code


Summary by cubic

Splits the settings locale files by page so parallel PRs that add settings strings no longer collide on the same settings/<lang>.yml files.

  • Each settings page now has its own config/locales/views/settings/<page>/<lang>.yml; shared nav and partial strings stay in settings/<lang>.yml.
  • Removed duplicate securities.show keys that settings/securities/ already overrode.
  • No code or user-visible changes; all loaded translations verified identical to main through I18n.

Merge before the AI prompts PR, which adds strings under settings/ai_prompts/.

Summary by CodeRabbit

  • New Features
    • Expanded translations across settings pages, including AI prompts, appearance, background jobs, debugging, usage and costs, payments, preferences, profiles, providers, security, and connected clients.
    • Added localized guidance, confirmations, status messages, and provider setup instructions in numerous languages.
  • Documentation
    • Added translated explanations for cost estimates, encryption setup, and risks associated with custom AI prompts.
  • Chores
    • Some settings translations were removed from locale files; availability may vary by language.