Make sure the registration email is sent with the correct locale

Closes #189

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2019-10-08 18:28:35 +02:00
parent bff00dea21
commit 406b76ef58
7 changed files with 9 additions and 7 deletions

View File

@@ -115,6 +115,7 @@ export default class Register extends Vue {
credentials = {
email: this.email,
password: this.password,
locale: 'en',
};
errors: object = {};
sendingValidation: boolean = false;
@@ -122,6 +123,7 @@ export default class Register extends Vue {
RouteName = RouteName;
async submit() {
this.credentials.locale = this.$i18n.locale;
try {
this.sendingValidation = true;
this.errors = {};