mirror of
https://github.com/jeffvli/feishin.git
synced 2026-07-14 06:30:02 +02:00
Use proper casing for i18n locales (#1998)
This commit is contained in:
@@ -80,7 +80,7 @@ function ServerSelector() {
|
||||
/>
|
||||
),
|
||||
size: 'sm',
|
||||
title: t('form.updateServer.title', { postProcess: 'titleCase' }),
|
||||
title: t('form.updateServer.title'),
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
@@ -31,12 +31,12 @@ const ActionRequiredRoute = () => {
|
||||
const checks = [
|
||||
{
|
||||
component: <ServerCredentialRequired />,
|
||||
title: t('error.credentialsRequired', { postProcess: 'sentenceCase' }),
|
||||
title: t('error.credentialsRequired'),
|
||||
valid: !isCredentialRequired,
|
||||
},
|
||||
{
|
||||
component: <ServerRequired />,
|
||||
title: t('error.serverRequired', { postProcess: 'serverRequired' }),
|
||||
title: t('error.serverRequired'),
|
||||
valid: !isServerRequired,
|
||||
},
|
||||
];
|
||||
@@ -47,7 +47,7 @@ const ActionRequiredRoute = () => {
|
||||
const handleManageServersModal = () => {
|
||||
openModal({
|
||||
children: <ServerList />,
|
||||
title: t('page.appMenu.manageServers', { postProcess: 'sentenceCase' }),
|
||||
title: t('page.appMenu.manageServers'),
|
||||
});
|
||||
};
|
||||
|
||||
@@ -79,9 +79,7 @@ const ActionRequiredRoute = () => {
|
||||
onClick={handleManageServersModal}
|
||||
variant="filled"
|
||||
>
|
||||
{t('page.appMenu.manageServers', {
|
||||
postProcess: 'sentenceCase',
|
||||
})}
|
||||
{t('page.appMenu.manageServers')}
|
||||
</Button>
|
||||
</Group>
|
||||
)}
|
||||
|
||||
@@ -21,9 +21,7 @@ const InvalidRoute = () => {
|
||||
<Stack>
|
||||
<Group justify="center" wrap="nowrap">
|
||||
<Icon color="warn" icon="error" />
|
||||
<Text size="xl">
|
||||
{t('error.apiRouteError', { postProcess: 'sentenceCase' })}
|
||||
</Text>
|
||||
<Text size="xl">{t('error.apiRouteError')}</Text>
|
||||
</Group>
|
||||
<Text>{location.pathname}</Text>
|
||||
<ActionIcon icon="arrowLeftS" onClick={() => navigate(-1)} variant="filled" />
|
||||
|
||||
@@ -28,12 +28,10 @@ const NoNetworkRoute = () => {
|
||||
<Icon icon="wifiOff" size="4rem" />
|
||||
<Stack gap="md">
|
||||
<Text size="xl" weight={600}>
|
||||
{t('error.noNetwork', { postProcess: 'sentenceCase' })}
|
||||
{t('error.noNetwork')}
|
||||
</Text>
|
||||
<Text c="dimmed" size="sm">
|
||||
{t('error.noNetworkDescription', {
|
||||
postProcess: 'sentenceCase',
|
||||
})}
|
||||
{t('error.noNetworkDescription')}
|
||||
</Text>
|
||||
</Stack>
|
||||
<Button
|
||||
@@ -41,7 +39,7 @@ const NoNetworkRoute = () => {
|
||||
onClick={handleRetry}
|
||||
variant="filled"
|
||||
>
|
||||
{t('common.retry', { postProcess: 'sentenceCase' })}
|
||||
{t('common.retry')}
|
||||
</Button>
|
||||
</Stack>
|
||||
</Center>
|
||||
|
||||
Reference in New Issue
Block a user