Skip to content

feat(i18n): add Persian runtime language support - #270

Merged
khaira777 merged 1 commit into
mainfrom
feat/241-a-fa-runtime-wiring
Aug 13, 2026
Merged

khaira777 merged 1 commit into
mainfrom
feat/241-a-fa-runtime-wiring

Conversation

@khaira777

@khaira777 khaira777 commented Aug 13, 2026 •

Copy link
Copy Markdown
Contributor

This PR makes fa a recognized runtime language internally but does not yet expose Persian in Setup/Settings or browser auto-detection. User-facing enablement remains gated on translation, RTL, locale and printing work.

  • Add fa to Language type in i18n.ts and import fa.json
  • Add fa-IR locale to ICU plural formatter
  • Accept fa in fetchServerInfo language validation
  • Update Zustand pos-settings store to use canonical Language type
  • Update Tenant type in types.ts to use Language
  • Fix syncTenantLanguage in auth store to preserve valid fa on auth load
  • Update ServerKdsInfo.language in useServerKdsInfo

Refs #241

@khaira777 khaira777 linked an issue Aug 13, 2026 that may be closed by this pull request
18 tasks done
This PR makes fa a recognized runtime language internally but does not yet expose Persian in Setup/Settings or browser auto-detection. User-facing enablement remains gated on translation, RTL, locale and printing work.

- Add 'fa' to Language type in i18n.ts
- Import fa.json and add to translations map
- Add 'fa-IR' locale to ICU plural formatter
- Accept 'fa' in fetchServerInfo language validation
- Update Zustand pos-settings store to use canonical Language type
- Update Tenant type in types.ts to use Language
- Fix syncTenantLanguage in auth store to preserve valid 'fa' on auth load
- Fix ServerKdsInfo.language in useServerKdsInfo to use Language

Refs #241
@khaira777
khaira777 force-pushed the feat/241-a-fa-runtime-wiring branch from 04f37ab to 7558023 Compare August 13, 2026 00:26
@khaira777 khaira777 changed the title feat(i18n): wire fa language into runtime feat(i18n): add Persian runtime language support Aug 13, 2026
@khaira777
khaira777 marked this pull request as ready for review August 13, 2026 00:36
@khaira777
khaira777 requested a review from itsbkm as a code owner August 13, 2026 00:36
@khaira777 khaira777 self-assigned this Aug 13, 2026
@khaira777
khaira777 merged commit 6f5f05a into main Aug 13, 2026
5 checks passed
@khaira777
khaira777 deleted the feat/241-a-fa-runtime-wiring branch August 13, 2026 00:36
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.

feat(i18n): add Persian/Farsi and Iran support

1 participant