From 4082dbd2f3b256f611f2fdc9324241822facb2be Mon Sep 17 00:00:00 2001 From: Folltoshe Date: Thu, 27 Apr 2023 22:03:34 +0800 Subject: [PATCH] =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=88=97=E8=A1=A8=E5=A4=9A?= =?UTF-8?q?=E8=AF=AD=E8=A8=80=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/types/list.d.ts | 4 ++-- src/lang/en-us.json | 2 ++ src/lang/zh-cn.json | 2 ++ src/lang/zh-tw.json | 2 ++ src/renderer/store/list/listManage/state.ts | 4 ++-- src/renderer/views/List/MyList/index.vue | 4 ++-- 6 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/common/types/list.d.ts b/src/common/types/list.d.ts index 82c325a4..5fd00014 100644 --- a/src/common/types/list.d.ts +++ b/src/common/types/list.d.ts @@ -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[] } diff --git a/src/lang/en-us.json b/src/lang/en-us.json index f89a7b68..d809dcb9 100644 --- a/src/lang/en-us.json +++ b/src/lang/en-us.json @@ -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", diff --git a/src/lang/zh-cn.json b/src/lang/zh-cn.json index 76287dc5..154530cf 100644 --- a/src/lang/zh-cn.json +++ b/src/lang/zh-cn.json @@ -78,6 +78,8 @@ "history_search": "历史搜索", "import": "导入", "leaderboard": "排行榜", + "list__name_default": "试听列表", + "list__name_love": "我的收藏", "list__add_to": "添加到...", "list__collect": "收藏", "list__copy_name": "复制歌曲名", diff --git a/src/lang/zh-tw.json b/src/lang/zh-tw.json index 0829ce85..fb6aa07d 100644 --- a/src/lang/zh-tw.json +++ b/src/lang/zh-tw.json @@ -78,6 +78,8 @@ "history_search": "歷史搜索", "import": "導入", "leaderboard": "排行榜", + "list__name_default": "試聽清單", + "list__name_love": "我的收藏", "list__add_to": "添加到...", "list__collect": "收藏", "list__copy_name": "複製歌曲名", diff --git a/src/renderer/store/list/listManage/state.ts b/src/renderer/store/list/listManage/state.ts index e82d0627..d7ff91c9 100644 --- a/src/renderer/store/list/listManage/state.ts +++ b/src/renderer/store/list/listManage/state.ts @@ -5,12 +5,12 @@ export const allMusicList: Map = markRaw(new Map() export const defaultList = markRaw({ id: LIST_IDS.DEFAULT, - name: '试听列表', + name: 'list__name_default', }) export const loveList = markRaw({ id: LIST_IDS.LOVE, - name: '我的收藏', + name: 'list__name_love', }) export const tempList = markRaw({ id: LIST_IDS.TEMP, diff --git a/src/renderer/views/List/MyList/index.vue b/src/renderer/views/List/MyList/index.vue index 70ef62c9..d94e268c 100644 --- a/src/renderer/views/List/MyList/index.vue +++ b/src/renderer/views/List/MyList/index.vue @@ -30,7 +30,7 @@ - {{ defaultList.name }} + {{ $t(defaultList.name) }}
  • - {{ loveList.name }} + {{ $t(loveList.name) }}