Skip to content

Commit e52fff4

Browse files
committed
修复添加歌曲弹窗默认列表名字显示问题
1 parent 8d10850 commit e52fff4

4 files changed

Lines changed: 11 additions & 6 deletions

File tree

publish/changeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
### 修复
22

33
- 修复在低版本Linux amd64系统上无法启动的问题(glibc版本要求过高导致的,采用内置预编译二进制文件的方式解决)
4+
- 修复添加歌曲弹窗默认列表名字显示问题

src/lang/en-us.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@
7878
"history_search": "History Searches",
7979
"import": "Import",
8080
"leaderboard": "Charts",
81-
"list__name_default": "Temp List",
82-
"list__name_love": "My Love",
81+
"list__name_default": "Default",
82+
"list__name_love": "Love",
8383
"list__add_to": "Add to ...",
8484
"list__collect": "Collect",
8585
"list__copy_name": "Copy name",

src/renderer/components/common/ListAddModal.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import { watch, ref, onBeforeUnmount } from '@common/utils/vueTools'
2222
import { defaultList, loveList, userLists } from '@renderer/store/list/state'
2323
import { addListMusics, moveListMusics, createUserList, getMusicExistListIds } from '@renderer/store/list/action'
2424
import useKeyDown from '@renderer/utils/compositions/useKeyDown'
25+
import { useI18n } from '@/lang'
2526
2627
export default {
2728
props: {
@@ -63,6 +64,7 @@ export default {
6364
emits: ['update:show'],
6465
setup(props) {
6566
const keyModDown = useKeyDown('mod')
67+
const t = useI18n()
6668
const lists = ref([])
6769
6870
const currentMusicInfo = ref({})
@@ -81,8 +83,8 @@ export default {
8183
8284
const getList = () => {
8385
lists.value = [
84-
defaultList,
85-
loveList,
86+
{ ...defaultList, name: t(defaultList.name) },
87+
{ ...loveList, name: t(loveList.name) },
8688
...userLists,
8789
].filter(l => !props.excludeListId.includes(l.id)).map(l => ({ ...l, isExist: false }))
8890
checkMusicExist(currentMusicInfo.value)

src/renderer/components/common/ListAddMultipleModal.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import { computed } from '@common/utils/vueTools'
2121
import { defaultList, loveList, userLists } from '@renderer/store/list/state'
2222
import { addListMusics, moveListMusics, createUserList } from '@renderer/store/list/action'
2323
import useKeyDown from '@renderer/utils/compositions/useKeyDown'
24+
import { useI18n } from '@/lang'
2425
2526
export default {
2627
props: {
@@ -64,11 +65,12 @@ export default {
6465
emits: ['update:show', 'confirm'],
6566
setup(props) {
6667
const keyModDown = useKeyDown('mod')
68+
const t = useI18n()
6769
6870
const lists = computed(() => {
6971
return [
70-
defaultList,
71-
loveList,
72+
{ ...defaultList, name: t(defaultList.name) },
73+
{ ...loveList, name: t(loveList.name) },
7274
...userLists,
7375
].filter(l => !props.excludeListId.includes(l.id))
7476
})

0 commit comments

Comments
 (0)