fix(i18n): 补全 MV/排行榜/歌单/搜索/专辑页面缺失的国际化

- 新增 comp.pages 命名空间,包含页面描述、地区分类、加载状态等 i18n 键
- toplist: 标题和描述文本国际化
- mv: 描述、加载状态、6 个地区分类标签国际化
- list: 描述、加载/无更多状态国际化,提取每日推荐常量
- search: 描述文本国际化
- album: 5 个地区分类标签国际化
- 覆盖全部 5 种语言 (zh-CN/en-US/ja-JP/ko-KR/zh-Hant)
This commit is contained in:
alger
2026-03-15 15:57:17 +08:00
parent 239229a60c
commit 24aa574176
10 changed files with 215 additions and 37 deletions
+4 -2
View File
@@ -7,10 +7,10 @@
<h1
class="text-3xl md:text-4xl font-bold tracking-tight text-neutral-900 dark:text-white mb-2"
>
排行榜
{{ t('comp.toplist') }}
</h1>
<p class="text-neutral-500 dark:text-neutral-400">
最具权威的音乐榜单发现当下最热门的音乐
{{ t('comp.pages.toplist.desc') }}
</p>
</div>
@@ -94,6 +94,7 @@
<script lang="ts" setup>
import { onMounted, ref } from 'vue';
import { useI18n } from 'vue-i18n';
import { useRouter } from 'vue-router';
import { getToplist } from '@/api/list';
@@ -104,6 +105,7 @@ defineOptions({
name: 'Toplist'
});
const { t } = useI18n();
const router = useRouter();
const topList = ref<any[]>([]);
const loading = ref(false);