From a9fe9254f3f11a97cf61fa2e20fb3f1dd7ed5acf Mon Sep 17 00:00:00 2001 From: Nicola Benaglia Date: Sat, 24 May 2025 21:59:00 +0200 Subject: [PATCH] Fix wrong I18N keys --- src/components/NotAuthenticated.tsx | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/src/components/NotAuthenticated.tsx b/src/components/NotAuthenticated.tsx index 0d2949c..506116c 100644 --- a/src/components/NotAuthenticated.tsx +++ b/src/components/NotAuthenticated.tsx @@ -360,7 +360,7 @@ export const NotAuthenticated = ({ }) .catch((error) => { console.error( - it('auth:message.error.set_apikey', { + t('auth:message.error.set_apikey', { postProcess: 'capitalizeFirstChar', }), error.message || @@ -399,7 +399,7 @@ export const NotAuthenticated = ({ }) .catch((error) => { console.error( - it('auth:message.error.set_apikey', { + t('auth:message.error.set_apikey', { postProcess: 'capitalizeFirstChar', }), error.message || @@ -683,7 +683,7 @@ export const NotAuthenticated = ({ }) .catch((error) => { console.error( - it('auth:message.error.set_apikey', { + t('auth:message.error.set_apikey', { postProcess: 'capitalizeFirstChar', }), error.message || @@ -772,7 +772,6 @@ export const NotAuthenticated = ({ fullWidth > - {' '} {t('auth:node.custom_many', { postProcess: 'capitalizeFirstChar' })} : @@ -837,7 +836,7 @@ export const NotAuthenticated = ({ }) .catch((error) => { console.error( - it('auth:message.error.set_apikey', { + t('auth:message.error.set_apikey', { postProcess: 'capitalizeFirstChar', }), error.message || @@ -873,6 +872,7 @@ export const NotAuthenticated = ({ > {node?.url} + { console.error( - it('auth:message.error.set_apikey', { + t('auth:message.error.set_apikey', { postProcess: 'capitalizeFirstChar', }), error.message || @@ -945,7 +945,7 @@ export const NotAuthenticated = ({ }} variant="contained" > - {t('core:remove', { + {t('core:action.remove', { postProcess: 'capitalizeFirstChar', })} @@ -955,6 +955,7 @@ export const NotAuthenticated = ({ })} )} + {mode === 'add-node' && ( + saveCustomNodes(customNodes)} autoFocus > - {t('core:save', { postProcess: 'capitalizeFirstChar' })} + {t('core:action.save', { + postProcess: 'capitalizeFirstChar', + })} )} @@ -1124,7 +1128,7 @@ export const NotAuthenticated = ({ }} autoFocus > - {t('core:save', { postProcess: 'capitalizeFirstChar' })} + {t('core:action.save', { postProcess: 'capitalizeFirstChar' })}