mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-07-22 20:26:50 +00:00
Add translations
This commit is contained in:
@@ -118,7 +118,10 @@ export const NotAuthenticated = ({
|
||||
window.sendMessage('setCustomNodes', copyPrev).catch((error) => {
|
||||
console.error(
|
||||
'Failed to set custom nodes:',
|
||||
error.message || 'An error occurred'
|
||||
error.message ||
|
||||
t('core:message.error.generic', {
|
||||
postProcess: 'capitalizeFirstChar',
|
||||
})
|
||||
);
|
||||
});
|
||||
return copyPrev;
|
||||
@@ -175,7 +178,10 @@ export const NotAuthenticated = ({
|
||||
.catch((error) => {
|
||||
console.error(
|
||||
'Failed to get custom nodes from storage:',
|
||||
error.message || 'An error occurred'
|
||||
error.message ||
|
||||
t('core:message.error.generic', {
|
||||
postProcess: 'capitalizeFirstChar',
|
||||
})
|
||||
);
|
||||
});
|
||||
}, []);
|
||||
@@ -238,7 +244,11 @@ export const NotAuthenticated = ({
|
||||
const stillHasLocal = await checkIfUserHasLocalNode();
|
||||
|
||||
if (isLocalKey && !stillHasLocal && !fromStartUp) {
|
||||
throw new Error('Please turn on your local node');
|
||||
throw new Error(
|
||||
t('auth:message.generic.turn_local_node', {
|
||||
postProcess: 'capitalizeFirstChar',
|
||||
})
|
||||
);
|
||||
}
|
||||
//check custom nodes
|
||||
// !gateways.some(gateway => apiKey?.url?.includes(gateway))
|
||||
@@ -297,7 +307,10 @@ export const NotAuthenticated = ({
|
||||
.catch((error) => {
|
||||
console.error(
|
||||
'Failed to set custom nodes:',
|
||||
error.message || 'An error occurred'
|
||||
error.message ||
|
||||
t('core:message.error.generic', {
|
||||
postProcess: 'capitalizeFirstChar',
|
||||
})
|
||||
);
|
||||
});
|
||||
return copyPrev;
|
||||
@@ -348,7 +361,9 @@ export const NotAuthenticated = ({
|
||||
console.error(
|
||||
'Failed to set API key:',
|
||||
error.message ||
|
||||
t('core:error', { postProcess: 'capitalizeFirstChar' })
|
||||
t('core:message.error.generic', {
|
||||
postProcess: 'capitalizeFirstChar',
|
||||
})
|
||||
);
|
||||
});
|
||||
} else {
|
||||
@@ -383,7 +398,7 @@ export const NotAuthenticated = ({
|
||||
console.error(
|
||||
'Failed to set API key:',
|
||||
error.message ||
|
||||
t('core:error', {
|
||||
t('core:message.error.generic', {
|
||||
postProcess: 'capitalizeFirstChar',
|
||||
})
|
||||
);
|
||||
@@ -451,7 +466,10 @@ export const NotAuthenticated = ({
|
||||
.catch((error) => {
|
||||
console.error(
|
||||
'Failed to set custom nodes:',
|
||||
error.message || 'An error occurred'
|
||||
error.message ||
|
||||
t('core:message.error.generic', {
|
||||
postProcess: 'capitalizeFirstChar',
|
||||
})
|
||||
);
|
||||
});
|
||||
};
|
||||
@@ -547,7 +565,9 @@ export const NotAuthenticated = ({
|
||||
postProcess: 'capitalizeFirstChar',
|
||||
})}
|
||||
</Typography>
|
||||
|
||||
<Spacer height="10px" />
|
||||
|
||||
<Typography
|
||||
color="inherit"
|
||||
sx={{
|
||||
@@ -624,9 +644,9 @@ export const NotAuthenticated = ({
|
||||
</Typography>
|
||||
<Box
|
||||
sx={{
|
||||
alignItems: 'center',
|
||||
display: 'flex',
|
||||
gap: '10px',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
width: '100%',
|
||||
}}
|
||||
@@ -659,7 +679,10 @@ export const NotAuthenticated = ({
|
||||
.catch((error) => {
|
||||
console.error(
|
||||
'Failed to set API key:',
|
||||
error.message || 'An error occurred'
|
||||
error.message ||
|
||||
t('core:message.error.generic', {
|
||||
postProcess: 'capitalizeFirstChar',
|
||||
})
|
||||
);
|
||||
});
|
||||
}
|
||||
@@ -808,7 +831,10 @@ export const NotAuthenticated = ({
|
||||
.catch((error) => {
|
||||
console.error(
|
||||
'Failed to set API key:',
|
||||
error.message || 'An error occurred'
|
||||
error.message ||
|
||||
t('core:message.error.generic', {
|
||||
postProcess: 'capitalizeFirstChar',
|
||||
})
|
||||
);
|
||||
});
|
||||
}}
|
||||
@@ -869,7 +895,10 @@ export const NotAuthenticated = ({
|
||||
.catch((error) => {
|
||||
console.error(
|
||||
'Failed to set API key:',
|
||||
error.message || 'An error occurred'
|
||||
error.message ||
|
||||
t('core:message.error.generic', {
|
||||
postProcess: 'capitalizeFirstChar',
|
||||
})
|
||||
);
|
||||
});
|
||||
}}
|
||||
@@ -1066,7 +1095,10 @@ export const NotAuthenticated = ({
|
||||
.catch((error) => {
|
||||
console.error(
|
||||
'Failed to set custom nodes:',
|
||||
error.message || 'An error occurred'
|
||||
error.message ||
|
||||
t('core:message.error.generic', {
|
||||
postProcess: 'capitalizeFirstChar',
|
||||
})
|
||||
);
|
||||
});
|
||||
return copyPrev;
|
||||
|
Reference in New Issue
Block a user