add translation
gitea/salix/pipeline/head There was a failure building this commit Details

This commit is contained in:
Alex Moreno 2022-09-26 08:48:46 +02:00
parent dc605387ba
commit d2cbaa565e
5 changed files with 11 additions and 5 deletions

View File

@ -35,10 +35,12 @@ export default class Auth {
return true;
let redirectToLogin = () => {
return transition.router.stateService.target('login');
return transition.router.stateService.target('login', {
continue: this.$window.location.hash
});
};
if (this.vnToken.token || this) {
if (this.vnToken.token) {
return this.loadAcls()
.then(() => true)
.catch(redirectToLogin);

View File

@ -11,6 +11,7 @@ function interceptor($q, vnApp, vnToken, $translate) {
},
request(config) {
vnApp.pushLoader();
if (config.url.charAt(0) !== '/' && apiPath)
config.url = `${apiPath}${config.url}`;
if (vnToken.token)

View File

@ -237,5 +237,7 @@
"Recover password": "Recuperar contraseña",
"Click on the following link to change your password.": "Pulsa en el siguiente link para cambiar tu contraseña.",
"Verify email": "Verificar correo",
"Click on the following link to verify this email. If you haven't requested this email, just ignore it": "Pulsa en el siguiente link para verificar este correo. Si no has pedido este correo, simplemente ignóralo."
"Click on the following link to verify this email. If you haven't requested this email, just ignore it": "Pulsa en el siguiente link para verificar este correo. Si no has pedido este correo, simplemente ignóralo.",
"Click on the following link to change your password": "Click on the following link to change your password",
"Landing cannot be lesser than shipment": "Landing cannot be lesser than shipment"
}

View File

@ -9,7 +9,7 @@ export default class Controller extends Section {
};
return this.$http.patch(`Accounts/${this.$params.id}`, params)
.then(() => {
this.vnApp.showSuccess(this.$t('Data saved!'));
this.vnApp.showSuccess(this.$t('Email verified successfully!'));
});
}
}

View File

@ -0,0 +1 @@
Email verified successfully!: Correo verificado correctamente!