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; break;
default: default:
message = `errors.${dataError?.message}`; message = `errors.${dataError?.message.replace(/\.*$/, '')}`;
break; break;
} }
if (code) message = code; if (code) message = code;

View File

@ -71,9 +71,8 @@ export default {
statusGatewayTimeout: 'Could not contact the server', statusGatewayTimeout: 'Could not contact the server',
userConfig: 'Error fetching user config', userConfig: 'Error fetching user config',
create: 'Error during creation', 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: { login: {
title: 'Login', title: 'Login',
username: 'Username', username: 'Username',

View File

@ -70,9 +70,8 @@ export default {
statusGatewayTimeout: 'No se ha podido contactar con el servidor', statusGatewayTimeout: 'No se ha podido contactar con el servidor',
userConfig: 'Error al obtener configuración de usuario', userConfig: 'Error al obtener configuración de usuario',
create: 'Error al crear', 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: { login: {
title: 'Inicio de sesión', title: 'Inicio de sesión',
username: 'Nombre de usuario', username: 'Nombre de usuario',