refs #5887 correct translations

This commit is contained in:
Vicent Llopis 2023-07-11 13:38:48 +02:00
parent 5a5a1ed20b
commit d4217ff8d3
2 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@ const UserError = require('vn-loopback/util/user-error');
module.exports = Self => {
Self.remoteMethod('addAlias', {
description: 'Add alias if user has grant',
description: 'Add an alias if the user has the grant',
accessType: 'WRITE',
accepts: [
{
@ -58,7 +58,7 @@ module.exports = Self => {
const hasAlias = aliases.includes(mailAlias);
if (!hasAlias)
throw new UserError(`You don't have the alias assigned and you can't assign it to another user`);
throw new UserError(`You cannot assign an alias that you are not assigned to`);
return models.MailAliasAccount.create({
mailAlias: mailAlias,

View File

@ -299,5 +299,5 @@
"Mail not sent": "Se ha producido un fallo al enviar la factura al cliente [{{clientId}}]({{{clientUrl}}}), por favor revisa la dirección de correo electrónico",
"The renew period has not been exceeded": "El periodo de renovación no ha sido superado",
"Negative basis of tickets": "Base negativa para los tickets: {{ticketsIds}}",
"You don't have the alias assigned and you can't assign it to another user": "No tienes el alias asignado y no puedes asignarlo a otro usuario"
"You cannot assign an alias that you are not assigned to": "No puede asignar un alias que no tenga asignado"
}