feat: merge community PRs (#86 Chinese, #114 Spanish) + add Arabic locale with RTL#117
Open
abdelrahmanmegaly-jpg wants to merge 5 commits into
Open
Conversation
Add a Simplified Chinese locale to the dashboard, following the i18n pattern introduced in rmyndharis#64. Chinese is now available alongside English and Hebrew via the existing sidebar language switcher. What's included: - New `src/i18n/locales/zh.json` mirroring the structure of `en.json`, covering all pages, components, and toast messages (404 keys + a new `common.chinese` label, identical hierarchy to `en.json`) - `zh` registered in `src/i18n/index.ts` (`supportedLanguages`, `resources`) so the language detector picks up `zh-*` browsers automatically and the cycle-language button rotates through it - Language label in `Layout.tsx` switched from a binary `he`/EN ternary to a `SupportedLanguage` lookup, so adding more languages later only requires extending the map; `zh` shows as `中文` - `common.chinese` key added to `en.json` for parity with the existing `common.english` / `common.hebrew` entries No code, API, schema, or styling changes outside i18n. RTL list is unchanged (Chinese is LTR). Existing users see no behavior change unless their browser is set to `zh-*` or they pick 中文 from the sidebar. Verified: - `npm run build` passes (tsc -b clean, vite build succeeds) - `npm run lint` reports no new errors (3 pre-existing warnings) - Key parity check: `en.json` and `zh.json` have identical key sets apart from the intentional new `common.chinese` - Chinese strings present in the production bundle (verified via grep on `dist/assets/index-*.js`)
…ish) + add Arabic locale with RTL - Merge upstream PR rmyndharis#86: Chinese locale (zh.json) - Merge upstream PR rmyndharis#114: Spanish locale (es.json) + dashboard updates - Add Arabic translation (ar.json) with full RTL support - Improve language selector UI (button + dropdown matching sidebar buttons) - Add Arabic to rtlLanguages alongside Hebrew - Resolve merge conflicts in Layout.tsx and i18n/index.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR consolidates community contributions and adds full Arabic language support with RTL.
Community Contributions Merged
zh.json)es.json) + dashboard updatesNew: Arabic Locale (
ar)UI Improvement
Conflict Resolution
Layout.tsxandi18n/index.tsto include all 5 languages (en, ar, he, zh, es)