feat(locale): bootstrap Lithuanian (lt) locale with i18n + 5 news sources#3896
feat(locale): bootstrap Lithuanian (lt) locale with i18n + 5 news sources#3896zionappp-ui wants to merge 2 commits into
Conversation
|
@zionappp-ui is attempting to deploy a commit to the World Monitor Team on Vercel. A member of the Team first needs to authorize it. |
Greptile SummaryThis PR bootstraps the Lithuanian (
Confidence Score: 4/5Safe to merge — all registration points are updated consistently and the Lithuanian feeds follow the established pattern for regional locale bootstraps. The change is well-contained locale scaffolding with no runtime logic modifications. The only finding is the unnecessary Unicode-escaping of three pre-existing keys in the source-tiers files, which is cosmetic and has no effect on runtime behaviour. Everything else — allowlist sync, feed registry, i18n service, offline page, and locale bundle — is internally consistent. Both copies of source-tiers.json (scripts/shared/source-tiers.json and shared/source-tiers.json) have the Unicode-escape side-effect worth cleaning up before merge if diff hygiene matters to the team. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[User browser reports navigator.language = lt] --> B[i18n.ts: normalizeLanguage → 'lt']
B --> C{lt in SUPPORTED_LANGUAGES?}
C -- yes --> D[localeModules loader: src/locales/lt.json]
D --> E[i18next.addResourceBundle]
E --> F[UI renders with Lithuanian strings + English fallback for untranslated keys]
G[User selects lt region feeds] --> H[src/config/feeds.ts: FULL_FEEDS lt entries]
H --> I[RSS proxy checks rss-allowed-domains]
I -- www.delfi.lt direct --> J[Delfi LT RSS feed]
I -- Google News gnLocale --> K[LRT / 15min / Lrytas / Verslo Žinios]
L[Map rendered] --> M[map-locale.ts: getLocalizedNameField lt]
M --> N[Protomaps tile field: name:lt]
O[Service worker offline] --> P[offline.html inline T.lt - Esate neprisijunge]
|
What this adds
Full Lithuanian (`lt`) locale bootstrap — language was not previously registered in the app.
Locale changes
Sources (5 feeds, all verified live)
LRT is Lithuania's public broadcaster (equivalent of BBC). Direct RSS feeds for Lithuanian outlets largely block cloud IPs — Google News locale fallback (`hl=lt&gl=LT&ceid=LT:lt`) returns full results.