Skip to content

Commit 2daa12d

Browse files
committed
feat: i18n 细节调整 发布正式i18n版本
1 parent 737d23f commit 2daa12d

File tree

6 files changed

+16
-25
lines changed

6 files changed

+16
-25
lines changed

web/src/locales/ar.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,11 @@
175175
"sidebarItemHeight": "ارتفاع عنصر الشريط الجانبي",
176176
"configSaveNote1": "يرجى ملاحظة أن جميع التكوينات يجب حفظها في الملف المحلي",
177177
"configSaveNote2": "، وإلا ستفقد التكوينات بعد تحديث الصفحة",
178-
"copyConfig": "نسخ تكوين json",
178+
"copyConfig": "حفظ",
179179
"normalMode": "الوضع العادي",
180180
"topMenuBarMode": "وضع شريط القائمة العلوي",
181181
"combinationMode": "وضع الجمع",
182-
"copyConfigSuccess": "تم النسخ بنجاح، يرجى حفظه في الملف المحلي"
182+
"copyConfigSuccess": "حفظ بنجاح"
183183
}
184184
},
185185
"login": {

web/src/locales/en.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -180,11 +180,11 @@
180180
"sidebarItemHeight": "Sidebar Item Height",
181181
"configSaveNote1": "Please note that all configurations should be saved to local file ",
182182
"configSaveNote2": ", otherwise the configuration will be lost after refreshing the page.",
183-
"copyConfig": "Copy json configuration",
183+
"copyConfig": "Save",
184184
"normalMode": "Normal",
185185
"topMenuBarMode": "Top Menu Bar",
186186
"combinationMode": "Combination",
187-
"copyConfigSuccess": "Copy successfully, please save to local file."
187+
"copyConfigSuccess": "Save successfully"
188188
}
189189
},
190190
"login": {
@@ -752,17 +752,17 @@
752752
"libraryNote": "Note: You need to configure multiple databases in db-list in advance. If this item is empty, the automated code will be created using the gva main library (global.GVA_DB). If filled in, the code will be created for the specified library (global.MustGetGlobalDBByDBName(dbname))",
753753
"useGvaNote": "Note: The struct global.Model will automatically include primary key and soft delete related operations",
754754
"groupInfos": {
755-
"useGvaStructure": "Use GVA Structure",
755+
"useGvaStructure": "GVA Structure",
756756
"note1": "Note: Register the automatically generated API into the database",
757-
"autoCreateApi": "Automatically Create API",
757+
"autoCreateApi": "Create API",
758758
"note2": "Note: Register the automatically generated menu into the database",
759-
"autoCreateMenu": "Automatically Create Menu",
759+
"autoCreateMenu": "Create Menu",
760760
"note3": "Note: Automatically synchronize the database table structure, if not needed, you can choose to turn it off.",
761-
"syncTableStructure": "Synchronize Table Structure",
761+
"syncTableStructure": "Synchronize Table",
762762
"note4": "Note: Automatically generate button permission configuration within the page. If the button is not assigned in role management, the button will not be visible",
763-
"createButtonPermissions": "Create Button Permissions",
763+
"createButtonPermissions": "Button Permissions",
764764
"note5": "Note: Automatically add created_by, updated_by, deleted_by to the struct, making it easier for users to control resource permissions",
765-
"createResourceIdentifier": "Create Resource Identifier",
765+
"createResourceIdentifier": "Resource Identifier",
766766
"note6": "Note: Using the basic template will not generate any struct and CURD, only configure enter and other attributes to facilitate the development of non-CURD logic",
767767
"basicTemplate": "Basic Template"
768768
},

web/src/locales/zh.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,11 +181,11 @@
181181
"sidebarItemHeight": "侧边栏子项高度",
182182
"configSaveNote1": "请注意,所有配置请保存到本地文件的",
183183
"configSaveNote2": " 文件中,否则刷新页面后会丢失配置",
184-
"copyConfig": "复制配置json",
184+
"copyConfig": "保存配置",
185185
"normalMode": "正常模式",
186186
"topMenuBarMode": "顶部菜单栏模式",
187187
"combinationMode": "组合模式",
188-
"copyConfigSuccess": "复制成功, 请自行保存到本地文件中"
188+
"copyConfigSuccess": "保存成功"
189189
}
190190
},
191191
"login": {

web/src/view/layout/header/tools.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
:disabled="appStore.theme === 'auto'"
8484
>
8585
<SelectLang @success="changeSuccess">
86-
<el-icon class="w-8 h-8 shadow rounded-full border border-gray-200 cursor-pointer border-solid" @click="appStore.toggleLang">
86+
<el-icon class="w-8 h-8 shadow rounded-full border border-gray-200 dark:border-gray-600 cursor-pointer border-solid" @click="appStore.toggleLang">
8787
<language />
8888
</el-icon>
8989
</SelectLang>

web/src/view/layout/setting/index.vue

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -172,19 +172,10 @@ const sideModes = [
172172
];
173173
174174
const saveConfig = async () => {
175-
/*const input = document.createElement("textarea");
176-
input.value = JSON.stringify(config.value);
177-
// 添加回车
178-
input.value = input.value.replace(/,/g, ",\n");
179-
document.body.appendChild(input);
180-
input.select();
181-
document.execCommand("copy");
182-
document.body.removeChild(input);
183-
ElMessage.success(t('layout.setting.copyConfigSuccess'));
184175
const res = await setSelfSetting(config.value)
185176
if(res.code === 0){
186177
localStorage.setItem('originSetting', JSON.stringify(config.value))
187-
ElMessage.success('保存成功')
178+
ElMessage.success(t('layout.setting.copyConfigSuccess'))
188179
drawer.value = false
189180
}
190181
};

web/src/view/systemTools/autoCode/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@
155155
:inline="true"
156156
:model="form"
157157
:rules="rules"
158-
label-width="200px"
158+
label-width="170px"
159159
>
160160
<el-row class="w-full">
161161
<el-col :span="6">
@@ -323,7 +323,7 @@
323323
<el-form-item>
324324
<template #label>
325325
<el-tooltip
326-
:ontent="t('view.systemTools.autoCode.useGvaNote')"
326+
:content="t('view.systemTools.autoCode.useGvaNote')"
327327
effect="light"
328328
placement="bottom"
329329
>

0 commit comments

Comments
 (0)