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 = {};

View File

@@ -17,7 +17,7 @@
{{ $t('If an account with this email exists, we just sent another confirmation email to {email}', {email: credentials.email}) }}
</b-message>
<b-message type="is-info">
{{ $t("Please check you spam folder if you didn't receive the email.") }}
{{ $t("Please check your spam folder if you didn't receive the email.") }}
</b-message>
</div>
</div>

View File

@@ -18,7 +18,7 @@
{{ $t('We just sent an email to {email}', {email: credentials.email}) }}
</b-message>
<b-message type="is-info">
{{ $t("Please check you spam folder if you didn't receive the email.") }}
{{ $t("Please check your spam folder if you didn't receive the email.") }}
</b-message>
</div>
</div>