Translate dynamically added settings (#1794)

* Collect settings i18n at runtime

* Translation

* Remove unused file
This commit is contained in:
Chenlei Hu
2024-12-04 10:51:37 -08:00
committed by GitHub
parent 473aa120eb
commit d04cc4e272
8 changed files with 140 additions and 67 deletions

View File

@@ -8,12 +8,7 @@ export default {
'tsc-strict'
],
'./src/locales/en.json': () => ['lobe-i18n locale'],
'./src/constants/*.ts': () => [
'tsx scripts/update-constants-locale.ts',
'lobe-i18n locale'
]
'./src/locales/en.json': () => ['lobe-i18n locale']
}
function formatFiles(fileNames) {