refs #5887 correct translations
This commit is contained in:
parent
5a5a1ed20b
commit
d4217ff8d3
|
@ -2,7 +2,7 @@ const UserError = require('vn-loopback/util/user-error');
|
||||||
|
|
||||||
module.exports = Self => {
|
module.exports = Self => {
|
||||||
Self.remoteMethod('addAlias', {
|
Self.remoteMethod('addAlias', {
|
||||||
description: 'Add alias if user has grant',
|
description: 'Add an alias if the user has the grant',
|
||||||
accessType: 'WRITE',
|
accessType: 'WRITE',
|
||||||
accepts: [
|
accepts: [
|
||||||
{
|
{
|
||||||
|
@ -58,7 +58,7 @@ module.exports = Self => {
|
||||||
|
|
||||||
const hasAlias = aliases.includes(mailAlias);
|
const hasAlias = aliases.includes(mailAlias);
|
||||||
if (!hasAlias)
|
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({
|
return models.MailAliasAccount.create({
|
||||||
mailAlias: mailAlias,
|
mailAlias: mailAlias,
|
||||||
|
|
|
@ -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",
|
"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",
|
"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}}",
|
"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"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue