mirror of
https://github.com/hanzoai/i18n.git
synced 2026-10-30 14:24:32 +00:00
The registry is the 36 locales hanzo.ai ships (zh-Hans/zh-Hant,
es-ES/es-419, ar right-to-left). resolve keeps its rules and adds the
region step, underscores and no -> nb. server and native become
subpaths; the react-i18next re-export is replaced by the provider,
picker and IAM account sync that @hanzo/rooms already uses. Locales in
catalogs/review.json load by code but are not offered.
slots also reads {name}, and faults holds the content checks the
translator and the gate share.
25 lines
857 B
JSON
25 lines
857 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2022",
|
|
"lib": ["ES2022", "DOM"],
|
|
"module": "NodeNext",
|
|
"moduleResolution": "NodeNext",
|
|
"strict": true,
|
|
"esModuleInterop": true,
|
|
"skipLibCheck": true,
|
|
"declaration": true,
|
|
"declarationMap": true,
|
|
"sourceMap": true,
|
|
"outDir": "dist",
|
|
"rootDir": "src",
|
|
// Source names the file that exists (`./locales.ts`), so Node runs this tree
|
|
// directly with type stripping and a test needs no build. The emit rewrites
|
|
// those to `.js`, because what ships is JavaScript: Node REFUSES to strip
|
|
// types under node_modules at any version and no flag lifts it, so a package
|
|
// whose `main` is a .ts file cannot be imported by anyone who installs it.
|
|
"allowImportingTsExtensions": true,
|
|
"rewriteRelativeImportExtensions": true
|
|
},
|
|
"include": ["src/**/*"]
|
|
}
|