Skip to content

Incorrect data after upgrade to CLDR 46 #282

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

Open
valodzka opened this issue Apr 7, 2025 · 0 comments
Open

Incorrect data after upgrade to CLDR 46 #282

valodzka opened this issue Apr 7, 2025 · 0 comments

Comments

@valodzka
Copy link

valodzka commented Apr 7, 2025

Looks like data generated in this commit 8e522a1 is incorrect. I found issues with list formatting and unit formatting, but may be there are more.

To Reproduce
To rule out issue with CLDR update itself I ran same conversion with java ICU 76 that also includes CLDR 46

TwitterCldr::VERSION # => 6.12.1
TwitterCldr::Formatters::ListFormatter.new(:ru).format(['1', '2', '3'], :"or-narrow") # => "1, 2 или 3"
12.localize(:ru).to_unit.length_mile # => "12 миль"

TwitterCldr::VERSION # => "6.14.0" (same issue also with 6.13)
TwitterCldr::Formatters::ListFormatter.new(:ru).format(['1', '2', '3'], :"or-narrow") # => "1, 2, or 3"
12.localize(:ru).to_unit.length_mile # => "12 милях"

Java code:

    String icuVersion = com.ibm.icu.util.VersionInfo.ICU_VERSION.toString();
    System.out.println("ICU Version: " + icuVersion);

    Locale locale = Locale.of("ru");
    ListFormatter list = ListFormatter.getInstance(
            locale,
            ListFormatter.Type.OR,
            ListFormatter.Width.NARROW
    );
    System.out.println(list.format("1", "2", "3"));
    MeasureFormat formatter = MeasureFormat.getInstance(
            locale,
            MeasureFormat.FormatWidth.WIDE);
    Measure measure = new Measure(12, MeasureUnit.MILE);
    String result = formatter.format(measure);
    System.out.println(result);

Outputs:

ICU Version: 76.1.0.0
1, 2 или 3
12 миль

Java output with CLDR 46 and twitter cldr 6.12 is the same, output of twitter cldr 6.13, 6.14 is different and incorrect.

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

No branches or pull requests

1 participant