Skip to content

Commit b40856d

Browse files
+ Update translations for "layout/setting/index.vue" module.
+ Update translations for "layout/setting/modules/appearance/index.vue" module. + Update translations for "layout/setting/modules/general/index.vue" module. + Remove unused translations from translation files.
1 parent acc6670 commit b40856d

File tree

8 files changed

+214
-139
lines changed

8 files changed

+214
-139
lines changed

web/src/locales/ar.json

Lines changed: 41 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -272,30 +272,47 @@
272272
"changeLanguage": "تغيير اللغة"
273273
},
274274
"setting": {
275-
"defaultTheme": "السمة الافتراضية",
276-
"themeColor": "لون السمة",
277-
"interfaceDisplay": "عرض الواجهة",
278-
"showWaterMark": "عرض العلامة المائية",
279-
"grayMode": "وضع الرمادي",
280-
"colorFadeMode": "وضع تلاشي الألوان",
281-
"menuMode": "وضع القائمة",
282-
"showTabs": "عرض علامات التبويب",
283-
"pageSwitchAnimation": "رسوم متحركة لتبديل الصفحات",
284-
"fadeInOut": "التلاشي والاختفاء",
285-
"slide": "شرائح",
286-
"zoom": "تكبير",
287-
"noAnimation": "لا يوجد رسوم متحركة",
288-
"layoutSizeConfig": "تكوين حجم التخطيط",
289-
"sidebarExpandedWidth": "عرض الشريط الجانبي الموسع",
290-
"sidebarShrinkWidth": "عرض الشريط الجانبي المنكمش",
291-
"sidebarItemHeight": "ارتفاع عنصر الشريط الجانبي",
292-
"configSaveNote1": "يرجى ملاحظة أن جميع التكوينات يجب حفظها في الملف المحلي",
293-
"configSaveNote2": "، وإلا ستفقد التكوينات بعد تحديث الصفحة",
294-
"copyConfig": "حفظ",
295-
"normalMode": "الوضع العادي",
296-
"topMenuBarMode": "وضع شريط القائمة العلوي",
297-
"combinationMode": "وضع الجمع",
298-
"copyConfigSuccess": "حفظ بنجاح"
275+
"resetConfig": "إعادة تعيين الإعدادت",
276+
"appearance": "المظهر",
277+
"layout": "التنظيم",
278+
"general": "عام",
279+
"modules": {
280+
"appearance": {
281+
"themeMode": "وضع السمات",
282+
"themeColor": "لون السمة",
283+
"visualAid": "المساعدات البصرية",
284+
"grayMode": "وضع الرمادي",
285+
"reduceColor": "تقليل تشبع اللون",
286+
"colorWeaknessMode": "وضع ضعف اللون",
287+
"optimizeColor": "تحسين تباين الألوان",
288+
"showWaterMark": "إظهار العلامة المائية",
289+
"showWaterMarkOnPage": "إظهار العلامة المائية على الصفحة"
290+
},
291+
"general": {
292+
"systemInfo": "معلومات النظام",
293+
"version": "الإصدار",
294+
"frontendFramework": "إطار عمل الواجهة الأمامية",
295+
"uiComponentLib": "مكتبة مكونات واجهة المستخدم",
296+
"buildTools": "أدوات البناء",
297+
"browser": "المتصفح",
298+
"screenResolution": "دقة الشاشة",
299+
"configManagement": "إدارة الإعدادات",
300+
"resetConfigNote": "استعادة جميع الإعدادات إلى القيم الافتراضية",
301+
"exportConfig": "تصدير الإعدادات",
302+
"exportConfigNote": "تصدير الإعدادات الحالية إلى ملف JSON",
303+
"importConfig": "استيراد الإعدادات",
304+
"importConfigNote": "استيراد الإعدادات من ملف JSON",
305+
"about": "حول المشروع",
306+
"aboutNote": "منصة تطوير متكاملة تعتمد على Vue3 + Gin، وتوفر حلاً كاملاً لإدارة الخلفية",
307+
"githubRepo": "GitHub رابط المشروع على",
308+
"officialDocs": "الوثائق الرسمية",
309+
"resetAllConfigNote": "هل أنت متأكد من رغبتك في إعادة ضبط جميع الإعدادات؟ لا يمكن التراجع عن هذه العملية.",
310+
"configReset": "إعادة تعيين الإعدادات",
311+
"configExported": "تم تصدير الإعدادت",
312+
"configImported": "تم إستيراد الإعدادت",
313+
"configFileFormatError": "خطأ فى تنسيق ملف الإعدادات"
314+
}
315+
}
299316
}
300317
},
301318
"login": {

web/src/locales/en.json

Lines changed: 41 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -273,30 +273,47 @@
273273
"videoTutorial": "Video Tutorial"
274274
},
275275
"setting": {
276-
"defaultTheme": "Default Theme",
277-
"themeColor": "Theme Color",
278-
"interfaceDisplay": "Interface Display",
279-
"showWaterMark": "Show WaterMark",
280-
"grayMode": "Gray Mode",
281-
"colorFadeMode": "Color Fade Mode",
282-
"menuMode": "Menu Mode",
283-
"showTabs": "Show Tabs",
284-
"pageSwitchAnimation": "Page Switching Animation",
285-
"fadeInOut": "Fade In And Out",
286-
"slide": "Slide",
287-
"zoom": "Zoom",
288-
"noAnimation": "No Animation",
289-
"layoutSizeConfig": "Layout Size Configuration",
290-
"sidebarExpandedWidth": "Sidebar Expanded Width",
291-
"sidebarShrinkWidth": "Sidebar Shrink Width",
292-
"sidebarItemHeight": "Sidebar Item Height",
293-
"configSaveNote1": "Please note that all configurations should be saved to local file ",
294-
"configSaveNote2": ", otherwise the configuration will be lost after refreshing the page.",
295-
"copyConfig": "Save",
296-
"normalMode": "Normal",
297-
"topMenuBarMode": "Top Menu Bar",
298-
"combinationMode": "Combination",
299-
"copyConfigSuccess": "Save successfully"
276+
"resetConfig": "Reset Configuration",
277+
"appearance": "Appearance",
278+
"layout": "Layout",
279+
"general": "General",
280+
"modules": {
281+
"appearance": {
282+
"themeMode": "Theme Mode",
283+
"themeColor": "Theme Color",
284+
"visualAid": "Visual Aid",
285+
"grayMode": "Gray Mode",
286+
"reduceColor": "Reduce color saturation",
287+
"colorWeaknessMode": "Color weakness mode",
288+
"optimizeColor": "Optimize color contrast",
289+
"showWaterMark": "Show Watermark",
290+
"showWaterMarkOnPage": "Show a watermark on the page"
291+
},
292+
"general": {
293+
"systemInfo": "System Information",
294+
"version": "Version",
295+
"frontendFramework": "Front-end Framework",
296+
"uiComponentLib": "UI Component Library",
297+
"buildTools": "Build Tools",
298+
"browser": "Browser",
299+
"screenResolution": "Screen Resolution",
300+
"configManagement": "Configuration Management",
301+
"resetConfigNote": "Restore all settings to default values",
302+
"exportConfig": "Export Configuration",
303+
"exportConfigNote": "Export the current configuration to a JSON file",
304+
"importConfig": "Import configuration",
305+
"importConfigNote": "Import configuration from a JSON file",
306+
"about": "About This Project",
307+
"aboutNote": "A full-stack development platform based on Vue3 + Gin, providing a complete background management solution",
308+
"githubRepo": "GitHub Repository",
309+
"officialDocs": "Official Documentation",
310+
"resetAllConfigNote": "Are you sure you want to reset all configurations? This operation cannot be undone.",
311+
"configReset": "Configuration reset",
312+
"configExported": "Configuration exported",
313+
"configImported": "Configuration imported",
314+
"configFileFormatError": "Configuration file format error"
315+
}
316+
}
300317
}
301318
},
302319
"login": {

web/src/locales/zh-TW.json

Lines changed: 41 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -247,30 +247,47 @@
247247
"changeLanguage": "切換語言"
248248
},
249249
"setting": {
250-
"defaultTheme": "預設主題",
251-
"themeColor": "主題色",
252-
"interfaceDisplay": "介面顯示",
253-
"showWaterMark": "顯示水印",
254-
"grayMode": "灰度模式",
255-
"colorFadeMode": "色弱模式",
256-
"menuMode": "菜單模式",
257-
"showTabs": "顯示標籤頁",
258-
"pageSwitchAnimation": "頁面切換動畫",
259-
"fadeInOut": "淡入淡出",
260-
"slide": "滑動",
261-
"zoom": "縮放",
262-
"noAnimation": "無動畫",
263-
"layoutSizeConfig": "layout 大小配置",
264-
"sidebarExpandedWidth": "側邊欄展開寬度",
265-
"sidebarShrinkWidth": "側邊欄收縮寬度",
266-
"sidebarItemHeight": "側邊欄子項高度",
267-
"configSaveNote1": "請注意,所有配置請保存到本地文件的",
268-
"configSaveNote2": " 文件中,否則刷新頁面後會丟失配置",
269-
"copyConfig": "複製配置json",
270-
"normalMode": "正常模式",
271-
"topMenuBarMode": "頂部菜單欄模式",
272-
"combinationMode": "組合模式",
273-
"copyConfigSuccess": "複製成功, 請自行保存到本地文件中"
250+
"resetConfig": "重置配置",
251+
"appearance": "外觀",
252+
"layout": "佈局",
253+
"general": "一般",
254+
"modules": {
255+
"appearance": {
256+
"themeMode": "主題模式",
257+
"themeColor": "主題顏色",
258+
"visualAid": "視覺輔助",
259+
"grayMode": "灰階模式",
260+
"reduceColor": "降低色彩飽和度",
261+
"colorWeaknessMode": "色弱模式",
262+
"optimizeColor": "優化色彩對比",
263+
"showWaterMark": "顯示浮水印",
264+
"showWaterMarkOnPage": "在頁面顯示浮水印標識"
265+
},
266+
"general": {
267+
"systemInfo": "系統訊息",
268+
"version": "版本",
269+
"frontendFramework": "前端框架",
270+
"uiComponentLib": "UI 元件庫",
271+
"buildTools": "建置工具",
272+
"browser": "瀏覽器",
273+
"screenResolution": "螢幕解析度",
274+
"configManagement": "配置管理",
275+
"resetConfigNote": "將所有設定恢復為預設值",
276+
"exportConfig": "匯出配置",
277+
"exportConfigNote": "匯出目前配置為 JSON 文件",
278+
"importConfig": "導入配置",
279+
"importConfigNote": "從 JSON 檔案匯入設定",
280+
"about": "關於項目",
281+
"aboutNote": "基於 Vue3 + Gin 的全端開發基礎平台,提供完整的後台管理解決方案",
282+
"githubRepo": "GitHub 倉庫",
283+
"officialDocs": "官方文檔",
284+
"resetAllConfigNote": "確定要重置所有配置嗎?此操作不可撤銷。",
285+
"configReset": "配置已重置",
286+
"configExported": "配置已匯出",
287+
"configImported": "配置已導入",
288+
"configFileFormatError": "設定檔格式錯誤"
289+
}
290+
}
274291
}
275292
},
276293
"login": {

web/src/locales/zh.json

Lines changed: 41 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -284,30 +284,47 @@
284284
"changeLanguage": "切换语言"
285285
},
286286
"setting": {
287-
"defaultTheme": "默认主题",
288-
"themeColor": "主题色",
289-
"interfaceDisplay": "界面显示",
290-
"showWaterMark": "展示水印",
291-
"grayMode": "灰色模式",
292-
"colorFadeMode": "色弱模式",
293-
"menuMode": "菜单模式",
294-
"showTabs": "显示标签页",
295-
"pageSwitchAnimation": "页面切换动画",
296-
"fadeInOut": "淡入淡出",
297-
"slide": "滑动",
298-
"zoom": "缩放",
299-
"noAnimation": "无动画",
300-
"layoutSizeConfig": "layout 大小配置",
301-
"sidebarExpandedWidth": "侧边栏展开宽度",
302-
"sidebarShrinkWidth": "侧边栏收缩宽度",
303-
"sidebarItemHeight": "侧边栏子项高度",
304-
"configSaveNote1": "请注意,所有配置请保存到本地文件的",
305-
"configSaveNote2": " 文件中,否则刷新页面后会丢失配置",
306-
"copyConfig": "保存配置",
307-
"normalMode": "正常模式",
308-
"topMenuBarMode": "顶部菜单栏模式",
309-
"combinationMode": "组合模式",
310-
"copyConfigSuccess": "保存成功"
287+
"resetConfig": "重置配置",
288+
"appearance": "外观",
289+
"layout": "布局",
290+
"general": "通用",
291+
"modules": {
292+
"appearance": {
293+
"themeMode": "主题模式",
294+
"themeColor": "主题颜色",
295+
"visualAid": "视觉辅助",
296+
"grayMode": "灰色模式",
297+
"reduceColor": "降低色彩饱和度",
298+
"colorWeaknessMode": "色弱模式",
299+
"optimizeColor": "优化色彩对比度",
300+
"showWaterMark": "显示水印",
301+
"showWaterMarkOnPage": "在页面显示水印标识"
302+
},
303+
"general": {
304+
"systemInfo": "系统信息",
305+
"version": "版本",
306+
"frontendFramework": "前端框架",
307+
"uiComponentLib": "UI 组件库",
308+
"buildTools": "构建工具",
309+
"browser": "浏览器",
310+
"screenResolution": "屏幕分辨率",
311+
"configManagement": "配置管理",
312+
"resetConfigNote": "将所有设置恢复为默认值",
313+
"exportConfig": "导出配置",
314+
"exportConfigNote": "导出当前配置为 JSON 文件",
315+
"importConfig": "导入配置",
316+
"importConfigNote": "从 JSON 文件导入配置",
317+
"about": "关于项目",
318+
"aboutNote": "基于 Vue3 + Gin 的全栈开发基础平台,提供完整的后台管理解决方案",
319+
"githubRepo": "GitHub 仓库",
320+
"officialDocs": "官方文档",
321+
"resetAllConfigNote": "确定要重置所有配置吗?此操作不可撤销。",
322+
"configReset": "配置已重置",
323+
"configExported": "配置已导出",
324+
"configImported": "配置已导入",
325+
"configFileFormatError": "配置文件格式错误"
326+
}
327+
}
311328
}
312329
},
313330
"login": {

web/src/view/init/index.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,7 @@
314314
t('init.dbInitNote'),
315315
t('init.configComplete'),
316316
{
317+
style: "width: 540px",
317318
confirmButtonText: t('init.viewAIConfigDocs'),
318319
cancelButtonText: t('init.configLater'),
319320
type: 'success',

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
>
1010
<template #header>
1111
<div class="flex items-center justify-between w-full px-6 py-4 bg-white dark:bg-gray-900 border-b border-gray-200 dark:border-gray-700">
12-
<h2 class="text-xl font-semibold text-gray-900 dark:text-white font-inter">系统配置</h2>
12+
<h2 class="text-xl font-semibold text-gray-900 dark:text-white font-inter">{{ t('view.systemTools.system.systemConfig') }}</h2>
1313
<el-button
1414
type="primary"
1515
size="small"
1616
class="reset-btn"
1717
:style="{ backgroundColor: config.primaryColor, borderColor: config.primaryColor }"
1818
@click="resetConfig"
1919
>
20-
重置配置
20+
{{ t('layout.setting.resetConfig') }}
2121
</el-button>
2222
</div>
2323
</template>
@@ -78,9 +78,9 @@
7878
const activeTab = ref('appearance')
7979
8080
const tabs = [
81-
{ key: 'appearance', label: '外观' },
82-
{ key: 'layout', label: '布局' },
83-
{ key: 'general', label: '通用' }
81+
{ key: 'appearance', label: t('layout.setting.appearance') },
82+
{ key: 'layout', label: t('layout.setting.layout') },
83+
{ key: 'general', label: t('layout.setting.general') }
8484
]
8585
8686
const width = computed(() => {

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

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<div class="mb-10">
55
<div class="flex items-center justify-center mb-6">
66
<div class="h-px bg-gray-200 dark:bg-gray-700 flex-1"></div>
7-
<span class="px-6 text-lg font-semibold text-gray-700 dark:text-gray-300">主题模式</span>
7+
<span class="px-6 text-lg font-semibold text-gray-700 dark:text-gray-300">{{ t('layout.setting.modules.appearance.themeMode') }}</span>
88
<div class="h-px bg-gray-200 dark:bg-gray-700 flex-1"></div>
99
</div>
1010

@@ -20,7 +20,7 @@
2020
<div class="mb-10">
2121
<div class="flex items-center justify-center mb-6">
2222
<div class="h-px bg-gray-200 dark:bg-gray-700 flex-1"></div>
23-
<span class="px-6 text-lg font-semibold text-gray-700 dark:text-gray-300">主题颜色</span>
23+
<span class="px-6 text-lg font-semibold text-gray-700 dark:text-gray-300">{{ t('layout.setting.modules.appearance.themeColor') }}</span>
2424
<div class="h-px bg-gray-200 dark:bg-gray-700 flex-1"></div>
2525
</div>
2626

@@ -36,35 +36,35 @@
3636
<div class="mb-10">
3737
<div class="flex items-center justify-center mb-6">
3838
<div class="h-px bg-gray-200 dark:bg-gray-700 flex-1"></div>
39-
<span class="px-6 text-lg font-semibold text-gray-700 dark:text-gray-300">视觉辅助</span>
39+
<span class="px-6 text-lg font-semibold text-gray-700 dark:text-gray-300">{{ t('layout.setting.modules.appearance.visualAid') }}</span>
4040
<div class="h-px bg-gray-200 dark:bg-gray-700 flex-1"></div>
4141
</div>
4242

4343
<div class="section-content">
4444
<div class="bg-gray-50 dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-xl p-6 shadow-sm">
45-
<SettingItem label="灰色模式">
45+
<SettingItem :label="t('layout.setting.modules.appearance.grayMode')">
4646
<template #suffix>
47-
<span class="text-xs text-gray-400 dark:text-gray-500 ml-2">降低色彩饱和度</span>
47+
<span class="text-xs text-gray-400 dark:text-gray-500 ml-2">{{ t('layout.setting.modules.appearance.reduceColor') }}</span>
4848
</template>
4949
<el-switch
5050
v-model="config.grey"
5151
@change="appStore.toggleGrey"
5252
/>
5353
</SettingItem>
5454

55-
<SettingItem label="色弱模式">
55+
<SettingItem :label="t('layout.setting.modules.appearance.colorWeaknessMode')">
5656
<template #suffix>
57-
<span class="text-xs text-gray-400 dark:text-gray-500 ml-2">优化色彩对比度</span>
57+
<span class="text-xs text-gray-400 dark:text-gray-500 ml-2">{{ t('layout.setting.modules.appearance.optimizeColor') }}</span>
5858
</template>
5959
<el-switch
6060
v-model="config.weakness"
6161
@change="appStore.toggleWeakness"
6262
/>
6363
</SettingItem>
6464

65-
<SettingItem label="显示水印">
65+
<SettingItem :label="t('layout.setting.modules.appearance.showWaterMark')">
6666
<template #suffix>
67-
<span class="text-xs text-gray-400 dark:text-gray-500 ml-2">在页面显示水印标识</span>
67+
<span class="text-xs text-gray-400 dark:text-gray-500 ml-2">{{ t('layout.setting.modules.appearance.showWaterMarkOnPage') }}</span>
6868
</template>
6969
<el-switch
7070
v-model="config.show_watermark"
@@ -83,6 +83,9 @@ import { useAppStore } from '@/pinia'
8383
import ThemeModeSelector from '../../components/themeModeSelector.vue'
8484
import ThemeColorPicker from '../../components/themeColorPicker.vue'
8585
import SettingItem from '../../components/settingItem.vue'
86+
import { useI18n } from 'vue-i18n' // added by mohamed hassan to support multilingual
87+
88+
const { t } = useI18n() // added by mohamed hassan to support multilingual
8689
8790
defineOptions({
8891
name: 'AppearanceSettings'

0 commit comments

Comments
 (0)