Skip to content

feat(i18n): add Persian translation and Iran country profile foundation - #267

Merged
khaira777 merged 2 commits into
FreeOpenSourcePOS:mainfrom
MaMaDTHUG82:MaMaDTHUG82/issue241
Aug 12, 2026
Merged

khaira777 merged 2 commits into
FreeOpenSourcePOS:mainfrom
MaMaDTHUG82:MaMaDTHUG82/issue241

Conversation

@MaMaDTHUG82

@MaMaDTHUG82 MaMaDTHUG82 commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Refs #241

Initial Persian translation and initial Iran profile contributed by @MaMaDTHUG82. Maintainer follow-up completes the technical integration and verification for this initial foundation PR.

Note

This PR is the first part of umbrella issue #241. Merging #267 does NOT complete #241 and must NOT close #241.

Scope of this PR

  • Preserves the contributor-provided initial Persian translation (frontend/src/lib/i18n/fa.json) and hooks it into translation integrity tests:
    • 1,668/1,668 translation keys are present with 100% key parity against en.json.
    • Translation integrity checks pass (npm run test:translations).
    • 732 values currently remain as English fallbacks.
    • Further native review and translation are still required before Persian is advertised as complete or enabled as a production UI language.
  • Adds the Iran (IR) locale and country profile (fa-IR, IRR, Asia/Tehran, +98, taxIdLabel: 'Economic Code', taxName: 'VAT').
  • Persian is NOT yet advertised in the setup/settings UI or enabled as a selectable runtime language in this PR to avoid shipping an un-wired or partial experience.

Proposed Follow-Up Sequence for #241

  1. PR A (feat(i18n): add Persian translation and Iran country profile foundation #267 - This PR): Initial Persian translation + Iran country-profile foundation.
  2. PR B: Persian runtime language wiring (shared Language type, translation import/map, Zustand settings, setup/settings selectors, server/KDS language metadata parsing, KDS HTML lang).
  3. PR C: RTL & locale UX (dir="rtl" for fa, layout mirror/adjustments for setup, dashboard, POS, KDS, settings, mixed LTR/RTL input controls, dates/numbers/currency formatting, explicit Rial/Toman UX design).
  4. PR D: Printing (browser receipt direction, Persian font/render verification, thermal printer Unicode/shaping/RTL capability and fallback documentation).

Tax pack rules and automated tax compliance are explicitly outside the scope of issue #241.

@MaMaDTHUG82
MaMaDTHUG82 requested a review from itsbkm as a code owner August 12, 2026 21:24
@MaMaDTHUG82 MaMaDTHUG82 changed the title release: prepare 3.0.5 issue241 Aug 12, 2026
@MaMaDTHUG82 MaMaDTHUG82 reopened this Aug 12, 2026
@MaMaDTHUG82

Copy link
Copy Markdown
Contributor Author

totally wrong PR

@MaMaDTHUG82 MaMaDTHUG82 reopened this Aug 12, 2026
@khaira777
khaira777 marked this pull request as draft August 12, 2026 22:56
@khaira777 khaira777 changed the title issue241 feat(i18n): add Persian translation and Iran country profile foundation Aug 12, 2026
@khaira777 khaira777 added enhancement New feature or request area:frontend Frontend (React/Next.js) area:backend Backend (Express/SQLite) labels Aug 12, 2026
@khaira777

Copy link
Copy Markdown
Contributor

I’m taking over the technical integration on this PR so your translation work stays credited here. I’ve moved the Iran-specific UX questions to #241 so we can use your answers across the follow-up PRs.

@khaira777 khaira777 self-assigned this Aug 12, 2026
@khaira777
khaira777 marked this pull request as ready for review August 12, 2026 23:20
MaMaDTHUG82 and others added 2 commits August 12, 2026 19:34
…ofile

- Update Iran (IR) country profile to use 'Economic Code' for taxIdLabel and 'VAT' for taxName.
- Add fa.json to translation integrity tests (tests/translations.test.ts).
- Clean up invalid JSON escape sequences and Portuguese ICU plural remnants in fa.json.
- Revert setup-page language selector change until Persian runtime wiring and RTL are fully supported (PR B/C).
- Add regression tests for Iran country profile (tests/country-profile.test.ts).

Co-authored-by: MaMaD_THUG <[email protected]>
@khaira777
khaira777 force-pushed the MaMaDTHUG82/issue241 branch from 644914b to a141e50 Compare August 12, 2026 23:34
@khaira777
khaira777 merged commit c21b727 into FreeOpenSourcePOS:main Aug 12, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:backend Backend (Express/SQLite) area:frontend Frontend (React/Next.js) enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants