chore: add monorepo tools (#9196)

This commit is contained in:
liuyi
2024-12-24 15:29:48 +08:00
committed by GitHub
parent e3a8b63e38
commit 2443935830
116 changed files with 9390 additions and 1466 deletions

View File

@@ -4,7 +4,7 @@
"list": [
{
"input": "./src/resources/en.json",
"output": "./src/i18n-generated",
"output": "./src/i18n.gen",
"parser": {
"type": "i18next",
"contextSeparator": "$",

View File

@@ -39,7 +39,7 @@ function calcCompletenesses() {
writeFileSync(
join(pkgRoot, 'src', 'i18n-completenesses.json'),
JSON.stringify(completenesses, null, 2)
JSON.stringify(completenesses, null, 2) + '\n'
);
}

View File

@@ -21,4 +21,4 @@
"ur": 2,
"zh-Hans": 91,
"zh-Hant": 90
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -3,7 +3,7 @@ import type { BackendModule, i18n } from 'i18next';
import i18next from 'i18next';
import { initReactI18next } from 'react-i18next';
import type { useAFFiNEI18N } from './i18n-generated';
import type { useAFFiNEI18N } from './i18n.gen';
import type { Language } from './resources';
import { SUPPORTED_LANGUAGES } from './resources';