diff --git a/src/locale/lang/en.js b/src/locale/lang/en.js index b537f80..d8b8c2b 100644 --- a/src/locale/lang/en.js +++ b/src/locale/lang/en.js @@ -170,6 +170,9 @@ export default { addToPlaylist: 'Add to playlist', searchInPlaylist: 'Search in playlist', copyUrl: 'Copy URL', + allPlaylists: 'All Playlists', + minePlaylists: 'My Playlists', + likedPlaylists: 'Liked Playlists', }, toast: { savedToPlaylist: 'Saved to playlist', diff --git a/src/locale/lang/zh-CN.js b/src/locale/lang/zh-CN.js index b0ed0f7..70bfbed 100644 --- a/src/locale/lang/zh-CN.js +++ b/src/locale/lang/zh-CN.js @@ -171,6 +171,9 @@ export default { addToPlaylist: '添加到歌单', searchInPlaylist: '歌单内搜索', copyUrl: '复制链接', + allPlaylists: '全部歌单', + minePlaylists: '创建的歌单', + likedPlaylists: '收藏的歌单', }, toast: { savedToPlaylist: '已添加到歌单', diff --git a/src/views/library.vue b/src/views/library.vue index 0e2803b..d671074 100644 --- a/src/views/library.vue +++ b/src/views/library.vue @@ -49,9 +49,11 @@ @click="updateCurrentTab('playlists')" > {{ - { all: '全部歌单', mine: '创建的歌单', liked: '收藏的歌单' }[ - playlistFilter - ] + { + all: $t('contextMenu.allPlaylists'), + mine: $t('contextMenu.minePlaylists'), + liked: $t('contextMenu.likedPlaylists'), + }[playlistFilter] }} -
全部歌单
+
{{ + $t('contextMenu.allPlaylists') + }}

-
创建的歌单
-
收藏的歌单
+
{{ + $t('contextMenu.minePlaylists') + }}
+
{{ + $t('contextMenu.likedPlaylists') + }}
diff --git a/src/views/searchType.vue b/src/views/searchType.vue index dfb0b86..c68a826 100644 --- a/src/views/searchType.vue +++ b/src/views/searchType.vue @@ -1,7 +1,7 @@