mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-09-29 06:36:41 +08:00
fix(utils): 修复windows系统下使用vscode的i18nAlly插件无法新增多语言的问题,新增时记得选择.json后缀的文件新增~
Signed-off-by: haibiao_gu <haibiao_gu@pro-mart.cn>
This commit is contained in:
parent
9669ca2041
commit
f56764ae4b
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
@ -7,7 +7,7 @@
|
|||||||
"editor.formatOnSave": false,
|
"editor.formatOnSave": false,
|
||||||
"eslint.validate": ["html", "css", "scss", "json", "jsonc"],
|
"eslint.validate": ["html", "css", "scss", "json", "jsonc"],
|
||||||
"i18n-ally.displayLanguage": "zh-cn",
|
"i18n-ally.displayLanguage": "zh-cn",
|
||||||
"i18n-ally.enabledParsers": ["ts"],
|
"i18n-ally.enabledParsers": ["ts", "json"],
|
||||||
"i18n-ally.enabledFrameworks": ["vue"],
|
"i18n-ally.enabledFrameworks": ["vue"],
|
||||||
"i18n-ally.editor.preferEditor": true,
|
"i18n-ally.editor.preferEditor": true,
|
||||||
"i18n-ally.keystyle": "nested",
|
"i18n-ally.keystyle": "nested",
|
||||||
|
3
src/locales/langs/en-us.json
Normal file
3
src/locales/langs/en-us.json
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"test": "Test i18ally inserting vscode into the window system"
|
||||||
|
}
|
@ -1,3 +1,5 @@
|
|||||||
|
import enUS from './en-us.json';
|
||||||
|
|
||||||
const local: App.I18n.Schema = {
|
const local: App.I18n.Schema = {
|
||||||
system: {
|
system: {
|
||||||
title: 'SoybeanAdmin',
|
title: 'SoybeanAdmin',
|
||||||
@ -281,7 +283,8 @@ const local: App.I18n.Schema = {
|
|||||||
},
|
},
|
||||||
datatable: {
|
datatable: {
|
||||||
itemCount: 'Total {total} items'
|
itemCount: 'Total {total} items'
|
||||||
}
|
},
|
||||||
|
...enUS
|
||||||
};
|
};
|
||||||
|
|
||||||
export default local;
|
export default local;
|
||||||
|
3
src/locales/langs/zh-cn.json
Normal file
3
src/locales/langs/zh-cn.json
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"test": "测试插入window系统下vscode的i18nally"
|
||||||
|
}
|
@ -1,3 +1,5 @@
|
|||||||
|
import zhCN from './zh-cn.json';
|
||||||
|
|
||||||
const local: App.I18n.Schema = {
|
const local: App.I18n.Schema = {
|
||||||
system: {
|
system: {
|
||||||
title: 'Soybean 管理系统',
|
title: 'Soybean 管理系统',
|
||||||
@ -281,7 +283,8 @@ const local: App.I18n.Schema = {
|
|||||||
},
|
},
|
||||||
datatable: {
|
datatable: {
|
||||||
itemCount: '共 {total} 条'
|
itemCount: '共 {total} 条'
|
||||||
}
|
},
|
||||||
|
...zhCN
|
||||||
};
|
};
|
||||||
|
|
||||||
export default local;
|
export default local;
|
||||||
|
Loading…
Reference in New Issue
Block a user