Repository navigation
feat(i18n): add complete French translation - #190
Open
Darkdragon14 wants to merge 1 commit into
Open
Darkdragon14 wants to merge 1 commit into
Darkdragon14 wants to merge 1 commit into
Conversation
This branch has not been deployed
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.
What does this change?
Adds
src/lang/fr.jswith French metadata (Français,fr-FR) and translations for all 1,281 keys in the English dictionary, including the dynamically selected strings. Covers the panel, card settings, onboarding, notifications and the 3.1 cards.Uses the existing automatic language discovery, so French is available in Settings → General → Language, and regional profile languages such as
fr-CHandfr-CAresolve tofr. Dutch keys, interpolation variables and technical syntax are preserved. This PR adds only the language file, as requested in CONTRIBUTING.md.Why?
Makes HaCasa Nova usable in French without falling back to English for any existing English dictionary key.
Validation
node dev/i18n-check.mjs fr(thei18n:checkscript): passes, 1,026/1,026 source-detected keys translated, zero missing French keys and no placeholder/data-only errors.node build.mjs --local(thedevscript): passes.fr,fr-FR,fr-CH,fr-CA,FR_ca, variable substitution, singular/plural strings, French decimal formatting and room-name casing pass.dev/index.html?lang=fr&shot. Mock entity names and external mock content remain as supplied by the dev fixture.Validation used the local mock only; no live Home Assistant instance was accessed or modified.
Checklist
dist/hacasa-nova.jsnot committed (it is rebuilt with each release)i18n:checkpassesdev/index.html)