Repository navigation
Conversation
Let users choose the dashboard language in account settings and keep it across navigation and reload. Load catalogs locally, isolate SSR translation state and support right-to-left interfaces. Self-hosters rebuild the dashboard; no migration or new environment variable is required. The browser preference uses a one-year ui-language cookie. Initial translations are machine-assisted and need native-speaker review.
|
Important Review skippedToo many files! This PR contains 345 files, which is 45 over the limit of 300. To get a review, reduce the PR to 300 files or fewer by splitting it into smaller PRs or changing its base branch. Usage-priced reviews support at most 300 files.
|
Include draft pull requests in automatic reviews while inheriting the existing repository and organization settings.
|
@coderabbitai review |
Action not completed
|
|
@coderabbitai configuration |
|
Configuration used: Auto · no configuration file from this repository applied; Layers: defaults CodeRabbit configuration
|
The dashboard's interface is fixed to English, which makes it harder to use for non-English-speaking self-hosters. This adds Account → Profile → Language, with 30 locally bundled languages, live switching, and a browser-local preference that survives navigation and reload.
The requested initial languages include English, Simplified Chinese, Hindi, Spanish, Arabic, Turkish and Russian. Arabic, Persian, Hebrew and Urdu set both the document and Radix direction to RTL.
Implementation
ui-languagepreference. The selector stays disabled until hydration so early interaction cannot be lost; download errors preserve the old language.apps/start/src/i18n/README.md.The catalogs are an initial machine-assisted baseline, generated offline with the MIT-licensed M2M100 model. Core labels were manually corrected, with additional Russian analytics vocabulary review. Native-speaker review is needed; key completeness tests do not establish linguistic accuracy. Some composed/dynamic copy and date-picker labels still retain English.
Validation
bun run typecheck: 23/23 workspaces passed.bun run test: full suite passed, including the dashboard's 128 tests.NITRO=1 SELF_HOSTED=1 bun run --filter start build: production build passed.language-settings.spec.ts: 33 browser tests passed on the existing local self-hosted dashboard: all 30 choices, reload/navigation persistence, RTL, invalid-cookie fallback and failed catalog download. No extra dashboard was launched. Current main uses the v3 backend rewrite; the shared language feature was backported to the installed 2.x version for this browser run. The screenshots below show that run, not a separately deployed v3 stack.ultracite fixmishandles literal$route filenames in its command wrapper, so Biome was invoked directly for those paths. Comparison with the unmodified base found zero introduced diagnostics; 99 existing lint diagnostics in touched files remain. No lint rules were disabled or unrelated hook/filename refactors made.Screenshots
Account settings, with input values masked:
English:

Russian:

Arabic, with RTL direction:

Hindi · Simplified Chinese
Upgrade notes
Self-hosters rebuild/redeploy the dashboard. This adds a non-sensitive browser preference cookie,
ui-language, lasting one year. English remains the default. No database migration, environment variable, backend API change, or analytics-data change is required.