Skip to content

chore: sync react native localization from platform-localization#89

Merged
Dustin-Kelley merged 2 commits into
mainfrom
chore/localization-sync-reactnative-20260717-8533f72
Jul 21, 2026
Merged

chore: sync react native localization from platform-localization#89
Dustin-Kelley merged 2 commits into
mainfrom
chore/localization-sync-reactnative-20260717-8533f72

Conversation

@platform-localization-pr-bot

@platform-localization-pr-bot platform-localization-pr-bot Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Automated localization sync from platform-localization.

  • Platform: React Native
  • Source ref: 8533f7207047b993f2784df8b59263a0ce5dbdb8
  • Workflow: Distribute React Native Localization

Greptile Summary

This automated localization sync PR adds two new locale files — Afrikaans (af) and Swedish (sv) — distributed by the Distribute React Native Localization workflow from platform-localization. The index.ts locale registry is hand-edited (as intended) to import and register both new locales.

  • af.json / sv.json: New generated translation files, each covering all 8 keys from the English source (signIn, signInWithYouVersion, signOut, signOutOfYouVersion, loading, cancel, booksHeading, bibleVersionsHeading). Interpolation tokens ({{brandName}}, <bold>) are correctly preserved.
  • index.ts: Imports and registers af and sv in alphabetical order, consistent with the existing pattern.

Confidence Score: 5/5

Safe to merge — automated sync adding two new generated locale files with no hand-edits to existing translations.

Both new locale files are machine-generated via the established distribution workflow, cover all 8 translation keys from the English source, preserve interpolation tokens correctly, and are properly registered in index.ts in alphabetical order. No hand-edits to existing locale JSON, no structural changes to the i18n setup.

No files require special attention.

Important Files Changed

Filename Overview
packages/ui/src/i18n/locales/af.json New Afrikaans locale file generated by automated sync; all 8 keys present and interpolation tokens preserved.
packages/ui/src/i18n/locales/sv.json New Swedish locale file generated by automated sync; all 8 keys present and interpolation tokens preserved.
packages/ui/src/i18n/locales/index.ts Hand-edited locale registry correctly imports and registers af and sv in alphabetical order; no structural issues.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    PL["platform-localization\nsources/common/en.json"] -->|Distribute React Native Localization workflow| AF["af.json\nAfrikaans"]
    PL -->|Distribute React Native Localization workflow| SV["sv.json\nSwedish"]
    AF --> IDX["locales/index.ts\nLocale Registry"]
    SV --> IDX
    IDX -->|buildSdkResources| I18N["i18next instance\nSDK_I18N_NAMESPACE"]
    I18N -->|useSdkTranslation| UI["Native UI Components\nt('key')"]
Loading
%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%%
flowchart TD
    PL["platform-localization\nsources/common/en.json"] -->|Distribute React Native Localization workflow| AF["af.json\nAfrikaans"]
    PL -->|Distribute React Native Localization workflow| SV["sv.json\nSwedish"]
    AF --> IDX["locales/index.ts\nLocale Registry"]
    SV --> IDX
    IDX -->|buildSdkResources| I18N["i18next instance\nSDK_I18N_NAMESPACE"]
    I18N -->|useSdkTranslation| UI["Native UI Components\nt('key')"]
Loading

Reviews (2): Last reviewed commit: "feat(i18n): add Afrikaans and Swedish tr..." | Re-trigger Greptile

Context used:

  • Rule used - Translation JSON under packages/ui/src/i18n/locale... (source)

@camrun91

Copy link
Copy Markdown
Collaborator

@Dustin-Kelley this is a legit pr and just adds a few more languages.

@Dustin-Kelley
Dustin-Kelley merged commit b747adb into main Jul 21, 2026
7 checks passed
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.

2 participants