Skip to content

feat: add Uzbek language support#887

Open
macdiesel wants to merge 1 commit into
openedx:masterfrom
macdiesel:bbeggs/add-uzbek-language-support
Open

feat: add Uzbek language support#887
macdiesel wants to merge 1 commit into
openedx:masterfrom
macdiesel:bbeggs/add-uzbek-language-support

Conversation

@macdiesel

Copy link
Copy Markdown

Description:

Adds the Uzbek (uz) locale to the i18n module. This mirrors the prior Vietnamese support change (#825) and touches the same three files:

  • src/i18n/lib.js — adds uz to supportedLocales, the @formatjs/intl-pluralrules and @formatjs/intl-relativetimeformat locale-data imports for uz, and the messagesShape PropTypes entry.
  • src/i18n/countries.js — registers the i18n-iso-countries uz locale so country names localize in Uzbek.
  • src/i18n/lib.test.js — updates the "missing locales" warning count (16 → 17) and adds the uz assertion.

Why: Uzbek translations already exist for downstream MFEs in the openedx-translations pipeline, but frontend-platform does not yet recognize uz as an expected locale. As a result it logs a dev-mode Unexpected locale: uz warning, and plural-rules / relative-time formatting and localized country names fall back rather than using Uzbek data. The required FormatJS (@formatjs/.../locale-data/uz) and i18n-iso-countries (langs/uz.json) data already ship with the existing dependencies, so no dependency changes are needed.

Testing:

  • npm run test for src/i18n passes locally (29/29).
  • eslint passes on the changed files.

Merge checklist:

  • Consider running your code modifications in the included example app within frontend-platform. This can be done by running npm start and opening http://local.openedx.io:8080.
  • Consider testing your code modifications in another local micro-frontend using local aliases configured via the module.config.js file in frontend-build.
  • Verify your commit title/body conforms to the conventional commits format (e.g., fix, feat) and is appropriate for your code change. Consider whether your code is a breaking change, and modify your commit accordingly.

Post merge:

  • After the build finishes for the merged commit, verify the new release has been pushed to NPM.

🤖 Generated with Claude Code

Adds the Uzbek (`uz`) locale to the i18n supported locales list, along
with the corresponding FormatJS plural-rules and relative-time-format
locale data, the i18n-iso-countries locale registration, and the
messages PropTypes shape. Mirrors the prior Vietnamese support change
(openedx#825).

Uzbek translations already exist for downstream MFEs in the
openedx-translations pipeline; this change lets frontend-platform
recognize `uz` as an expected locale (silencing the dev-mode
"Unexpected locale" warning) and ensures plural/relative-time
formatting and localized country names work for `uz`.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.

1 participant