Skip to content

chore: sync react localization from platform-localization - #325

Open
platform-localization-pr-bot[bot] wants to merge 1 commit into
mainfrom
chore/localization-sync-react
Open

chore: sync react localization from platform-localization#325
platform-localization-pr-bot[bot] wants to merge 1 commit into
mainfrom
chore/localization-sync-react

Conversation

@platform-localization-pr-bot

@platform-localization-pr-bot platform-localization-pr-bot Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Automated localization sync from platform-localization.

  • Platform: React
  • Source ref: 57629f741084290f3db0cc61a763fd7d2d5a043f
  • Workflow: Distribute React Localization

Greptile Summary

This automated localization sync adds eight locale bundles, registers them with the generated i18n resources, updates several existing translations, and adds a patch changeset.

Confidence Score: 4/5  ·  View in Greptile

The PR is not yet safe to merge because common Norwegian browser language tags still fall back to English instead of selecting the new Norwegian translations.

The generated resources register Norwegian only as no, while the current browser-language resolver has no mapping from standard nb or nn preferences to that resource, leaving the previously reported localization failure outstanding.

Files Needing Attention: packages/ui/src/i18n/resources.generated.ts and packages/ui/src/i18n/detectLanguage.ts

Important Files Changed

Filename Overview
packages/ui/src/i18n/resources.generated.ts Registers the eight new locale resources and expands the generated supported-language list.
packages/ui/src/i18n/locales/no.json Adds the Norwegian translation bundle with the expected localization key set.
packages/ui/src/i18n/locales/ar.json Adds the Arabic translation bundle with the expected localization key set.
.changeset/sync-localization-react-57629f7.md Records the localization sync as a patch release for the UI package.

Fix All in Greploop

Reviews (4): Last reviewed commit: "chore: sync react localization" | Re-trigger Greptile

@changeset-bot

changeset-bot Bot commented Aug 10, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: b2357bf

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
@youversion/platform-react-ui Patch
vite-react Patch
@youversion/platform-core Patch
@youversion/platform-react-hooks Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Comment thread packages/ui/src/i18n/resources.generated.ts
es: { [defaultNS]: locale6 },
fr: { [defaultNS]: locale7 },
ko: { [defaultNS]: locale8 },
no: { [defaultNS]: locale9 },

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Norwegian browser tags miss resource

When a Norwegian browser presents nb, nb-NO, nn, or nn-NO, language detection cannot match the new resource registered only as no, causing the interface to fall back to English instead of using the Norwegian translation.

Knowledge Base Used: packages/ui

Prompt To Fix With AI
This is a comment left during a code review.
Path: packages/ui/src/i18n/resources.generated.ts
Line: 30

Comment:
**Norwegian browser tags miss resource**

When a Norwegian browser presents `nb`, `nb-NO`, `nn`, or `nn-NO`, language detection cannot match the new resource registered only as `no`, causing the interface to fall back to English instead of using the Norwegian translation.

**Knowledge Base Used:** [packages/ui](https://app.greptile.com/youversion/-/custom-context/knowledge-base/youversion/platform-sdk-react/-/docs/ui-package.md)

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Fix in Claude Code Fix in Cursor Fix in Codex

@platform-localization-pr-bot
platform-localization-pr-bot Bot force-pushed the chore/localization-sync-react branch 2 times, most recently from 3c42263 to 368a11a Compare August 13, 2026 17:56
@platform-localization-pr-bot
platform-localization-pr-bot Bot force-pushed the chore/localization-sync-react branch from 368a11a to b2357bf Compare August 13, 2026 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants