Skip to content

feat(i18n): sync html lang and dir attributes on language change - #271

Merged
khaira777 merged 2 commits into
mainfrom
feat/241-b-html-lang-dir
Aug 13, 2026
Merged

khaira777 merged 2 commits into
mainfrom
feat/241-b-html-lang-dir

Conversation

@khaira777

@khaira777 khaira777 commented Aug 13, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Synchronizes <html lang> and <html dir> attributes dynamically with the active UI language selected in pos-settings.

  • Adds shared HtmlLangSync client component setting lang and dir attributes (fa -> lang="fa-IR" and dir="rtl"; others -> ltr)
  • Mounts HtmlLangSync in root layout
  • Updates KdsHtmlLang component in KDS standalone layout to handle fa and dir attributes

Testing

  • npm run build:frontend: PASS (clean static export)
  • npm run lint: PASS (0 errors)

Refs #241

@khaira777 khaira777 linked an issue Aug 13, 2026 that may be closed by this pull request
18 tasks done
@khaira777
khaira777 force-pushed the feat/241-a-fa-runtime-wiring branch from 04f37ab to 7558023 Compare August 13, 2026 00:26
@khaira777
khaira777 force-pushed the feat/241-b-html-lang-dir branch from 3adb3de to a6f50ed Compare August 13, 2026 00:27
Base automatically changed from feat/241-a-fa-runtime-wiring to main August 13, 2026 00:36
@khaira777
khaira777 force-pushed the feat/241-b-html-lang-dir branch from a6f50ed to 8a43435 Compare August 13, 2026 00:38
@khaira777 khaira777 self-assigned this Aug 13, 2026
@khaira777
khaira777 marked this pull request as ready for review August 13, 2026 00:58
@khaira777
khaira777 requested a review from itsbkm as a code owner August 13, 2026 00:58
@khaira777
khaira777 merged commit ae4c31e into main Aug 13, 2026
5 checks passed
@khaira777
khaira777 deleted the feat/241-b-html-lang-dir branch August 13, 2026 01:00
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