Fix some i18n keys (#2148)
This commit is contained in:
@@ -68,7 +68,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)
|
||||
setAllStatus(window.i18n.t('player__geting_url_delay_retry', { time }))
|
||||
setAllStatus(window.i18n.t('player__getting_url_delay_retry', { time }))
|
||||
const tiemout = setTimeout(() => {
|
||||
getMusicPlayUrl(musicInfo, isRefresh, true).then((result) => {
|
||||
cancelDelayRetry = null
|
||||
@@ -87,7 +87,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)
|
||||
setAllStatus(window.i18n.t('player__geting_url'))
|
||||
setAllStatus(window.i18n.t('player__getting_url'))
|
||||
if (appSetting['player.autoSkipOnError']) addLoadTimeout()
|
||||
|
||||
// const type = getPlayType(appSetting['player.highQuality'], musicInfo)
|
||||
|
||||
@@ -30,7 +30,7 @@ export default () => {
|
||||
if (!device && !devices.length && !isShowingTipAlert) {
|
||||
isShowingTipAlert = true
|
||||
void dialog({
|
||||
message: window.i18n.t('media_device__emtpy_device_tip'),
|
||||
message: window.i18n.t('media_device__empty_device_tip'),
|
||||
confirmButtonText: window.i18n.t('ok'),
|
||||
}).finally(() => {
|
||||
isShowingTipAlert = false
|
||||
|
||||
@@ -101,10 +101,10 @@ const setStatus = (downloadInfo: LX.Download.ListItem, status: LX.Download.Downl
|
||||
if (statusText == null) {
|
||||
switch (status) {
|
||||
case DOWNLOAD_STATUS.RUN:
|
||||
statusText = window.i18n.t('download___status_runing')
|
||||
statusText = window.i18n.t('download___status_running')
|
||||
break
|
||||
case DOWNLOAD_STATUS.WAITING:
|
||||
statusText = window.i18n.t('download___status_wating')
|
||||
statusText = window.i18n.t('download___status_waiting')
|
||||
break
|
||||
case DOWNLOAD_STATUS.PAUSE:
|
||||
statusText = window.i18n.t('download___status_paused')
|
||||
@@ -113,7 +113,7 @@ const setStatus = (downloadInfo: LX.Download.ListItem, status: LX.Download.Downl
|
||||
statusText = window.i18n.t('download___status_error')
|
||||
break
|
||||
case DOWNLOAD_STATUS.COMPLETED:
|
||||
statusText = window.i18n.t('download___status_complated')
|
||||
statusText = window.i18n.t('download___status_completed')
|
||||
break
|
||||
default:
|
||||
statusText = ''
|
||||
@@ -261,7 +261,7 @@ const handleError = (downloadInfo: LX.Download.ListItem, message?: string) => {
|
||||
|
||||
const handleStartTask = async(downloadInfo: LX.Download.ListItem) => {
|
||||
if (!downloadInfo.metadata.url) {
|
||||
setStatusText(downloadInfo, window.i18n.t('download_status_url_geting'))
|
||||
setStatusText(downloadInfo, window.i18n.t('download_status_url_getting'))
|
||||
const url = await getUrl(downloadInfo)
|
||||
if (!url) {
|
||||
handleError(downloadInfo, window.i18n.t('download_status_error_url_failed'))
|
||||
|
||||
@@ -8,7 +8,7 @@ export default () => {
|
||||
id: 'all',
|
||||
},
|
||||
{
|
||||
label: window.i18n.t('download__runing'),
|
||||
label: window.i18n.t('download__running'),
|
||||
id: 'runing',
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user