refs #6172 feat: use RegExp when message finish with .

This commit is contained in:
Javier Segarra 2023-12-15 10:07:41 +01:00
parent e525f87ccd
commit c4416545f8
3 changed files with 3 additions and 5 deletions

View File

@ -55,7 +55,7 @@ const onResponseError = (error) => {
break;
default:
message = `errors.${dataError?.message}`;
message = `errors.${dataError?.message.replace(/\.*$/, '')}`;
break;
}
if (code) message = code;

View File

@ -71,9 +71,8 @@ export default {
statusGatewayTimeout: 'Could not contact the server',
userConfig: 'Error fetching user config',
create: 'Error during creation',
'This ticket is locked': 'dEste ticket está bloqueado',
'This ticket is locked.': 'This ticket is locked',
},
'This ticket is locked': 'dEste ticket está bloqueado',
login: {
title: 'Login',
username: 'Username',

View File

@ -70,9 +70,8 @@ export default {
statusGatewayTimeout: 'No se ha podido contactar con el servidor',
userConfig: 'Error al obtener configuración de usuario',
create: 'Error al crear',
'This ticket is locked': 'Este ticket está bloqueado',
'This ticket is locked.': 'Este ticket está bloqueado',
},
'This ticket is locked': 'Este ticket está bloqueado',
login: {
title: 'Inicio de sesión',
username: 'Nombre de usuario',