feat: add Uzbek language support#887
Open
macdiesel wants to merge 1 commit into
Open
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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— addsuztosupportedLocales, the@formatjs/intl-pluralrulesand@formatjs/intl-relativetimeformatlocale-data imports foruz, and themessagesShapePropTypes entry.src/i18n/countries.js— registers thei18n-iso-countriesuzlocale so country names localize in Uzbek.src/i18n/lib.test.js— updates the "missing locales" warning count (16 → 17) and adds theuzassertion.Why: Uzbek translations already exist for downstream MFEs in the openedx-translations pipeline, but
frontend-platformdoes not yet recognizeuzas an expected locale. As a result it logs a dev-modeUnexpected locale: uzwarning, and plural-rules / relative-time formatting and localized country names fall back rather than using Uzbek data. The required FormatJS (@formatjs/.../locale-data/uz) andi18n-iso-countries(langs/uz.json) data already ship with the existing dependencies, so no dependency changes are needed.Testing:
npm run testforsrc/i18npasses locally (29/29).eslintpasses on the changed files.Merge checklist:
frontend-platform. This can be done by runningnpm startand opening http://local.openedx.io:8080.module.config.jsfile infrontend-build.fix,feat) and is appropriate for your code change. Consider whether your code is a breaking change, and modify your commit accordingly.Post merge:
🤖 Generated with Claude Code