Skip to content

Commit 2cc03cb

Browse files
committed
feat(i18n): add Traditional Chinese (zh-Hant) localization support
add Traditional Chinese translations for all application strings include new language files for artist, history, donation, favorite, login, search, user, common, download, player, settings, comp components update main i18n configuration to include zh-Hant language add zh-Hant option to language switcher component
1 parent 2f339b1 commit 2cc03cb

File tree

17 files changed

+851
-2
lines changed

17 files changed

+851
-2
lines changed

src/i18n/lang/zh-Hant/artist.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export default {
2+
hotSongs: '熱門歌曲',
3+
albums: '專輯',
4+
description: '藝人介紹'
5+
};

src/i18n/lang/zh-Hant/common.ts

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
export default {
2+
play: '播放',
3+
next: '下一首',
4+
previous: '上一首',
5+
volume: '音量',
6+
settings: '設定',
7+
search: '搜尋',
8+
loading: '載入中...',
9+
loadingMore: '載入更多...',
10+
alipay: '支付寶',
11+
wechat: '微信支付',
12+
on: '開啟',
13+
off: '關閉',
14+
show: '顯示',
15+
hide: '隱藏',
16+
confirm: '確認',
17+
cancel: '取消',
18+
configure: '設定',
19+
open: '開啟',
20+
modify: '修改',
21+
success: '操作成功',
22+
error: '操作失敗',
23+
warning: '警告',
24+
info: '提示',
25+
save: '儲存',
26+
delete: '刪除',
27+
refresh: '重新整理',
28+
retry: '重試',
29+
reset: '重設',
30+
back: '返回',
31+
copySuccess: '已複製到剪貼簿',
32+
copyFailed: '複製失敗',
33+
validation: {
34+
required: '此項為必填',
35+
invalidInput: '輸入無效',
36+
selectRequired: '請選擇一個選項',
37+
numberRange: '請輸入 {min} 到 {max} 之間的數字'
38+
},
39+
viewMore: '查看更多',
40+
noMore: '沒有更多了',
41+
selectAll: '全選',
42+
expand: '展開',
43+
collapse: '收合',
44+
songCount: '{count}首',
45+
language: '語言',
46+
tray: {
47+
show: '顯示',
48+
quit: '退出',
49+
playPause: '播放/暫停',
50+
prev: '上一首',
51+
next: '下一首',
52+
pause: '暫停',
53+
play: '播放',
54+
favorite: '收藏'
55+
}
56+
};

src/i18n/lang/zh-Hant/comp.ts

Lines changed: 190 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,190 @@
1+
export default {
2+
installApp: {
3+
description: '安裝應用程式,獲得更好的體驗',
4+
noPrompt: '不再提示',
5+
install: '立即安裝',
6+
cancel: '暫不安裝',
7+
download: '下載',
8+
downloadFailed: '下載失敗',
9+
downloadComplete: '下載完成',
10+
downloadProblem: '下載遇到問題?去',
11+
downloadProblemLinkText: '下載最新版本'
12+
},
13+
playlistDrawer: {
14+
title: '新增至播放清單',
15+
createPlaylist: '建立新播放清單',
16+
cancelCreate: '取消建立',
17+
create: '建立',
18+
playlistName: '播放清單名稱',
19+
privatePlaylist: '私人播放清單',
20+
publicPlaylist: '公開播放清單',
21+
createSuccess: '播放清單建立成功',
22+
createFailed: '播放清單建立失敗',
23+
addSuccess: '歌曲新增成功',
24+
addFailed: '歌曲新增失敗',
25+
private: '私人',
26+
public: '公開',
27+
count: '首歌曲',
28+
loginFirst: '請先登入',
29+
getPlaylistFailed: '取得播放清單失敗',
30+
inputPlaylistName: '請輸入播放清單名稱'
31+
},
32+
update: {
33+
title: '發現新版本',
34+
currentVersion: '目前版本',
35+
cancel: '暫不更新',
36+
prepareDownload: '準備下載...',
37+
downloading: '下載中...',
38+
nowUpdate: '立即更新',
39+
downloadFailed: '下載失敗,請重試或手動下載',
40+
startFailed: '啟動下載失敗,請重試或手動下載',
41+
noDownloadUrl: '未找到適合目前系統的安裝包,請手動下載',
42+
installConfirmTitle: '安裝更新',
43+
installConfirmContent: '是否關閉應用程式並安裝更新?',
44+
manualInstallTip: '如果關閉應用程式後沒有正常彈出安裝程式,請至下載資料夾尋找檔案並手動開啟。',
45+
yesInstall: '立即安裝',
46+
noThanks: '稍後安裝',
47+
fileLocation: '檔案位置',
48+
copy: '複製路徑',
49+
copySuccess: '路徑已複製到剪貼簿',
50+
copyFailed: '複製失敗',
51+
backgroundDownload: '背景下載'
52+
},
53+
coffee: {
54+
title: '請我喝杯咖啡',
55+
alipay: '支付寶',
56+
wechat: '微信支付',
57+
alipayQR: '支付寶收款碼',
58+
wechatQR: '微信收款碼',
59+
coffeeDesc: '一杯咖啡,一份支持',
60+
coffeeDescLinkText: '查看更多',
61+
qqGroup: 'QQ頻道:algermusic',
62+
messages: {
63+
copySuccess: '已複製到剪貼簿'
64+
},
65+
donateList: '請我喝杯咖啡'
66+
},
67+
playlistType: {
68+
title: '播放清單分類',
69+
showAll: '顯示全部',
70+
hide: '隱藏部分'
71+
},
72+
recommendAlbum: {
73+
title: '最新專輯'
74+
},
75+
recommendSinger: {
76+
title: '每日推薦',
77+
songlist: '每日推薦清單'
78+
},
79+
recommendSonglist: {
80+
title: '本週最熱音樂'
81+
},
82+
searchBar: {
83+
login: '登入',
84+
toLogin: '去登入',
85+
logout: '登出',
86+
set: '設定',
87+
theme: '主題',
88+
restart: '重新啟動',
89+
refresh: '重新整理',
90+
currentVersion: '目前版本',
91+
searchPlaceholder: '搜尋點什麼吧...',
92+
zoom: '頁面縮放',
93+
zoom100: '標準縮放100%',
94+
resetZoom: '點擊重設縮放',
95+
zoomDefault: '標準縮放'
96+
},
97+
titleBar: {
98+
closeTitle: '請選擇關閉方式',
99+
minimizeToTray: '最小化到系統匣',
100+
exitApp: '退出應用程式',
101+
rememberChoice: '記住我的選擇',
102+
closeApp: '關閉應用程式'
103+
},
104+
userPlayList: {
105+
title: '{name}的常聽'
106+
},
107+
musicList: {
108+
searchSongs: '搜尋歌曲',
109+
noSearchResults: '沒有找到相關歌曲',
110+
switchToNormal: '切換到預設版面',
111+
switchToCompact: '切換到緊湊版面',
112+
playAll: '播放全部',
113+
collect: '收藏',
114+
collectSuccess: '收藏成功',
115+
cancelCollectSuccess: '取消收藏成功',
116+
operationFailed: '操作失敗',
117+
cancelCollect: '取消收藏',
118+
addToPlaylist: '新增至播放清單',
119+
addToPlaylistSuccess: '新增至播放清單成功',
120+
songsAlreadyInPlaylist: '歌曲已存在於播放清單中'
121+
},
122+
playlist: {
123+
import: {
124+
button: '播放清單匯入',
125+
title: '播放清單匯入',
126+
description: '支援透過元資料/文字/連結三種方式匯入播放清單',
127+
linkTab: '連結匯入',
128+
textTab: '文字匯入',
129+
localTab: '元資料匯入',
130+
linkPlaceholder: '請輸入播放清單連結,每行一個',
131+
textPlaceholder: '請輸入歌曲資訊,格式為:歌曲名 歌手名',
132+
localPlaceholder: '請輸入JSON格式的歌曲元資料',
133+
linkTips: '支援的連結來源:',
134+
linkTip1: '將播放清單分享到微信/微博/QQ後複製連結',
135+
linkTip2: '直接複製播放清單/個人主頁連結',
136+
linkTip3: '直接複製文章連結',
137+
textTips: '請輸入歌曲資訊,每行一首歌',
138+
textFormat: '格式:歌曲名 歌手名',
139+
localTips: '請新增歌曲元資料',
140+
localFormat: '格式範例:',
141+
songNamePlaceholder: '歌曲名稱',
142+
artistNamePlaceholder: '藝人名稱',
143+
albumNamePlaceholder: '專輯名稱',
144+
addSongButton: '新增歌曲',
145+
addLinkButton: '新增連結',
146+
importToStarPlaylist: '匯入到我喜歡的音樂',
147+
playlistNamePlaceholder: '請輸入播放清單名稱',
148+
importButton: '開始匯入',
149+
emptyLinkWarning: '請輸入播放清單連結',
150+
emptyTextWarning: '請輸入歌曲資訊',
151+
emptyLocalWarning: '請輸入歌曲元資料',
152+
invalidJsonFormat: 'JSON格式不正確',
153+
importSuccess: '匯入任務建立成功',
154+
importFailed: '匯入失敗',
155+
importStatus: '匯入狀態',
156+
refresh: '重新整理',
157+
taskId: '任務ID',
158+
status: '狀態',
159+
successCount: '成功數量',
160+
failReason: '失敗原因',
161+
unknownError: '未知錯誤',
162+
statusPending: '等待處理',
163+
statusProcessing: '處理中',
164+
statusSuccess: '匯入成功',
165+
statusFailed: '匯入失敗',
166+
statusUnknown: '未知狀態',
167+
taskList: '任務清單',
168+
taskListTitle: '匯入任務清單',
169+
action: '操作',
170+
select: '選擇',
171+
fetchTaskListFailed: '取得任務清單失敗',
172+
noTasks: '暫無匯入任務',
173+
clearTasks: '清除任務',
174+
clearTasksConfirmTitle: '確認清除',
175+
clearTasksConfirmContent: '確定要清除所有匯入任務記錄嗎?此操作不可恢復。',
176+
confirm: '確認',
177+
cancel: '取消',
178+
clearTasksSuccess: '任務清單已清除',
179+
clearTasksFailed: '清除任務清單失敗'
180+
}
181+
},
182+
settings: '設定',
183+
user: '使用者',
184+
toplist: '排行榜',
185+
history: '收藏歷史',
186+
list: '播放清單',
187+
mv: 'MV',
188+
home: '首頁',
189+
search: '搜尋'
190+
};

src/i18n/lang/zh-Hant/donation.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
export default {
2+
description: '您的捐贈將用於支持開發和維護工作,包括但不限於伺服器維護、域名續費等。',
3+
message: '留言時可留下您的電子郵件或 github 名稱。',
4+
refresh: '重新整理列表',
5+
toDonateList: '請我喝杯咖啡',
6+
noMessage: '暫無留言',
7+
title: '捐贈列表'
8+
};

src/i18n/lang/zh-Hant/download.ts

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
export default {
2+
title: '下載管理',
3+
localMusic: '本機音樂',
4+
count: '共 {count} 首歌曲',
5+
clearAll: '清空記錄',
6+
settings: '設定',
7+
tabs: {
8+
downloading: '下載中',
9+
downloaded: '已下載'
10+
},
11+
empty: {
12+
noTasks: '暫無下載任務',
13+
noDownloaded: '暫無已下載歌曲'
14+
},
15+
progress: {
16+
total: '總進度: {progress}%'
17+
},
18+
status: {
19+
downloading: '下載中',
20+
completed: '已完成',
21+
failed: '失敗',
22+
unknown: '未知'
23+
},
24+
artist: {
25+
unknown: '未知歌手'
26+
},
27+
delete: {
28+
title: '刪除確認',
29+
message: '確定要刪除歌曲 "{filename}" 嗎?此操作不可恢復。',
30+
confirm: '確定刪除',
31+
cancel: '取消',
32+
success: '刪除成功',
33+
failed: '刪除失敗',
34+
fileNotFound: '檔案不存在或已被移動,已從記錄中移除',
35+
recordRemoved: '檔案刪除失敗,但已從記錄中移除'
36+
},
37+
clear: {
38+
title: '清空下載記錄',
39+
message: '確定要清空所有下載記錄嗎?此操作不會刪除已下載的音樂檔案,但將清空所有記錄。',
40+
confirm: '確定清空',
41+
cancel: '取消',
42+
success: '下載記錄已清空'
43+
},
44+
message: {
45+
downloadComplete: '{filename} 下載完成',
46+
downloadFailed: '{filename} 下載失敗: {error}'
47+
},
48+
loading: '載入中...',
49+
playStarted: '開始播放: {name}',
50+
playFailed: '播放失敗: {name}',
51+
path: {
52+
copied: '路徑已複製到剪貼簿',
53+
copyFailed: '複製路徑失敗'
54+
},
55+
settingsPanel: {
56+
title: '下載設定',
57+
path: '下載位置',
58+
pathDesc: '設定音樂檔案下載儲存的位置',
59+
pathPlaceholder: '請選擇下載路徑',
60+
noPathSelected: '請先選擇下載路徑',
61+
select: '選擇資料夾',
62+
open: '開啟資料夾',
63+
fileFormat: '檔名格式',
64+
fileFormatDesc: '設定下載音樂時的檔案命名格式',
65+
customFormat: '自訂格式',
66+
separator: '分隔符號',
67+
separators: {
68+
dash: '空格-空格',
69+
underscore: '底線',
70+
space: '空格'
71+
},
72+
dragToArrange: '拖曳排序或使用箭頭按鈕調整順序:',
73+
formatVariables: '可用變數',
74+
preview: '預覽效果:',
75+
saveSuccess: '下載設定已儲存',
76+
presets: {
77+
songArtist: '歌曲名 - 歌手名',
78+
artistSong: '歌手名 - 歌曲名',
79+
songOnly: '僅歌曲名'
80+
},
81+
components: {
82+
songName: '歌曲名',
83+
artistName: '歌手名',
84+
albumName: '專輯名'
85+
}
86+
}
87+
};

src/i18n/lang/zh-Hant/favorite.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
export default {
2+
title: '我的收藏',
3+
count: '共 {count} 首',
4+
batchDownload: '批次下載',
5+
download: '下載 ({count})',
6+
emptyTip: '還沒有收藏歌曲',
7+
downloadSuccess: '下載完成',
8+
downloadFailed: '下載失敗',
9+
downloading: '正在下載中,請稍候...',
10+
selectSongsFirst: '請先選擇要下載的歌曲',
11+
descending: '降',
12+
ascending: '升'
13+
};

src/i18n/lang/zh-Hant/history.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export default {
2+
title: '播放歷史',
3+
playCount: '{count}',
4+
getHistoryFailed: '取得歷史記錄失敗'
5+
};

0 commit comments

Comments
 (0)