Skip to content

feat: inherit PWA language from HA config.language (#36) - #35

Open
mdj2812-hephaestus[bot] wants to merge 1 commit into
mainfrom
feat/ha-language-sync
Open

feat: inherit PWA language from HA config.language (#36)#35
mdj2812-hephaestus[bot] wants to merge 1 commit into
mainfrom
feat/ha-language-sync

Conversation

@mdj2812-hephaestus

@mdj2812-hephaestus mdj2812-hephaestus Bot commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Reads localStorage.getItem('selectedLanguage') — same origin, set by HA frontend. Server-side injection removed.

@mdj2812-hephaestus
mdj2812-hephaestus Bot force-pushed the feat/ha-language-sync branch from 9018037 to caba1f7 Compare July 14, 2026 06:56
- Reads HA's localStorage.selectedLanguage (same origin, set by HA frontend)
- Server-side language injection removed entirely
- Falls back to navigator.language > zh-CN if no HA language found
- User's intercom-lang localStorage choice always wins
@mdj2812-hephaestus
mdj2812-hephaestus Bot force-pushed the feat/ha-language-sync branch from caba1f7 to ef9e600 Compare July 14, 2026 07:01
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.

0 participants