refactor: 优化国际化后出现的一些问题 (#651)

This commit is contained in:
ayangweb
2025-09-21 10:58:01 +08:00
committed by GitHub
parent c163f52fd0
commit bbdb63ff6d
7 changed files with 13 additions and 19 deletions

View File

@@ -19,7 +19,7 @@ const hasDescription = computed(() => {
<Flex
:align="vertical ? void 0 : 'center'"
class="b b-color-2 rounded-lg b-solid bg-color-3 p-4"
gap="middle"
:gap="vertical ? 'middle' : 'large'"
justify="space-between"
:vertical="vertical"
>

View File

@@ -85,7 +85,7 @@ export function useTray() {
}),
PredefinedMenuItem.new({ item: 'Separator' }),
MenuItem.new({
text: `${t('composables.useTray.version')} ${appVersion}`,
text: `v${appVersion}`,
enabled: false,
}),
MenuItem.new({

View File

@@ -7,7 +7,7 @@
},
"preference": {
"cat": {
"title": "Cat Settings",
"title": "Cat",
"labels": {
"modelSettings": "Model Settings",
"mirrorMode": "Mirror Mode",
@@ -58,7 +58,7 @@
}
},
"model": {
"title": "Model Settings",
"title": "Model",
"labels": {
"deleteModel": "Delete model"
},
@@ -66,7 +66,7 @@
"deleteSuccess": "Deleted successfully",
"deleteModel": "Are you sure you want to delete this model?",
"importSuccess": "Import successful",
"clickOrDragToImport": "Click or drag files here to import"
"clickOrDragToImport": "Click or drag to import"
},
"tooltips": {
"createModel": "Create model",
@@ -96,9 +96,8 @@
"labels": {
"aboutApp": "About App",
"appLog": "App Logs",
"version": "Version: ",
"appInfo": "App Info",
"openSourceAddress": "Open Source"
"openSource": "Open Source"
},
"hints": {
"appInfo": "Copy app information to include in bug reports.",
@@ -151,7 +150,6 @@
"useTray": {
"checkUpdate": "Check for updates",
"openSource": "Source Code",
"version": "Version",
"restartApp": "Restart",
"quitApp": "Exit"
}

View File

@@ -7,7 +7,7 @@
},
"preference": {
"cat": {
"title": "Cài đặt Mèo",
"title": "Mèo",
"labels": {
"modelSettings": "Cài đặt Mô hình",
"mirrorMode": "Chế độ gương",
@@ -58,7 +58,7 @@
}
},
"model": {
"title": "Cài đặt Mô hình",
"title": "Mô hình",
"labels": {
"deleteModel": "Xóa mô hình"
},
@@ -96,9 +96,8 @@
"labels": {
"aboutApp": "Thông tin ứng dụng",
"appLog": "Nhật ký ứng dụng",
"version": "Phiên bản: ",
"appInfo": "Thông tin ứng dụng",
"openSourceAddress": "Mã nguồn"
"openSource": "Mã nguồn"
},
"hints": {
"appInfo": "Sao chép thông tin để gửi bug.",
@@ -151,7 +150,6 @@
"useTray": {
"checkUpdate": "Kiểm tra cập nhật",
"openSource": "Mã nguồn",
"version": "Phiên bản",
"restartApp": "Khởi động lại",
"quitApp": "Thoát"
}

View File

@@ -96,9 +96,8 @@
"labels": {
"aboutApp": "关于软件",
"appLog": "软件日志",
"version": "版本:",
"appInfo": "软件信息",
"openSourceAddress": "开源地址"
"openSource": "开源地址"
},
"hints": {
"appInfo": "复制软件信息并提供给 Bug Issue。",
@@ -151,7 +150,6 @@
"useTray": {
"checkUpdate": "检查更新",
"openSource": "开源地址",
"version": "版本",
"restartApp": "重启应用",
"quitApp": "退出应用"
}

View File

@@ -49,7 +49,7 @@ function feedbackIssue() {
<template>
<ProList :title="$t('pages.preference.about.labels.aboutApp')">
<ProListItem
:description="`${$t('pages.preference.about.labels.version')}v${appStore.version}`"
:description="`v${appStore.version}`"
:title="appStore.name"
>
<Button

View File

@@ -48,7 +48,7 @@ onMounted(async () => {
>
<div class="i-solar:verified-check-bold text-4.5" />
<span>{{ $t('pages.preference.general.status.authorized') }}</span>
<span class="whitespace-nowrap">{{ $t('pages.preference.general.status.authorized') }}</span>
</Space>
<Space
@@ -59,7 +59,7 @@ onMounted(async () => {
>
<div class="i-solar:round-arrow-right-bold text-4.5" />
<span>{{ $t('pages.preference.general.status.authorize') }}</span>
<span class="whitespace-nowrap">{{ $t('pages.preference.general.status.authorize') }}</span>
</Space>
</ProListItem>
</ProList>