Repository navigation
Conversation
Member
Author
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has required the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
graphite-app
Bot
changed the base branch from
01-14-feat_formatjs_intl-locale_support_variants_per_latest_spec
to
graphite-base/5909
January 15, 2026 02:40
longlho
force-pushed
the
graphite-base/5909
branch
from
January 15, 2026 02:41
7a28be5 to
931c3dc
Compare
longlho
force-pushed
the
01-14-test_formatjs_intl-displaynames_add_conformance_tests
branch
from
January 15, 2026 02:41
bfe8143 to
548ac6b
Compare
Merge activity
|
longlho
force-pushed
the
01-14-test_formatjs_intl-displaynames_add_conformance_tests
branch
from
January 15, 2026 03:22
548ac6b to
835e2c9
Compare
graphite-app Bot
pushed a commit
that referenced
this pull request
Jan 15, 2026
### TL;DR Added ICU4J conformance testing to validate FormatJS locale handling behavior against the reference implementation. ### What changed? - Added ICU4J as a dependency via `http_file` in `MODULE.bazel` - Created a new Java-based conformance test in `conformance-tests/icu4j/` directory - Added detailed documentation in `ICUConformanceTest.java` explaining the test cases - Enhanced the documentation in `intl-displaynames/should-polyfill.ts` to better explain the script code canonicalization bug ### How to test? Run the ICU4J conformance test to validate FormatJS behavior: ```bash bazel run //conformance-tests/icu4j:icu_conformance_test ``` The test validates: 1. Locale canonicalization (getCanonicalLocales) 2. Script code normalization (DisplayNames) 3. Variant handling (Intl.Locale.variants) 4. Lowercase script code handling (related to GH #5889) 5. DisplayNames functionality ### Why make this change? This change adds a reference implementation test to ensure FormatJS correctly implements the ECMA-402 specification for locale handling. It specifically addresses issues like script code canonicalization (GH #5889) by comparing FormatJS behavior against ICU4J, which is the reference implementation used by browsers. This helps ensure consistent behavior across platforms and validates our polyfill implementations.
graphite-app
Bot
deleted the
01-14-test_formatjs_intl-displaynames_add_conformance_tests
branch
January 15, 2026 04:01
This was referenced Jan 15, 2026
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.

TL;DR
Added ICU4J conformance testing to validate FormatJS locale handling behavior against the reference implementation.
What changed?
http_fileinMODULE.bazelconformance-tests/icu4j/directoryICUConformanceTest.javaexplaining the test casesintl-displaynames/should-polyfill.tsto better explain the script code canonicalization bugHow to test?
Run the ICU4J conformance test to validate FormatJS behavior:
The test validates:
Why make this change?
This change adds a reference implementation test to ensure FormatJS correctly implements the ECMA-402 specification for locale handling. It specifically addresses issues like script code canonicalization (GH #5889) by comparing FormatJS behavior against ICU4J, which is the reference implementation used by browsers. This helps ensure consistent behavior across platforms and validates our polyfill implementations.