chore: add monorepo tools (#9196)
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
"list": [
|
||||
{
|
||||
"input": "./src/resources/en.json",
|
||||
"output": "./src/i18n-generated",
|
||||
"output": "./src/i18n.gen",
|
||||
"parser": {
|
||||
"type": "i18next",
|
||||
"contextSeparator": "$",
|
||||
|
||||
@@ -39,7 +39,7 @@ function calcCompletenesses() {
|
||||
|
||||
writeFileSync(
|
||||
join(pkgRoot, 'src', 'i18n-completenesses.json'),
|
||||
JSON.stringify(completenesses, null, 2)
|
||||
JSON.stringify(completenesses, null, 2) + '\n'
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -21,4 +21,4 @@
|
||||
"ur": 2,
|
||||
"zh-Hans": 91,
|
||||
"zh-Hant": 90
|
||||
}
|
||||
}
|
||||
|
||||
6888
packages/frontend/i18n/src/i18n.gen.ts
Normal file
6888
packages/frontend/i18n/src/i18n.gen.ts
Normal file
File diff suppressed because it is too large
Load Diff
@@ -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';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user