mirror of
https://github.com/jeffvli/feishin.git
synced 2026-07-19 17:06:38 +02:00
Use proper casing for i18n locales (#1998)
This commit is contained in:
@@ -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')} />;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user