Skip to content
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

Currency formatter needs to handle CLDR pattern and symbol overrides #5480

Open
sffc opened this issue Sep 3, 2024 · 0 comments
Open

Currency formatter needs to handle CLDR pattern and symbol overrides #5480

sffc opened this issue Sep 3, 2024 · 0 comments
Assignees
Labels
C-numbers Component: Numbers, units, currencies

Comments

@sffc
Copy link
Member

sffc commented Sep 3, 2024

In order to be spec-compliant, we need to be able to consume data such as this (locale ca):

          "ESP": {
            "pattern": "¤ #,##0.00",
            "displayName": "pesseta espanyola",
            "displayName-count-one": "pesseta espanyola",
            "displayName-count-other": "pessetes espanyoles",
            "symbol": "",
            "symbol-alt-narrow": "",
            "decimal": ",",
            "group": "."
          },

And this (locale pt-PT):

          "PTE": {
            "displayName": "escudo português",
            "displayName-count-one": "escudo português",
            "displayName-count-other": "escudos portugueses",
            "symbol": "",
            "decimal": "$",
            "group": ","
          },

Ideally the latter case should be handled such that the decimal symbol returns the correct field type. See https://unicode-org.atlassian.net/browse/ICU-20028

@sffc sffc added the C-numbers Component: Numbers, units, currencies label Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-numbers Component: Numbers, units, currencies
Projects
None yet
Development

No branches or pull requests

2 participants