阿西河

所有教程

公众号
🌙
阿西河前端的公众号

我的收藏

    最近访问  (文章)

      教程列表

      抓包专区
      测试专区

      Node.js 国际化构建选项

      Node.js 国际化构建选项

      To control how ICU is used in Node.js, four configure options are available during compilation. Additional details on how to compile Node.js are documented in BUILDING.md.

      • –with-intl=none/–without-intl
      • –with-intl=system-icu
      • –with-intl=small-icu (default)
      • –with-intl=full-icu

      An overview of available Node.js and JavaScript features for each configure option:

      nonesystem-icusmall-icufull-icu
      String.prototype.normalize()none (function is no-op)fullfullfull
      String.prototype.to*Case()fullfullfullfull
      Intlnone (object does not exist)partial/full (depends on OS)partial (English-only)full
      String.prototype.localeCompare()partial (not locale-aware)fullfullfull
      String.prototype.toLocale*Case()partial (not locale-aware)fullfullfull
      Number.prototype.toLocaleString()partial (not locale-aware)partial/full (depends on OS)partial (English-only)full
      Date.prototype.toLocale*String()partial (not locale-aware)partial/full (depends on OS)partial (English-only)full
      WHATWG URL Parserpartial (no IDN support)fullfullfull
      require(‘buffer’).transcode()none (function does not exist)fullfullfull
      REPLpartial (inaccurate line editing)fullfullfull
      require(‘util’).TextDecoderpartial (basic encodings support)partial/full (depends on OS)partial (Unicode-only)full
      RegExp Unicode Property Escapesnone (invalid RegExp error)fullfullfull

      The “(not locale-aware)” designation denotes that the function carries out its operation just like the non-Locale version of the function, if one exists. For example, under none mode, Date.prototype.toLocaleString()’s operation is identical to that of Date.prototype.toString().


      更多内容请参考:Node.js 国际化支持,或者通过 点击对应菜单 进行查看;


      目录
      本文目录
      目录