Fix i18n keys (#657)

This commit is contained in:
3gf8jv4dv 2024-12-19 00:06:18 +08:00 committed by GitHub
parent d74a6976fc
commit 262b574937
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 15 additions and 15 deletions

View File

@ -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
)

View File

@ -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
@ -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)

View File

@ -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 ⌛️",
@ -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",
@ -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",
@ -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",

View File

@ -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": "歌曲缓存迁移中,请稍等 ⌛️",
@ -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": "导入设置",
@ -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": "锁定歌词",
@ -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": "连接历史",

View File

@ -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>

View File

@ -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>