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

Intl.NumberFormat’s formatToParts not implemented for iOS #1188

Open
hector-del-rio opened this issue Nov 13, 2023 · 4 comments
Open

Intl.NumberFormat’s formatToParts not implemented for iOS #1188

hector-del-rio opened this issue Nov 13, 2023 · 4 comments
Labels
enhancement New feature or request

Comments

@hector-del-rio
Copy link

hector-del-rio commented Nov 13, 2023

Problem

Intl.NumberFormat.prototype.formatToParts works on Android but is not implemented for iOS.

Previously mentioned here.

Filing this as a separate issue as requested.

@hector-del-rio hector-del-rio added the enhancement New feature or request label Nov 13, 2023
@dwxw
Copy link

dwxw commented Nov 16, 2023

This is a blocker for us adopting Hermes too.

@mattbfb
Copy link
Contributor

mattbfb commented Nov 17, 2023

I believe this is currently unavailable for iOS, and will be tacked as a part of a move to ICU (#1172)

@darshan09200
Copy link

We recently updated from 0.72.14 to 0.74.1 and started facing an issue where formatToParts is missing on iOS. We have added intl-numberformat polyfill to temporarily fix this.

Is there any official solution to resolve this issue?

@neildhar
Copy link
Contributor

Our current Intl implementation uses APIs provided by the iOS or Android platform, but unfortunately, Intl often requires things that cannot be mapped onto the platform APIs. formatToParts is one such case, as we could not find a practical way to implement it on iOS.

We did previously expose a formatToParts method, but it had severe problems and we removed it last year. We did not take removing it lightly, but it seemed clear that Hermes users could not rely on it to serve them across locales.

We have a long term plan to fix this, and you can read about that in #1211.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants