Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix i18n keys #657

Merged
merged 1 commit into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/DesktopLyricEnable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export default forwardRef<DesktopLyricEnableType, {}>((props, ref) => {
closeBtn={false}
cancelText={t('disagree')}
confirmText={t('agree_go')}
text={t('setting_lyric_dektop_permission_tip')} />
text={t('setting_lyric_desktop_permission_tip')} />
)
: null
)
Expand Down
4 changes: 2 additions & 2 deletions src/core/player/player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const delayRetry = async(musicInfo: LX.Music.MusicInfo | LX.Download.ListItem, i
// if (cancelDelayRetry) cancelDelayRetry()
return new Promise<string | null>((resolve, reject) => {
const time = getRandom(2, 6)
setStatusText(global.i18n.t('player__geting_url_delay_retry', { time }))
setStatusText(global.i18n.t('player__getting_url_delay_retry', { time }))
const tiemout = setTimeout(() => {
getMusicPlayUrl(musicInfo, isRefresh, true).then((result) => {
cancelDelayRetry = null
Expand All @@ -95,7 +95,7 @@ const delayRetry = async(musicInfo: LX.Music.MusicInfo | LX.Download.ListItem, i
}
const getMusicPlayUrl = async(musicInfo: LX.Music.MusicInfo | LX.Download.ListItem, isRefresh = false, isRetryed = false): Promise<string | null> => {
// this.musicInfo.url = await getMusicPlayUrl(targetSong, type)
setStatusText(global.i18n.t('player__geting_url'))
setStatusText(global.i18n.t('player__getting_url'))
addLoadTimeout()

// const type = getPlayType(settingState.setting['player.isPlayHighQuality'], musicInfo)
Expand Down
10 changes: 5 additions & 5 deletions src/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@
"player__buffering": "buffering...",
"player__end": "finished playing",
"player__error": "Audio loading error, switch to next track after 5 seconds",
"player__geting_url": "Acquiring the song link...",
"player__geting_url_delay_retry": "The server is busy, try again in {time} seconds...",
"player__getting_url": "Acquiring the song link...",
"player__getting_url_delay_retry": "The server is busy, try again in {time} seconds...",
"player__loading": "Music loading...",
"player__refresh_url": "The URL has expired, refreshing the URL...",
"player_cache_migrating": "Song cache is being migrated, please wait ⌛️",
Expand Down Expand Up @@ -239,7 +239,7 @@
"setting_backup_part_import_list": "Import List",
"setting_backup_part_import_list_desc": "Select the list of backup files",
"setting_backup_part_import_list_tip_error": "List import failed 😕",
"setting_backup_part_import_list_tip_runing": "🚀I am trying to import...\nIf the list is too big, it may take some time⏳",
"setting_backup_part_import_list_tip_running": "🚀I am trying to import...\nIf the list is too big, it may take some time⏳",
"setting_backup_part_import_list_tip_success": "Import successful 🎉",
"setting_backup_part_import_list_tip_unzip": "📦File parsing...\nIf the file is too large, it may take some time⏳",
"setting_backup_part_import_setting": "Import settings",
Expand Down Expand Up @@ -300,7 +300,7 @@
"setting_list_click_action": "When you click a song in the list, it will automatically switch to the current list for playback (only valid for playlists and leaderboards)",
"setting_list_show interval": "Show song duration",
"setting_list_show_album_name": "Show song album name",
"setting_lyric_dektop_permission_tip": "The desktop lyrics function needs to be granted the permission of LX Music to display the floating window in the system permission setting before it can be used. Do you go to the relevant interface to grant this permission?",
"setting_lyric_desktop_permission_tip": "The desktop lyrics function needs to be granted the permission of LX Music to display the floating window in the system permission setting before it can be used. Do you go to the relevant interface to grant this permission?",
"setting_lyric_desktop": "Desktop lyrics",
"setting_lyric_desktop_enable": "Show desktop lyrics",
"setting_lyric_desktop_lock": "Lock lyrics",
Expand Down Expand Up @@ -362,7 +362,7 @@
"setting_sync_code_fail": "Invalid connection code",
"setting_sync_code_input_tip": "Please enter the connection code",
"setting_sync_code_label": "You need to enter the connection code for the first connection",
"setting_sync_enbale": "Enable sync",
"setting_sync_enable": "Enable sync",
"setting_sync_history": "History address",
"setting_sync_history_empty": "Nothing here",
"setting_sync_history_title": "Connection history",
Expand Down
10 changes: 5 additions & 5 deletions src/lang/zh_cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@
"player__buffering": "缓冲中...",
"player__end": "播放完毕",
"player__error": "音频加载出错,5 秒后切换下一首",
"player__geting_url": "歌曲链接获取中...",
"player__geting_url_delay_retry": "服务器繁忙,{time}秒后重试...",
"player__getting_url": "歌曲链接获取中...",
"player__getting_url_delay_retry": "服务器繁忙,{time}秒后重试...",
"player__loading": "音乐加载中...",
"player__refresh_url": "URL过期,正在刷新URL...",
"player_cache_migrating": "歌曲缓存迁移中,请稍等 ⌛️",
Expand Down Expand Up @@ -239,7 +239,7 @@
"setting_backup_part_import_list": "导入列表",
"setting_backup_part_import_list_desc": "选择列表备份文件",
"setting_backup_part_import_list_tip_error": "列表导入失败😕",
"setting_backup_part_import_list_tip_runing": "🚀正在努力导入中...\n若列表太大可能需要一些时间⏳",
"setting_backup_part_import_list_tip_running": "🚀正在努力导入中...\n若列表太大可能需要一些时间⏳",
"setting_backup_part_import_list_tip_success": "导入成功🎉",
"setting_backup_part_import_list_tip_unzip": "📦文件解析中...\n若文件太大可能需要一些时间⏳",
"setting_backup_part_import_setting": "导入设置",
Expand Down Expand Up @@ -300,7 +300,7 @@
"setting_list_click_action": "点击列表里的歌曲时自动切换到当前列表播放(仅对歌单、排行榜有效)",
"setting_list_show interval": "显示歌曲时长",
"setting_list_show_album_name": "显示歌曲专辑名",
"setting_lyric_dektop_permission_tip": "桌面歌词功能需要在系统权限设置中授予LX Music显示悬浮窗口的权限才能使用,是否去相关界面授予此权限?",
"setting_lyric_desktop_permission_tip": "桌面歌词功能需要在系统权限设置中授予LX Music显示悬浮窗口的权限才能使用,是否去相关界面授予此权限?",
"setting_lyric_desktop": "桌面歌词",
"setting_lyric_desktop_enable": "显示桌面歌词",
"setting_lyric_desktop_lock": "锁定歌词",
Expand Down Expand Up @@ -362,7 +362,7 @@
"setting_sync_code_fail": "连接码无效",
"setting_sync_code_input_tip": "请输入连接码",
"setting_sync_code_label": "首次连接需要输入连接码",
"setting_sync_enbale": "启用同步",
"setting_sync_enable": "启用同步",
"setting_sync_history": "历史地址",
"setting_sync_history_empty": "这里啥也没有😮",
"setting_sync_history_title": "连接历史",
Expand Down
2 changes: 1 addition & 1 deletion src/screens/Home/Views/Setting/settings/Sync/IsEnable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export default memo(({ host, setHost }: {
return (
<>
<View style={styles.infoContent}>
<CheckBoxItem disabled={!host} check={isEnableSync} label={t('setting_sync_enbale')} onChange={handleSetEnableSync} />
<CheckBoxItem disabled={!host} check={isEnableSync} label={t('setting_sync_enable')} onChange={handleSetEnableSync} />
<Text style={styles.textAddr} size={13}>{t('setting_sync_address', { address })}</Text>
<Text style={styles.text} size={13}>{t('setting_sync_status', { status })}</Text>
</View>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ export default memo(({ isWaiting, setIsWaiting }: {
return (
<>
<View style={{ marginTop: 5 }}>
<CheckBoxItem disabled={isWaiting || !port || !host} check={isEnableSync} label={t('setting_sync_enbale')} onChange={handleSetEnableSync} />
<CheckBoxItem disabled={isWaiting || !port || !host} check={isEnableSync} label={t('setting_sync_enable')} onChange={handleSetEnableSync} />
<Text style={{ ...styles.text, marginTop: setSpText(5) }} size={13}>{t('setting_sync_address', { address })}</Text>
<Status />
</View>
Expand Down
Loading