I18n: I18n 库和工具

@onigoetz/i18n 是一套软件包,可减轻您的翻译需求。配套 @onigoetz/messageformat 是一个 MessageFormat 解析和渲染库。@onigoetz/make-plural 是一个较轻的 make-plural 替代,意味着在浏览器中使用 @onigoetz/intl-formatters 默认格式化程序。如果您需要日期和数字的格式化程序,建议使用标准的 Intl API。特性小型、快速且无 NPM 依赖。经过全面测试,灵活使用,在 Node.js 或浏览器中均可使用。您可以选择使用一个或两个软件包,配合自定义格式化程序,或使用嵌入式格式化程序。兼容 ICU MessageFormat 和 CLDR。例如:import { parse, createRenderer } from "@onigoetz/messageformat";
zip
i18n-master.zip 预估大小:92个文件
folder
i18n-master 文件夹
file
.gitignore 58B
file
package.json 647B
file
sonar-project.properties 582B
file
composer.json 61B
folder
packages 文件夹
folder
benchmark-messageformat 文件夹
file
package.json 943B
folder
src 文件夹
file
format-message.js 213B
file
onigoetz-messageformat-memoized.js 2KB
file
messageformat.js 146B
file
phensley-messageformat.js 817B
file
onigoetz-messageformat.js 1KB
file
ffz-icu-msgparser.js 4KB
file
intl-messageformat.js 187B
file
profile.js 398B
file
crafty.config.js 1KB
file
results.txt 2KB
file
README.md 6KB
file
benchmark.js 3KB
file
.eslintignore 10B
file
PROFILING.md 124B
folder
make-plural 文件夹
file
.gitignore 50B
file
package.json 805B
folder
src 文件夹
file
index.test.ts 4KB
file
index.ts 5KB
file
selftest.test.ts 2KB
file
LICENSE 1KB
file
tsconfig.json 724B
file
crafty.config.js 731B
file
README.md 3KB
folder
test-cldr-data 文件夹
file
supplemental_likelySubtags.json 52KB
file
supplemental_ordinals.json 17KB
file
main_en_dateFields.json 26KB
file
package.json 72B
file
main_de_dateFields.json 27KB
file
main_en_numbers.json 6KB
file
main_de_numbers.json 6KB
file
supplemental_plurals.json 68KB
folder
intl-formatters 文件夹
file
package.json 984B
folder
src 文件夹
file
number.test.ts 4KB
file
date.ts 2KB
file
number.ts 3KB
file
plural.ts 632B
file
index.test.ts 5KB
file
index.ts 249B
file
utils.ts 843B
file
LICENSE 1KB
file
tsconfig.json 724B
file
crafty.config.js 731B
file
README.md 2KB
folder
i18n-types 文件夹
file
package.json 430B
file
LICENSE 1KB
file
tsconfig.json 704B
file
crafty.config.js 277B
file
index.ts 3KB
folder
benchmark-plural 文件夹
file
package.json 659B
folder
src 文件夹
file
onigoetz-make-plural.js 999B
file
make-plural.js 145B
file
phensley-plurals-memo.js 422B
file
onigoetz-intl.js 158B
file
phensley-plurals.js 142B
file
onigoetz-make-plural-memo.js 1KB
file
onigoetz-intl-memo.js 403B
file
crafty.config.js 1KB
file
README.md 2KB
file
benchmark.js 1KB
file
.eslintignore 10B
folder
messageformat 文件夹
file
.gitignore 50B
file
package.json 837B
folder
src 文件夹
file
parser.ts 12KB
file
matcher.ts 1KB
file
runtime.ts 4KB
file
index.ts 131B
file
runtime.test.ts 6KB
file
parser.test.ts 9KB
file
types.ts 1KB
file
LICENSE 1KB
file
tsconfig.json 724B
file
crafty.config.js 731B
folder
README.md 文件夹
folder
.github 文件夹
folder
workflows 文件夹
file
npm-publish.yml 853B
file
documentation.yml 689B
file
node.js.yml 1KB
file
composer.lock 75KB
file
README.md 2KB
folder
docs 文件夹
file
Benchmark.md 31B
file
index.md 3KB
file
03_Specification.md 2KB
folder
02_Packages 文件夹
file
make-plural.md 36B
file
messageformat.md 38B
file
intl-formatters.md 40B
file
config.json 325B
file
renovate.json 267B
file
yarn.lock 351KB
...
zip 文件大小:225.09KB