Use proper casing for i18n locales (#1998)

This commit is contained in:
Jeff
2026-05-11 19:42:07 -07:00
committed by GitHub
parent e49e488b4c
commit e2a1d813a9
224 changed files with 17323 additions and 18474 deletions
@@ -60,10 +60,9 @@ export const WindowSettings = memo(() => {
),
description: t('setting.windowBarStyle', {
context: 'description',
postProcess: 'sentenceCase',
}),
isHidden: !isElectron(),
title: t('setting.windowBarStyle', { postProcess: 'sentenceCase' }),
title: t('setting.windowBarStyle'),
},
{
control: (
@@ -99,13 +98,10 @@ export const WindowSettings = memo(() => {
),
description: t('setting.trayEnabled', {
context: 'description',
postProcess: 'sentenceCase',
}),
isHidden: !isElectron(),
note: t('common.restartRequired', {
postProcess: 'sentenceCase',
}),
title: t('setting.trayEnabled', { postProcess: 'sentenceCase' }),
note: t('common.restartRequired'),
title: t('setting.trayEnabled'),
},
{
control: (
@@ -126,10 +122,9 @@ export const WindowSettings = memo(() => {
),
description: t('setting.minimizeToTray', {
context: 'description',
postProcess: 'sentenceCase',
}),
isHidden: !isElectron() || !settings.tray,
title: t('setting.minimizeToTray', { postProcess: 'sentenceCase' }),
title: t('setting.minimizeToTray'),
},
{
control: (
@@ -150,10 +145,9 @@ export const WindowSettings = memo(() => {
),
description: t('setting.exitToTray', {
context: 'description',
postProcess: 'sentenceCase',
}),
isHidden: !isElectron() || !settings.tray,
title: t('setting.exitToTray', { postProcess: 'sentenceCase' }),
title: t('setting.exitToTray'),
},
{
control: (
@@ -174,10 +168,9 @@ export const WindowSettings = memo(() => {
),
description: t('setting.startMinimized', {
context: 'description',
postProcess: 'sentenceCase',
}),
isHidden: !isElectron() || !settings.tray,
title: t('setting.startMinimized', { postProcess: 'sentenceCase' }),
title: t('setting.startMinimized'),
},
{
control: (
@@ -201,10 +194,9 @@ export const WindowSettings = memo(() => {
),
description: t('setting.preventSleepOnPlayback', {
context: 'description',
postProcess: 'sentenceCase',
}),
isHidden: !isElectron(),
title: t('setting.preventSleepOnPlayback', { postProcess: 'sentenceCase' }),
title: t('setting.preventSleepOnPlayback'),
},
{
control: (
@@ -235,10 +227,5 @@ export const WindowSettings = memo(() => {
},
];
return (
<SettingsSection
options={windowOptions}
title={t('page.setting.application', { postProcess: 'sentenceCase' })}
/>
);
return <SettingsSection options={windowOptions} title={t('page.setting.application')} />;
});