mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
- update v8 guide to mention ICU - move content from the tools/icu/README.md but leave a pointer Fixes: https://github.com/nodejs/node/issues/26108 Co-Authored-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> PR-URL: https://github.com/nodejs/node/pull/30607 Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Myles Borins <myles.borins@gmail.com>
Notes about the tools/icu subdirectory
This directory contains tools, data, and information about the International Components for Unicode integration. ICU is used both by V8 and also by Node.js itself to provide internationalization functionality.
patches/are one-off patches, actually entire source file replacements, organized by ICU version number.icu_small.jsoncontrols the "small" (English only) ICU. It is input toicutrim.pyicu-generic.gypis the build file used for most ICU builds within ICU.icu-system.gypis an alternate build file used when--with-intl=system-icuis invoked. It builds against thepkg-configlocated ICU.iculslocs.ccis source for theiculslocsutility, invoked byicutrim.pyas part of repackaging. Not used separately. See source for more details.no-op.cc— empty function to convince gyp to use a C++ compiler.README.md— you are hereshrink-icu-src.py— this is used during upgrade (see guide below)
Note:
The files in this directory were written for the Node.js v0.12 effort. The original intent was to merge the tools such as
icutrim.pyandiculslocs.ccback into ICU. ICU has gained its own “data slicer” tool. There is an issue open, https://github.com/nodejs/node/issues/25136 for replacingicutrim.pywith the ICU data slicer.
See Also
-
docs/guides/maintaining-icu.md for information on maintaining ICU in Node.js
-
docs/api/intl.md for information on the internationalization-related APIs in Node.js