Skip to content

fix(i18n): split locale catalogs and address #81 review feedback - #85

Merged
wassgha merged 4 commits into
mainfrom
cursor/i18n-fixes-c54c
Aug 12, 2026
Merged

fix(i18n): split locale catalogs and address #81 review feedback#85
wassgha merged 4 commits into
mainfrom
cursor/i18n-fixes-c54c

Conversation

@wassgha

@wassgha wassgha commented Aug 12, 2026

Copy link
Copy Markdown
Owner

Follow-up to #81 (now merged): review fixes, split locale catalogs, and expand beyond English/Chinese.

Rebased onto latest main.

Multi-locale support

Supported UI locales (with system detection):

  • English (en)
  • Simplified Chinese (zh-CN) — zh, zh-Hans, …
  • Traditional Chinese (zh-TW) — zh-TW, zh-HK, zh-MO, zh-Hant
  • Japanese (ja)
  • Korean (ko)
  • Spanish (es)
  • French (fr)
  • German (de)

Detection walks navigator.languages / app.getLocale() and picks the first supported tag. Settings lists every locale by native endonym; “System” follows the OS/browser list.

Adding another language is mostly: append to UI_LOCALES in lib/i18n/locales.ts, add messages/<id>.ts + electron/locale/<id>.ts, register in the catalog maps.

Also includes earlier #81 review fixes

  • Split renderer/Electron catalogs into dedicated files
  • Runtime message map derived from the English catalog; emitters use en[...]
  • Restored upload “browse” CTA styling and singular/plural word counts
  • Restored original English product copy

Validation

  • npm run test:i18n
  • npx tsc --noEmit
  • npm run typecheck:electron
  • npm run lint
  • npm run build:electron
Open in Web Open in Cursor 

@vercel

vercel Bot commented Aug 12, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
app.rescript Ready Ready Preview Aug 12, 2026 4:49am

cursoragent and others added 4 commits August 12, 2026 04:49
Move EN/zh-CN strings into dedicated message modules, derive the runtime
message map from the English catalog, restore browse CTA styling and
singular word counts, and wire emitters to catalog strings to prevent drift.

Co-authored-by: Wassim Gharbi <wassgha@gmail.com>
Co-authored-by: Wassim Gharbi <wassgha@gmail.com>
Co-authored-by: Wassim Gharbi <wassgha@gmail.com>
Make UI locale registration data-driven, detect Traditional Chinese /
Japanese / Korean / Spanish / French / German from the system language
list, and ship matching renderer + Electron catalogs plus NSIS languages.

Co-authored-by: Wassim Gharbi <wassgha@gmail.com>
@cursor
cursor Bot force-pushed the cursor/i18n-fixes-c54c branch from f315a08 to 5686aff Compare August 12, 2026 04:49
@wassgha
wassgha marked this pull request as ready for review August 12, 2026 04:55
@wassgha
wassgha merged commit fc505cb into main Aug 12, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants