默认列表多语言支持
This commit is contained in:
parent
48de940acb
commit
4082dbd2f3
4
src/common/types/list.d.ts
vendored
4
src/common/types/list.d.ts
vendored
@ -12,13 +12,13 @@ declare namespace LX {
|
||||
|
||||
interface MyDefaultListInfo {
|
||||
id: 'default'
|
||||
name: '试听列表'
|
||||
name: string
|
||||
// list: LX.Music.MusicInfo[]
|
||||
}
|
||||
|
||||
interface MyLoveListInfo {
|
||||
id: 'love'
|
||||
name: '我的收藏'
|
||||
name: string
|
||||
// list: LX.Music.MusicInfo[]
|
||||
}
|
||||
|
||||
|
||||
@ -78,6 +78,8 @@
|
||||
"history_search": "History Searches",
|
||||
"import": "Import",
|
||||
"leaderboard": "Charts",
|
||||
"list__name_default": "Temp List",
|
||||
"list__name_love": "My Love",
|
||||
"list__add_to": "Add to ...",
|
||||
"list__collect": "Collect",
|
||||
"list__copy_name": "Copy name",
|
||||
|
||||
@ -78,6 +78,8 @@
|
||||
"history_search": "历史搜索",
|
||||
"import": "导入",
|
||||
"leaderboard": "排行榜",
|
||||
"list__name_default": "试听列表",
|
||||
"list__name_love": "我的收藏",
|
||||
"list__add_to": "添加到...",
|
||||
"list__collect": "收藏",
|
||||
"list__copy_name": "复制歌曲名",
|
||||
|
||||
@ -78,6 +78,8 @@
|
||||
"history_search": "歷史搜索",
|
||||
"import": "導入",
|
||||
"leaderboard": "排行榜",
|
||||
"list__name_default": "試聽清單",
|
||||
"list__name_love": "我的收藏",
|
||||
"list__add_to": "添加到...",
|
||||
"list__collect": "收藏",
|
||||
"list__copy_name": "複製歌曲名",
|
||||
|
||||
@ -5,12 +5,12 @@ export const allMusicList: Map<string, LX.Music.MusicInfo[]> = markRaw(new Map()
|
||||
|
||||
export const defaultList = markRaw<LX.List.MyDefaultListInfo>({
|
||||
id: LIST_IDS.DEFAULT,
|
||||
name: '试听列表',
|
||||
name: 'list__name_default',
|
||||
})
|
||||
|
||||
export const loveList = markRaw<LX.List.MyLoveListInfo>({
|
||||
id: LIST_IDS.LOVE,
|
||||
name: '我的收藏',
|
||||
name: 'list__name_love',
|
||||
})
|
||||
export const tempList = markRaw<LX.List.MyTempListInfo>({
|
||||
id: LIST_IDS.TEMP,
|
||||
|
||||
@ -30,7 +30,7 @@
|
||||
<transition name="list-active">
|
||||
<svg-icon v-if="defaultList.id == listId" name="angle-right-solid" :class="$style.activeIcon" />
|
||||
</transition>
|
||||
{{ defaultList.name }}
|
||||
{{ $t(defaultList.name) }}
|
||||
</span>
|
||||
</li>
|
||||
<li
|
||||
@ -42,7 +42,7 @@
|
||||
<transition name="list-active">
|
||||
<svg-icon v-if="loveList.id == listId" name="angle-right-solid" :class="$style.activeIcon" />
|
||||
</transition>
|
||||
{{ loveList.name }}
|
||||
{{ $t(loveList.name) }}
|
||||
</span>
|
||||
</li>
|
||||
<li
|
||||
|
||||
Loading…
Reference in New Issue
Block a user