feat(i18n): 引入 routeI18nInstance 以支持路由菜单标题的多语言处理
All checks were successful
CI/CD Pipeline / playwright (push) Successful in 5m9s
CI/CD Pipeline / build-and-deploy (push) Successful in 2m48s

This commit is contained in:
严浩
2025-11-03 15:03:22 +08:00
parent b4fcde324d
commit f9f82e4d29
6 changed files with 49 additions and 25 deletions

View File

@@ -21,6 +21,8 @@ function setLocale(newLocale: 'en-US' | 'zh-CN') {
{{ t('page.i18n-demo.hello', { name: 'Kilo' }) }}
</n-p>
<n-p> $route.meta: {{ $route.meta }} </n-p>
<n-space>
<n-button type="primary" @click="setLocale('en-US')"> English </n-button>
<n-button type="success" @click="setLocale('zh-CN')"> 简体中文 </n-button>