Full ICU is a library that enables internationalization (i18n) in Node.js projects. Node 14 has been released with full ICU by default, and it is planned to reach LTS (Long-term Support) in October 2020. In this article, we show you how to use full ICU with Vercel builds for Node 12.x and 10.x.
Enabling full-icu
on Vercel
First, you need to install the full-icu
package. You can do that by running either of the following commands:
yarn add full-icu
npm install full-icu
After the full-icu
dependency is installed, you need to adjust the build command in your Project's settings to include the NODE_ICU_DATA
variable:
NODE_ICU_DATA=node_modules/full-icu <build_command>
As an example, the build command for a Next.js project would be:
NODE_ICU_DATA=node_modules/full-icu next build