i18n4k icon indicating copy to clipboard operation
i18n4k copied to clipboard

Improve LocalizedStringNumber with CLDR rules

Open comahe-de opened this issue 1 year ago • 0 comments

In LocalizedStringNumber the data structure NumberFormattingInfo is used to format numbers like "1,234.456". But currently only "en" and "de" is supported.

Use the information from https://github.com/unicode-org/cldr-json/tree/main/cldr-json/cldr-numbers-full to support more Locales

An example of the JSON data is:

 "symbols-numberSystem-latn": {
      "decimal": ",",
      "group": " ",
      "list": ";",
      "percentSign": "%",
      "plusSign": "+",
      "minusSign": "-",
      "approximatelySign": "≈",
      "exponential": "E",
      "superscriptingExponent": "·",
      "perMille": "‰",
      "infinity": "∞",
      "nan": "NaN",
      "currencyGroup": ".",
      "timeSeparator": ":"
    },

comahe-de avatar Dec 27 '23 21:12 comahe-de