* feat(i18n): new package for locales We are renaming from zh-CN to zh-Hans with the naming regulation of BCP 47 language tags. For future languages, suggesting to check & lookup on - [Language subtag lookup app](https://r12a.github.io/app-subtags/) - [iana.org/assignments/language-subtag-registry/language-subtag-registry](https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry) to search on. Additionally, use `en` for English is actually enforced instead of having `en-Latin`. More resources and citations worth to check on: - https://developer.mozilla.org/en-US/docs/Glossary/BCP_47_language_tag - https://en.wikipedia.org/wiki/IETF_language_tag - https://en.wikipedia.org/wiki/ISO_15924
54 lines
1.3 KiB
JSON
54 lines
1.3 KiB
JSON
{
|
|
"name": "@proj-airi/i18n",
|
|
"type": "module",
|
|
"private": true,
|
|
"description": "Internationalization (i18n) locales and utilities for Project AIRI",
|
|
"author": {
|
|
"name": "Moeru AI Project AIRI Team",
|
|
"email": "airi@moeru.ai",
|
|
"url": "https://github.com/moeru-ai"
|
|
},
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/moeru-ai/airi.git",
|
|
"directory": "packages/i18n"
|
|
},
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.mts",
|
|
"default": "./dist/index.mjs"
|
|
},
|
|
"./locales": {
|
|
"types": "./dist/locales/index.d.mts",
|
|
"default": "./dist/locales/index.mjs"
|
|
},
|
|
"./locales/en": {
|
|
"types": "./dist/locales/en/index.d.mts",
|
|
"default": "./dist/locales/en/index.mjs"
|
|
},
|
|
"./locales/zh-Hans": {
|
|
"types": "./dist/locales/zh-Hans/index.d.mts",
|
|
"default": "./dist/locales/zh-Hans/index.mjs"
|
|
},
|
|
"./locales/*.yaml": {
|
|
"default": "./dist/locales/*.yaml"
|
|
}
|
|
},
|
|
"main": "./dist/index.mjs",
|
|
"types": "./dist/index.d.mts",
|
|
"files": [
|
|
"README.md",
|
|
"dist",
|
|
"package.json"
|
|
],
|
|
"scripts": {
|
|
"dev": "pnpm run build",
|
|
"build": "tsdown",
|
|
"typecheck": "tsc --noEmit"
|
|
},
|
|
"devDependencies": {
|
|
"unplugin-yaml": "^3.0.0"
|
|
}
|
|
}
|