Skip to content

Commit

Permalink
Implement zh-TW language
Browse files Browse the repository at this point in the history
- Implementation based on Simplified Chinese text and Taiwanese language
habits
- Review the zh-CN text again during revision of the zh-TW and revise it

Tested in the Android Studio virtual machine.
  • Loading branch information
3gf8jv4dv committed Dec 20, 2024
1 parent 0dd4efa commit 01ec388
Show file tree
Hide file tree
Showing 3 changed files with 524 additions and 4 deletions.
10 changes: 10 additions & 0 deletions src/lang/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import zh_cn from './zh_cn.json'
import zh_tw from './zh_tw.json'
import en_us from './en_us.json'

type Message = Record<keyof typeof zh_cn, string>
| Record<keyof typeof zh_tw, string>
| Record<keyof typeof en_us, string>


Expand All @@ -14,6 +16,14 @@ const langs = [
fallback: true,
message: zh_cn,
},
{
name: '繁體中文',
locale: 'zh_tw',
// alternate: 'zh-hant',
country: 'cn',
fallback: true,
message: zh_tw,
},
{
name: 'English',
locale: 'en_us',
Expand Down
8 changes: 4 additions & 4 deletions src/lang/zh_cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,11 @@
"metadata_edit_modal_form_parse_name": "从文件名解析歌曲名、艺术家",
"metadata_edit_modal_form_parse_name_singer": "歌曲名 - 艺术家",
"metadata_edit_modal_form_parse_singer_name": "艺术家 - 歌曲名",
"metadata_edit_modal_form_pic": "歌曲封面",
"metadata_edit_modal_form_pic": "歌曲专辑封面",
"metadata_edit_modal_form_remove_lyric": "清空",
"metadata_edit_modal_form_remove_pic": "移除图片",
"metadata_edit_modal_form_select_pic": "选择图片",
"metadata_edit_modal_form_select_pic_title": "选择歌曲封面图片",
"metadata_edit_modal_form_select_pic_title": "选择歌曲专辑封面图片",
"metadata_edit_modal_form_singer": "艺术家",
"metadata_edit_modal_processing": "写入中...",
"metadata_edit_modal_success": "保存成功",
Expand Down Expand Up @@ -182,7 +182,7 @@
"play_detail_setting_lrc_font_size": "歌词字体大小",
"play_detail_setting_playback_rate": "播放速率",
"play_detail_setting_playback_rate_reset": "重置",
"play_detail_setting_show_lyric_progress_setting": "允许通过歌词调整播放进度",
"play_detail_setting_show_lyric_progress_setting": "允许通过拖拽歌词调整播放进度",
"play_detail_setting_title": "播放器设置",
"play_detail_setting_volume": "音量大小",
"play_detail_todo_tip": "你想干嘛?不可以的,这个功能还没有实现哦😛,不过你可以试着长按来定位当前播放的歌曲(仅对播放「我的列表」里的歌曲有效哦)",
Expand Down Expand Up @@ -344,7 +344,7 @@
"setting_play_handle_audio_focus": "其他应用播放声音时,自动暂停播放",
"setting_play_handle_audio_focus_tip": "重启应用后生效",
"setting_play_lyric_transition": "显示歌词翻译",
"setting_play_play_quality": "优先播放的音质(如果支持",
"setting_play_play_quality": "优先播放的音质(如果可用",
"setting_play_s2t": "将播放的中文歌词转换为繁体",
"setting_play_save_play_time": "记住播放进度",
"setting_play_show_bluetooth_lyric": "显示蓝牙歌词",
Expand Down
Loading

0 comments on commit 01ec388

Please sign in to comment.