-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[I18n] Integrate full-icu module #20288
Comments
It'd be great to know all the options we have so that we can make an informed decision. Also I can think of the following question that'd be great to get answers for:
|
@azasypkin All detailed information can be found here Node.js doc.
Added: |
Echoing the question above, would like to explore only including a subset of the icu data. Most locales will not have full support for a long time so it would not make sense to load the icu data for them. |
@bmcconaghy If we say about client side, then for sure we should do it, you are right. |
Node 13 already contains full ICU information, but since it's an odd-numbered version it won't get LTS releases. We will likely upgrade to Node 14 once it's released later this year, and get this automatically. |
@Bamieh Now that we've upgraded to Node 14, can we close this issue? |
@lukeelmers yes node is now built with full icu ( |
By default Node.js is installed with
small-icu
flag, which means thatIntl
supports only English locale. In order to add full ICU data, we have to addfull-icu
module to the project dependencies and setNODE_ICU_DATA
environment variable to./node_modules/full-icu
before starting node.js process. Here you can find more details https://nodejs.org/api/intl.html. It affects only server usage of i18n.The text was updated successfully, but these errors were encountered: