Skip to content

Locales: Add CLDR support per locale#204

Open
wizardsimms wants to merge 6 commits intomasterfrom
56-locales-add-cldr-support-per-locale
Open

Locales: Add CLDR support per locale#204
wizardsimms wants to merge 6 commits intomasterfrom
56-locales-add-cldr-support-per-locale

Conversation

@wizardsimms
Copy link
Collaborator

Add CLDR locale support by ingesting CLDR data for locales (e.g., en_US, en_GB) and displaying coverage indicators in LocaleTable and LocaleDetails, similar to how language-level CLDR support is shown.

@wizardsimms wizardsimms requested a review from a team as a code owner September 11, 2025 20:53
@wizardsimms wizardsimms linked an issue Sep 11, 2025 that may be closed by this pull request
@wizardsimms wizardsimms self-assigned this Sep 11, 2025
Copy link
Collaborator

@conradarcturus conradarcturus left a comment

Choose a reason for hiding this comment

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

There appears to be a lot of good work in this change. However, I won't give a full review until you post a test plan. Please add how you tested it, how you run the new command you added, and include screenshots.

Comment on lines +27 to +32
const CLDR_CORE_BASE = `https://cdn.jsdelivr.net/npm/cldr-core@${CLDR_RELEASE}`;
const CHARTS_TSV_BASE = `https://raw.githubusercontent.com/unicode-org/cldr-staging/main/docs/charts/${CLDR_RELEASE.replace(
/\.0\.0$/,
'',
)}/tsv`;
const CLDR_REPO_RAW_BASE = 'https://raw.githubusercontent.com/unicode-org/cldr/main/common/main';
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm not certain I want to ingest the data -- what were the tradeoffs that you considered when you decided to use these URLs?

There is the CLDR Json repository that we already have access to data in. You can see how we use it in files like UnicodeData.tsx where we access the data with imports like import territoryInfo from 'cldr-core/supplemental/territoryInfo.json';

{
"release": "0.0.0",
"generatedAt": "",
"locales": []
Copy link
Collaborator

Choose a reason for hiding this comment

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

This output file is empty -- is there supposed to be data in it?

script?: string;

/** Tier of locale support: core, modern or full */
tier: 'core' | 'modern' | 'full';
Copy link
Collaborator

Choose a reason for hiding this comment

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

This doesn't look like the CLDR levels that I am used to. I'm used to seeing "core", "basic", "moderate", "modern". Where do these tiers come from?

@wizardsimms wizardsimms force-pushed the 56-locales-add-cldr-support-per-locale branch from 97d60ae to dcdab07 Compare December 2, 2025 17:33
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.

Locales: Add CLDR support per locale

2 participants