fix(utils): 修复windows系统下使用vscode的i18nAlly插件无法新增多语言的问题,新增时记得选择.json后缀的文件新增~

Signed-off-by: haibiao_gu <haibiao_gu@pro-mart.cn>
This commit is contained in:
haibiao_gu 2024-09-21 22:56:25 +08:00
parent 9669ca2041
commit f56764ae4b
5 changed files with 15 additions and 3 deletions

View File

@ -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",

View File

@ -0,0 +1,3 @@
{
"test": "Test i18ally inserting vscode into the window system"
}

View File

@ -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;

View File

@ -0,0 +1,3 @@
{
"test": "测试插入window系统下vscode的i18nally"
}

View File

@ -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;