-
Notifications
You must be signed in to change notification settings - Fork 14
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
GlobalizeCompiler does not work unicode extensions in locales. #30
Comments
Globalize compiler, by default (i.e., when cldr property isn't provided), uses the npm cldr-data module (more specifically I will post another comment with an approach to do that. |
Related rxaviers/cldrjs#30 |
The issue you have linked to describes a particular solution if your using Globalize server-side. When doing so, you can write node scripts and load a bunch of cldr content in memory. However, I am using Globalize on the client and using webpack and the globalize webpack plugin (and consequently the globalize-compiler) to create intermediate outputs that will be packaged off to the client. In this scenario, when using the webpack globalize plugin, how do I get more fine tuned control of things like which numbering system I should use (or other unicode extensions). |
As a related note, on globalizejs/globalize#758 @casey-speer said:
|
As per http://www.unicode.org/reports/tr35/#Locale_Extension_Key_and_Type_Data a locale should be able to handle unicode extensions such as
Now, I know many of these options are not supported by Globalize, but I know we can atleast handle -u-nu (numbering system), -u-cu (currency type) and -u-cf- (currency format style)
When running this in the Globalize compiler, there is an assumption that the passed in locale would match the CLDR directory structure.
How should I resolve this? The problem is that when using Globalize with the globalize-compiler and the webpack plugin, we are assuming that the locale passed to Globalize matches the CLDR data directory.
Any guidance would be helpful.
The text was updated successfully, but these errors were encountered: