Refactor unable_ from auth

This commit is contained in:
Nicola Benaglia
2025-05-22 20:25:35 +02:00
parent cc3002a085
commit 37672c309b
9 changed files with 137 additions and 51 deletions

View File

@@ -162,7 +162,7 @@ export const AdminSpaceInner = ({
type: 'error',
message:
response?.error ||
t('auth:message.error.unable_reencrypt_secret_key', {
t('auth:message.error.reencrypt_secret_key', {
postProcess: 'capitalizeFirstChar',
}),
});
@@ -173,7 +173,7 @@ export const AdminSpaceInner = ({
type: 'error',
message:
error?.message ||
t('auth:message.error.unable_reencrypt_secret_key', {
t('auth:message.error.reencrypt_secret_key', {
postProcess: 'capitalizeFirstChar',
}),
});

View File

@@ -85,7 +85,7 @@ export const AttachmentCard = ({
}
} catch (error) {
throw new Error(
t('auth:message.error.unable_decrypt', {
t('auth:message.error.decrypt', {
postProcess: 'capitalizeFirstChar',
})
);

View File

@@ -180,7 +180,7 @@ export const Embed = ({ embedLink }) => {
}
} catch (error) {
throw new Error(
t('auth:message.error.unable_decrypt', {
t('auth:message.error.decrypt', {
postProcess: 'capitalizeFirstChar',
})
);

View File

@@ -141,7 +141,7 @@ export const BlockedUsersModal = () => {
type: 'error',
message:
error?.message ||
t('auth:message.error.unable_block_user', {
t('auth:message.error.block_user', {
postProcess: 'capitalizeFirstChar',
}),
});

View File

@@ -359,7 +359,7 @@ export const NotAuthenticated = ({
})
.catch((error) => {
console.error(
it('auth:message.error.unable_set_apikey', {
it('auth:message.error.set_apikey', {
postProcess: 'capitalizeFirstChar',
}),
error.message ||
@@ -398,7 +398,7 @@ export const NotAuthenticated = ({
})
.catch((error) => {
console.error(
it('auth:message.error.unable_set_apikey', {
it('auth:message.error.set_apikey', {
postProcess: 'capitalizeFirstChar',
}),
error.message ||
@@ -682,7 +682,7 @@ export const NotAuthenticated = ({
})
.catch((error) => {
console.error(
it('auth:message.error.unable_set_apikey', {
it('auth:message.error.set_apikey', {
postProcess: 'capitalizeFirstChar',
}),
error.message ||
@@ -836,7 +836,7 @@ export const NotAuthenticated = ({
})
.catch((error) => {
console.error(
it('auth:message.error.unable_set_apikey', {
it('auth:message.error.set_apikey', {
postProcess: 'capitalizeFirstChar',
}),
error.message ||
@@ -902,7 +902,7 @@ export const NotAuthenticated = ({
})
.catch((error) => {
console.error(
it('auth:message.error.unable_set_apikey', {
it('auth:message.error.set_apikey', {
postProcess: 'capitalizeFirstChar',
}),
error.message ||