mirror of
https://github.com/zyycn/codex-proxy-rs.git
synced 2026-11-14 08:06:40 +00:00
* feat(frontend): add English and Traditional Chinese locales * fix(frontend): capitalize the English login key label * fix(frontend): capitalize standalone English labels * feat(frontend): add reactive localization and refine admin layouts Replace DOM text translation with domain-based Vue I18n resources for English, Simplified Chinese, and Traditional Chinese. Localize shared controls, notifications, charts, and key usage while refining table alignment, menus, and compact labels. Expose semantic usage-window and trend-metric identifiers from the API. Pin the UI and workbench dependencies to published feature commits and preserve the original font defaults. Co-authored-by: Codex <noreply@openai.com> --------- Co-authored-by: Jimbb <14995924+jimbb@users.noreply.github.com> Co-authored-by: Zyy <zyycn@users.noreply.github.com> Co-authored-by: Codex <noreply@openai.com>
18 lines
472 B
Vue
18 lines
472 B
Vue
<script setup lang="ts">
|
|
import { ZConfigProvider } from '@codex-proxy/ui'
|
|
import { watch } from 'vue'
|
|
import { useI18n } from 'vue-i18n'
|
|
import { RouterView } from 'vue-router'
|
|
import { applyLocale } from '@/i18n/locale'
|
|
import { uiLocale } from '@/i18n/ui'
|
|
|
|
const { locale } = useI18n({ useScope: 'global' })
|
|
watch(locale, applyLocale, { immediate: true })
|
|
</script>
|
|
|
|
<template>
|
|
<ZConfigProvider :locale="uiLocale">
|
|
<RouterView />
|
|
</ZConfigProvider>
|
|
</template>
|