Commit graph

1 commit

Author SHA1 Message Date
NaeemDosh
ea2c56f9e0 i18n: client-editable German dictionary + limit UI languages to de/en
Two client requests on the v4.5.2 German build:

1. Editable/persistent translations. German dictionaries now live at
   branding/i18n/locales/{de,en}.json (the client edits these). apply-branding.mjs
   overlays them onto web/public/locales/<lang>/common.json AFTER the patch, so edits
   survive make setup (previously the dict was inside the patch and got overwritten).
   Added MISSING-de.md (the ~12 non-admin keys still English; dict is ~98% complete).

2. Limit the selector to German + English. New config i18n.languages=["de","en"];
   apply strips every other bundled language (es/fr/pt) from i18n.ts (imports +
   resources), the Settings selector, and public/locales. Config-driven + idempotent.

Note for coverage: dictionary edits only reach strings that are t()-wrapped. Components
kept at v4.5.2 during the re-sync (never-break-UI) render English regardless — those need
a component-wrapping pass (separate dev work), documented in README.

Verified in a built image: compiles (4.8min); de+en dictionaries served (200),
es/fr/pt removed (404); homepage 200.
2026-08-11 05:44:59 +05:00