mirror of
https://github.com/jeffvli/feishin.git
synced 2026-06-20 11:03:06 +02:00
convert EN localization to use proper casing, remove postprocessing from renderer
This commit is contained in:
@@ -115,12 +115,8 @@ const LoginRoute = () => {
|
||||
<PageHeader />
|
||||
<Center style={{ height: '100%', width: '100vw' }}>
|
||||
<Stack>
|
||||
<TextTitle fw={600}>
|
||||
{t('error.genericError', { postProcess: 'sentenceCase' })}
|
||||
</TextTitle>
|
||||
<Text fw={500}>
|
||||
{t('error.serverNotSelectedError', { postProcess: 'sentenceCase' })}
|
||||
</Text>
|
||||
<TextTitle fw={600}>{t('error.genericError')}</TextTitle>
|
||||
<Text fw={500}>{t('error.serverNotSelectedError')}</Text>
|
||||
<Code block>{JSON.stringify(config, null, 2)}</Code>
|
||||
</Stack>
|
||||
</Center>
|
||||
@@ -133,7 +129,7 @@ const LoginRoute = () => {
|
||||
|
||||
if (!authFunction) {
|
||||
return toast.error({
|
||||
message: t('error.invalidServer', { postProcess: 'sentenceCase' }),
|
||||
message: t('error.invalidServer'),
|
||||
});
|
||||
}
|
||||
|
||||
@@ -151,7 +147,7 @@ const LoginRoute = () => {
|
||||
|
||||
if (!data) {
|
||||
return toast.error({
|
||||
message: t('error.authenticationFailed', { postProcess: 'sentenceCase' }),
|
||||
message: t('error.authenticationFailed'),
|
||||
});
|
||||
}
|
||||
|
||||
@@ -195,7 +191,7 @@ const LoginRoute = () => {
|
||||
}
|
||||
|
||||
toast.success({
|
||||
message: t('form.addServer.success', { postProcess: 'sentenceCase' }),
|
||||
message: t('form.addServer.success'),
|
||||
});
|
||||
|
||||
if (localSettings && values.password) {
|
||||
@@ -204,7 +200,6 @@ const LoginRoute = () => {
|
||||
toast.error({
|
||||
message: t('form.addServer.error', {
|
||||
context: 'savePassword',
|
||||
postProcess: 'sentenceCase',
|
||||
}),
|
||||
});
|
||||
}
|
||||
@@ -250,7 +245,6 @@ const LoginRoute = () => {
|
||||
data-autofocus
|
||||
label={t('form.addServer.input', {
|
||||
context: 'username',
|
||||
postProcess: 'titleCase',
|
||||
})}
|
||||
required
|
||||
variant="filled"
|
||||
@@ -259,7 +253,6 @@ const LoginRoute = () => {
|
||||
<PasswordInput
|
||||
label={t('form.addServer.input', {
|
||||
context: 'password',
|
||||
postProcess: 'titleCase',
|
||||
})}
|
||||
required
|
||||
variant="filled"
|
||||
@@ -277,7 +270,6 @@ const LoginRoute = () => {
|
||||
>
|
||||
{t('common.login', {
|
||||
defaultValue: 'Login',
|
||||
postProcess: 'titleCase',
|
||||
})}
|
||||
</Button>
|
||||
</Stack>
|
||||
|
||||
Reference in New Issue
Block a user