Fix wrong I18N keys

This commit is contained in:
Nicola Benaglia 2025-05-24 21:59:00 +02:00
parent 9e41ca7d33
commit a9fe9254f3

View File

@ -360,7 +360,7 @@ export const NotAuthenticated = ({
}) })
.catch((error) => { .catch((error) => {
console.error( console.error(
it('auth:message.error.set_apikey', { t('auth:message.error.set_apikey', {
postProcess: 'capitalizeFirstChar', postProcess: 'capitalizeFirstChar',
}), }),
error.message || error.message ||
@ -399,7 +399,7 @@ export const NotAuthenticated = ({
}) })
.catch((error) => { .catch((error) => {
console.error( console.error(
it('auth:message.error.set_apikey', { t('auth:message.error.set_apikey', {
postProcess: 'capitalizeFirstChar', postProcess: 'capitalizeFirstChar',
}), }),
error.message || error.message ||
@ -683,7 +683,7 @@ export const NotAuthenticated = ({
}) })
.catch((error) => { .catch((error) => {
console.error( console.error(
it('auth:message.error.set_apikey', { t('auth:message.error.set_apikey', {
postProcess: 'capitalizeFirstChar', postProcess: 'capitalizeFirstChar',
}), }),
error.message || error.message ||
@ -772,7 +772,6 @@ export const NotAuthenticated = ({
fullWidth fullWidth
> >
<DialogTitle id="alert-dialog-title"> <DialogTitle id="alert-dialog-title">
{' '}
{t('auth:node.custom_many', { postProcess: 'capitalizeFirstChar' })} {t('auth:node.custom_many', { postProcess: 'capitalizeFirstChar' })}
: :
</DialogTitle> </DialogTitle>
@ -837,7 +836,7 @@ export const NotAuthenticated = ({
}) })
.catch((error) => { .catch((error) => {
console.error( console.error(
it('auth:message.error.set_apikey', { t('auth:message.error.set_apikey', {
postProcess: 'capitalizeFirstChar', postProcess: 'capitalizeFirstChar',
}), }),
error.message || error.message ||
@ -873,6 +872,7 @@ export const NotAuthenticated = ({
> >
{node?.url} {node?.url}
</Typography> </Typography>
<Box <Box
sx={{ sx={{
display: 'flex', display: 'flex',
@ -903,7 +903,7 @@ export const NotAuthenticated = ({
}) })
.catch((error) => { .catch((error) => {
console.error( console.error(
it('auth:message.error.set_apikey', { t('auth:message.error.set_apikey', {
postProcess: 'capitalizeFirstChar', postProcess: 'capitalizeFirstChar',
}), }),
error.message || error.message ||
@ -945,7 +945,7 @@ export const NotAuthenticated = ({
}} }}
variant="contained" variant="contained"
> >
{t('core:remove', { {t('core:action.remove', {
postProcess: 'capitalizeFirstChar', postProcess: 'capitalizeFirstChar',
})} })}
</Button> </Button>
@ -955,6 +955,7 @@ export const NotAuthenticated = ({
})} })}
</Box> </Box>
)} )}
{mode === 'add-node' && ( {mode === 'add-node' && (
<Box <Box
sx={{ sx={{
@ -973,6 +974,7 @@ export const NotAuthenticated = ({
setUrl(e.target.value); setUrl(e.target.value);
}} }}
/> />
<Input <Input
placeholder={t('auth:apikey.key', { placeholder={t('auth:apikey.key', {
postProcess: 'capitalizeFirstChar', postProcess: 'capitalizeFirstChar',
@ -1030,7 +1032,9 @@ export const NotAuthenticated = ({
onClick={() => saveCustomNodes(customNodes)} onClick={() => saveCustomNodes(customNodes)}
autoFocus autoFocus
> >
{t('core:save', { postProcess: 'capitalizeFirstChar' })} {t('core:action.save', {
postProcess: 'capitalizeFirstChar',
})}
</Button> </Button>
</> </>
)} )}
@ -1124,7 +1128,7 @@ export const NotAuthenticated = ({
}} }}
autoFocus autoFocus
> >
{t('core:save', { postProcess: 'capitalizeFirstChar' })} {t('core:action.save', { postProcess: 'capitalizeFirstChar' })}
</Button> </Button>
<Button <Button
@ -1139,6 +1143,7 @@ export const NotAuthenticated = ({
</DialogActions> </DialogActions>
</Dialog> </Dialog>
)} )}
<ButtonBase <ButtonBase
onClick={() => { onClick={() => {
showTutorial('create-account', true); showTutorial('create-account', true);
@ -1157,6 +1162,7 @@ export const NotAuthenticated = ({
</ButtonBase> </ButtonBase>
<LanguageSelector /> <LanguageSelector />
<ThemeSelector /> <ThemeSelector />
</> </>
); );