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