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
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773
7 changed files with 9 additions and 7 deletions

View File

@ -1,8 +1,8 @@
import gql from 'graphql-tag';
export const CREATE_USER = gql`
mutation CreateUser($email: String!, $password: String!) {
createUser(email: $email, password: $password) {
mutation CreateUser($email: String!, $password: String!, $locale: String) {
createUser(email: $email, password: $password, locale: $locale) {
email,
confirmationSentAt
}

View File

@ -173,7 +173,7 @@
"Past events": "Passed events",
"Pick an identity": "Pick an identity",
"Please be nice to each other": "Please be nice to each other",
"Please check you spam folder if you didn't receive the email.": "Please check you spam folder if you didn't receive the email.",
"Please check your spam folder if you didn't receive the email.": "Please check your spam folder if you didn't receive the email.",
"Please contact this instance's Mobilizon admin if you think this is a mistake.": "Please contact this instance's Mobilizon admin if you think this is a mistake.",
"Please make sure the address is correct and that the page hasn't been moved.": "Please make sure the address is correct and that the page hasn't been moved.",
"Please read the full rules": "Please read the full rules",

View File

@ -159,7 +159,7 @@
"Past events": "Événements passés",
"Pick an identity": "Choisissez une identité",
"Please be nice to each other": "Soyez sympas entre vous",
"Please check you spam folder if you didn't receive the email.": "Merci de vérifier votre dossier des indésirables si vous n'avez pas reçu l'email.",
"Please check your spam folder if you didn't receive the email.": "Merci de vérifier votre dossier des indésirables si vous n'avez pas reçu l'email.",
"Please contact this instance's Mobilizon admin if you think this is a mistake.": "Veuillez contacter l'administrateur de cette instance Mobilizon si vous pensez quil sagit dune erreur.",
"Please make sure the address is correct and that the page hasn't been moved.": "Assurezvous que ladresse est correcte et que la page na pas été déplacée.",
"Please read the full rules": "Merci de lire les règles complètes",

View File

@ -224,7 +224,7 @@
"The event organizer has chosen to approve manually the participations to this event. You will receive a notification when your participation has been approved": "Lorganizator de leveniment causèt daprovar manualament las participacions daqueste eveniment. Recebretz una notificacion quand serà aprovada",
"The event came from another instance. Your participation will be confirmed after we confirm it with the other instance.": "Leveniment ven duna autra instància. Vòstra participacion serà confirmada aprèp quajam recebut la confirmacion de lautra instància.",
"Please contact this instance's Mobilizon admin if you think this is a mistake.": "Volgatz contactar ladministrator daquesta instància Mobilizon se pensatz ques una error.",
"Please check you spam folder if you didn't receive the email.": "Mercés de verificar vòstre dorsièr de messatges indesirables savètz pas recebut lo corrièl.",
"Please check your spam folder if you didn't receive the email.": "Mercés de verificar vòstre dorsièr de messatges indesirables savètz pas recebut lo corrièl.",
"If this identity is the only administrator of some groups, you need to delete them before being able to delete this identity.": "Saquesta identitat es lunica que pòt administrar unes grops, vos cal los suprimir den primièr per dire de poder suprimir aquesta identitat.",
"The content came from another server. Transfer an anonymous copy of the report?": "Lo contengut ven duna autra instància. Transferir una còpia anonima del senhalament ?",
"Please make sure the address is correct and that the page hasn't been moved.": "Asseguratz-vos que ladreça es corrècta e que la pagina es pas estada desplaçada.",

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>