mirror of
https://github.com/jeffvli/feishin.git
synced 2026-07-18 16:36:29 +02:00
Use proper casing for i18n locales (#1998)
This commit is contained in:
@@ -60,9 +60,7 @@ export const useAudioDevices = (playbackType: PlayerType) => {
|
||||
})
|
||||
.catch(() =>
|
||||
toast.error({
|
||||
message: t('error.audioDeviceFetchError', {
|
||||
postProcess: 'sentenceCase',
|
||||
}),
|
||||
message: t('error.audioDeviceFetchError'),
|
||||
}),
|
||||
);
|
||||
} else if (playbackType === PlayerType.LOCAL && mpvPlayer) {
|
||||
@@ -74,9 +72,7 @@ export const useAudioDevices = (playbackType: PlayerType) => {
|
||||
setAudioDevices(uniqueDevices);
|
||||
} catch {
|
||||
toast.error({
|
||||
message: t('error.audioDeviceFetchError', {
|
||||
postProcess: 'sentenceCase',
|
||||
}),
|
||||
message: t('error.audioDeviceFetchError'),
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -121,14 +117,10 @@ export const AudioSettings = memo(() => {
|
||||
),
|
||||
description: t('setting.audioPlayer', {
|
||||
context: 'description',
|
||||
postProcess: 'sentenceCase',
|
||||
}),
|
||||
isHidden: !isElectron(),
|
||||
note:
|
||||
status === PlayerStatus.PLAYING
|
||||
? t('common.playerMustBePaused', { postProcess: 'sentenceCase' })
|
||||
: undefined,
|
||||
title: t('setting.audioPlayer', { postProcess: 'sentenceCase' }),
|
||||
note: status === PlayerStatus.PLAYING ? t('common.playerMustBePaused') : undefined,
|
||||
title: t('setting.audioPlayer'),
|
||||
},
|
||||
{
|
||||
control: (
|
||||
@@ -149,10 +141,9 @@ export const AudioSettings = memo(() => {
|
||||
),
|
||||
description: t('setting.audioDevice', {
|
||||
context: 'description',
|
||||
postProcess: 'sentenceCase',
|
||||
}),
|
||||
isHidden: !isElectron(),
|
||||
title: t('setting.audioDevice', { postProcess: 'sentenceCase' }),
|
||||
title: t('setting.audioDevice'),
|
||||
},
|
||||
{
|
||||
control: (
|
||||
@@ -167,13 +158,10 @@ export const AudioSettings = memo(() => {
|
||||
),
|
||||
description: t('setting.webAudio', {
|
||||
context: 'description',
|
||||
postProcess: 'sentenceCase',
|
||||
}),
|
||||
isHidden: settings.type !== PlayerType.WEB,
|
||||
note: t('common.restartRequired', { postProcess: 'sentenceCase' }),
|
||||
title: t('setting.webAudio', {
|
||||
postProcess: 'sentenceCase',
|
||||
}),
|
||||
note: t('common.restartRequired'),
|
||||
title: t('setting.webAudio'),
|
||||
},
|
||||
{
|
||||
control: (
|
||||
@@ -188,12 +176,9 @@ export const AudioSettings = memo(() => {
|
||||
),
|
||||
description: t('setting.preservePitch', {
|
||||
context: 'description',
|
||||
postProcess: 'sentenceCase',
|
||||
}),
|
||||
isHidden: settings.type !== PlayerType.WEB,
|
||||
title: t('setting.preservePitch', {
|
||||
postProcess: 'sentenceCase',
|
||||
}),
|
||||
title: t('setting.preservePitch'),
|
||||
},
|
||||
{
|
||||
control: (
|
||||
@@ -210,18 +195,10 @@ export const AudioSettings = memo(() => {
|
||||
),
|
||||
description: t('setting.audioFadeOnStatusChange', {
|
||||
context: 'description',
|
||||
postProcess: 'sentenceCase',
|
||||
}),
|
||||
title: t('setting.audioFadeOnStatusChange', {
|
||||
postProcess: 'sentenceCase',
|
||||
}),
|
||||
title: t('setting.audioFadeOnStatusChange'),
|
||||
},
|
||||
];
|
||||
|
||||
return (
|
||||
<SettingsSection
|
||||
options={audioOptions}
|
||||
title={t('page.setting.audio', { postProcess: 'sentenceCase' })}
|
||||
/>
|
||||
);
|
||||
return <SettingsSection options={audioOptions} title={t('page.setting.audio')} />;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user