Repository navigation
[Maintainer] i18n: locale registry, formatting and first locales #1148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
6eb4972
feat(core): add localization registry and formatting
cursoragent 7b25082
feat(editor): localize viewer and build panel surfaces
cursoragent abc7dec
chore(i18n): format localization sources
cursoragent 304eb1a
feat(i18n): add catalog maintenance tooling
cursoragent 4de32bd
fix(i18n): format generated catalogs
cursoragent 11e5d61
test(i18n): preserve ungrouped length formatting
cursoragent 18554d8
fix(i18n): preserve formatting and runtime updates
cursoragent d931282
fix(i18n): preserve locale and numeric fallbacks
cursoragent c144128
fix(i18n): use source plural rules for fallbacks
cursoragent 2fc1547
test(i18n): isolate English host override
cursoragent abfdd4a
fix(i18n): keep canonical English in code
cursoragent 9356b30
ci: rerun flaky quality job
cursoragent 2d381ce
fix(i18n): address locale review findings
cursoragent f91254c
refactor(i18n): adopt Lingui runtime and PO catalogs
cursoragent 74bbe0b
fix(i18n): stabilize catalog validation
cursoragent c93ff63
test(i18n): assert localized server output
cursoragent f91ad4c
fix(i18n): honor scoped locales in editor controls
cursoragent 1041515
fix(i18n): make catalog checks deterministic
cursoragent 13e9095
fix(i18n): isolate locale scopes and localized inputs
cursoragent 05bfde2
test(i18n): cover deterministic catalog tooling
cursoragent 17f3547
test(i18n): cover ambiguous localized decimals
cursoragent 0293d90
test(i18n): allow catalog check process to finish
cursoragent 3cad13e
fix(i18n): detect source catalog drift
cursoragent 1dbbd10
Merge main and preserve proxy locale forwarding
cursoragent File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| export const PASCAL_LOCALE_HEADER = 'x-pascal-locale' | ||
|
|
||
| export function resolveUiLocale(value: string | null | undefined): string { | ||
| const requested = value?.trim() | ||
| if (!requested) return 'en' | ||
| try { | ||
| return Intl.getCanonicalLocales(requested)[0] ?? 'en' | ||
| } catch { | ||
| return 'en' | ||
| } | ||
| } |
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.