i18n
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<div class="max-w-md w-full py-12 px-6">
|
||||
<img class="mx-auto h-24 w-auto" src="/favicon-lfk.png" alt />
|
||||
<h1 class="sm:text-3xl text-2xl font-medium title-font mb-4 text-center">
|
||||
Lauf für Kaya! - Registriert
|
||||
Lauf für Kaya! - {{ $t('registriert') }}
|
||||
</h1>
|
||||
<p class="mx-auto leading-relaxed text-base text-center">
|
||||
Bitte klicken Sie zum Fortfahren auf den Link, den wir an
|
||||
@@ -439,7 +439,13 @@ function login() {
|
||||
.catch((error) => {
|
||||
console.log(error);
|
||||
if (error.data.message === "E-Mail already registered") {
|
||||
toast("bereits registriert...", { type: TYPE.ERROR });
|
||||
toast(t('already_registered'), { type: TYPE.ERROR });
|
||||
} else if (error.data.message === "Invalid body, check 'errors' property for more info.") {
|
||||
error.data.errors.forEach(e => {
|
||||
if (e.property === "phone") {
|
||||
toast(t('invalid_input_phone_number_should_be_international_format'), { type: TYPE.ERROR });
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user