feat(i18n): add German, Dutch, Norwegian, Spanish, Italian, Swedish and Danish locales - #171
Open
JordiMa wants to merge 1 commit into
Open
feat(i18n): add German, Dutch, Norwegian, Spanish, Italian, Swedish and Danish locales#171JordiMa wants to merge 1 commit into
JordiMa wants to merge 1 commit into
Conversation
…nd Danish locales Adds full localization for de, nl, no, es, it, sv and da across the API, web app and mobile app, on top of the existing English and French. - API: translated common.json per locale; add a shared SupportedLanguage type, generalize Accept-Language detection and extend the Tesla locale mapping. - Web app: translated common.json per locale; widen SUPPORTED_LOCALES (drives [locale] routing, sitemap and hreflang), add flags to the language switcher, generalize locale detection and the proxy matcher. - Mobile: translated locale files; extend the UserLanguage enum and i18n resources; replace the two-option language toggle with a modal picker listing all nine languages. Legal and consent text (privacy, terms, GDPR consent block) intentionally falls back to English and is not machine-translated. All translations were reviewed for key parity, placeholder/tag integrity and native-language quality.
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.
Summary
Adds 7 new UI locales — German (
de), Dutch (nl), Norwegian (no), Spanish (es), Italian (it), Swedish (sv) and Danish (da) — across the API, web app and mobile app, on top of the existing English and French. SentryGuard now ships in 9 languages.What's included
API
common.jsonfor each new localeSupportedLanguagetype replacing the hard-coded'en' | 'fr'unionsAccept-Languagedetection and extended Tesla locale mapping (de-DE,nl-NL,nb-NO,es-ES,it-IT,sv-SE,da-DK)Web app
common.jsonfor each new localeSUPPORTED_LOCALESwidened — drives[locale]routing,generateStaticParams, the sitemap andhreflangalternatesmatcherupdated for the new pathsMobile
UserLanguageenum and i18n resources extendedScope decisions
LegalLocalestays'en' | 'fr'). Localized marketing screenshots and the OG image likewise fall back to English.Verification
{{…}}placeholders and<0>…</0>rich-text tags preserved per key.frlocale).[locale]route generated.Notes
user.preferred_languageisvarchar(2)with no DB constraint, so no migration is required.