Skip to content

Commit

Permalink
refactor: improve i18n in dbprovider for better developer experience (#…
Browse files Browse the repository at this point in the history
…4919)

* refactor: improve i18n in dbprovider for better developer experience

Signed-off-by: jingyang <3161362058@qq.com>

* delete unuserd keys

* update keys

* update

* update

* update quota

---------

Signed-off-by: jingyang <3161362058@qq.com>
  • Loading branch information
zjy365 authored Jul 23, 2024
1 parent a284f3b commit 80c052f
Show file tree
Hide file tree
Showing 45 changed files with 796 additions and 882 deletions.
2 changes: 1 addition & 1 deletion frontend/providers/dbprovider/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ yarn-error.log*
*.tsbuildinfo
next-env.d.ts
/public/trainData/
/.vscode/
/local/
platform.json
.yalc/
yalc.lock
19 changes: 19 additions & 0 deletions frontend/providers/dbprovider/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"i18n-ally.localesPaths": [
"public/locales"
],
"i18n-ally.enabledParsers": [
"json",
"yaml",
"js",
"ts"
],
"i18n-ally.keystyle": "nested",
"i18n-ally.sortKeys": true,
"i18n-ally.keepFulfilled": false,
"i18n-ally.sourceLanguage": "zh",
"i18n-ally.displayLanguage": "zh",
// "i18n-ally.namespace": true,
"i18n-ally.pathMatcher": "{locale}/{namespaces}.json",
"i18n-ally.extract.targetPickingStrategy": "most-similar-by-key"
}
5 changes: 3 additions & 2 deletions frontend/providers/dbprovider/next-i18next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ module.exports = {
defaultLocale: 'zh',
locales: ['en', 'zh'],
localeDetection: false
}
};
},
reloadOnPrerender: process.env.NODE_ENV === 'development'
}
440 changes: 213 additions & 227 deletions frontend/providers/dbprovider/public/locales/en/common.json

Large diffs are not rendered by default.

Loading

0 comments on commit 80c052f

Please sign in to comment.