mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-22 16:43:35 +00:00
feat: 完成 AccountForm.vue 组件的国际化文本替换
- 将多个文本替换为 i18n 语言包中的键,以提升多语言支持和一致性。 - 更新了模型支持描述、用户代理描述、凭证文件描述等文本内容。 - 通过引入 i18n 键,增强了用户界面的可读性和可维护性。
This commit is contained in:
@@ -663,7 +663,7 @@ import Chart from 'chart.js/auto'
|
||||
|
||||
const dashboardStore = useDashboardStore()
|
||||
const themeStore = useThemeStore()
|
||||
const { t } = useI18n()
|
||||
const { t, locale } = useI18n()
|
||||
const { isDarkMode } = storeToRefs(themeStore)
|
||||
|
||||
const {
|
||||
@@ -1337,6 +1337,15 @@ watch(isDarkMode, () => {
|
||||
})
|
||||
})
|
||||
|
||||
// 监听语言变化,重新创建图表
|
||||
watch(locale, () => {
|
||||
nextTick(() => {
|
||||
createModelUsageChart()
|
||||
createUsageTrendChart()
|
||||
createApiKeysUsageTrendChart()
|
||||
})
|
||||
})
|
||||
|
||||
// 初始化
|
||||
onMounted(async () => {
|
||||
// 加载所有数据
|
||||
|
||||
Reference in New Issue
Block a user