Skip to content

Incorrect data after upgrade to CLDR 46 #282

@valodzka

Description

@valodzka

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions