优化添加不喜欢歌曲时的提示文案

pull/2077/head
lyswhut 2024-08-02 12:32:20 +08:00
parent 481817c607
commit c6c1071d2d
5 changed files with 5 additions and 2 deletions

View File

@ -142,6 +142,7 @@
"list_update_modal__title": "List update management",
"list_update_modal__update": "Sync",
"lists__add_local_file_desc": "Select song file",
"lists__dislike_music_singer_tip": "Do you really not like {singer}'s {name}?",
"lists__dislike_music_tip": "Do you really dislike {name}?",
"lists__duplicate": "Duplicate song",
"lists__export": "Export",

View File

@ -142,6 +142,7 @@
"list_update_modal__title": "列表更新管理",
"list_update_modal__update": "立即更新",
"lists__add_local_file_desc": "选择歌曲文件",
"lists__dislike_music_singer_tip": "你真的不喜欢 {singer} 的 {name} 吗?",
"lists__dislike_music_tip": "你真的不喜欢 {name} 吗?",
"lists__duplicate": "重复歌曲",
"lists__export": "导出",

View File

@ -142,6 +142,7 @@
"list_update_modal__title": "清單更新管理",
"list_update_modal__update": "立即更新",
"lists__add_local_file_desc": "選擇歌曲文件",
"lists__dislike_music_singer_tip": "你真的不喜歡 {singer} 的 {name} 嗎?",
"lists__dislike_music_tip": "你真的不喜歡 {name} 嗎?",
"lists__duplicate": "重複歌曲",
"lists__export": "匯出",

View File

@ -33,7 +33,7 @@ export default ({ props }) => {
const handleDislikeMusic = async(index) => {
const minfo = props.list[index]
const confirm = await dialog.confirm({
message: t('lists__dislike_music_tip', { name: minfo.name }),
message: minfo.singer ? t('lists__dislike_music_singer_tip', { name: minfo.name, singer: minfo.singer }) : t('lists__dislike_music_tip', { name: minfo.name }),
cancelButtonText: t('cancel_button_text_2'),
confirmButtonText: t('confirm_button_text'),
})

View File

@ -40,7 +40,7 @@ export default ({ props, list, selectedList, removeAllSelect }) => {
const handleDislikeMusic = async(index) => {
const minfo = list.value[index]
const confirm = await dialog.confirm({
message: t('lists__dislike_music_tip', { name: minfo.name }),
message: minfo.singer ? t('lists__dislike_music_singer_tip', { name: minfo.name, singer: minfo.singer }) : t('lists__dislike_music_tip', { name: minfo.name }),
cancelButtonText: t('cancel_button_text_2'),
confirmButtonText: t('confirm_button_text'),
})