Remove unable_ from core error

This commit is contained in:
Nicola Benaglia
2025-05-23 07:30:12 +02:00
parent f73ec1fb3c
commit b962d01fba
9 changed files with 35 additions and 25 deletions

View File

@@ -208,7 +208,7 @@ export const AppRating = ({ app, myName, ratingCountPosition = 'right' }) => {
type: 'error',
message:
error?.message ||
t('core:message.error.unable_rate', {
t('core:message.error.rate', {
postProcess: 'capitalizeFirstChar',
}),
});

View File

@@ -183,7 +183,7 @@ export const AppsPrivate = ({ myName }) => {
if (decryptedData?.error) {
throw new Error(
decryptedData?.error ||
t('core:message.error.unable_encrypt_app', {
t('core:message.error.encrypt_app', {
postProcess: 'capitalizeFirstChar',
})
);
@@ -238,7 +238,7 @@ export const AppsPrivate = ({ myName }) => {
type: 'error',
message:
error?.message ||
t('core:message.error.unable_publish_app', {
t('core:message.error.publish_app', {
postProcess: 'capitalizeFirstChar',
}),
});

View File

@@ -890,7 +890,7 @@ export const ChatGroup = ({
);
if (res !== true)
throw new Error(
t('core:message.error.unable_publish_image', {
t('core:message.error.publish_image', {
postProcess: 'capitalizeFirstChar',
})
);

View File

@@ -238,7 +238,7 @@ export const Embed = ({ embedLink }) => {
return imageFinalUrl;
} else {
setErrorMsg(
t('core:message.error.unable_download_image', {
t('core:message.error.download_image', {
postProcess: 'capitalizeFirstChar',
})
);

View File

@@ -69,7 +69,7 @@ export const PollCard = ({
type: 'error',
message:
response?.error ||
t('core:message.error.unable_vote', {
t('core:message.error.vote', {
postProcess: 'capitalizeFirstChar',
}),
});
@@ -91,7 +91,7 @@ export const PollCard = ({
type: 'error',
message:
error?.message ||
t('core:message.error.unable_vote', {
t('core:message.error.vote', {
postProcess: 'capitalizeFirstChar',
}),
});