-
+
diff --git a/app/pages/index.vue b/app/pages/index.vue
index 33017a8..c9a100d 100644
--- a/app/pages/index.vue
+++ b/app/pages/index.vue
@@ -1,7 +1,10 @@
- ...
+
+
{{ $t("home") }}
+
diff --git a/auth/components/AuthButton.vue b/auth/components/AuthButton.vue
index b359f59..e49b708 100644
--- a/auth/components/AuthButton.vue
+++ b/auth/components/AuthButton.vue
@@ -1,11 +1,14 @@
diff --git a/auth/components/TheAuthLoginForm.vue b/auth/components/TheAuthLoginForm.vue
index c7464f3..35be47b 100644
--- a/auth/components/TheAuthLoginForm.vue
+++ b/auth/components/TheAuthLoginForm.vue
@@ -1,6 +1,7 @@
-
+
{{ title }}
-
+
diff --git a/auth/components/TheAuthSignupForm.vue b/auth/components/TheAuthSignupForm.vue
index bfad25b..b623e70 100644
--- a/auth/components/TheAuthSignupForm.vue
+++ b/auth/components/TheAuthSignupForm.vue
@@ -4,12 +4,13 @@ import { AuthRole } from "@prisma/client";
import type { FormSubmitEvent } from "#ui/types";
const { signup } = useAuth();
+const { t } = useI18n();
const state = ref
({ email: "", password: "", role: AuthRole.VERIFIED });
const roleOptions = [
- { value: AuthRole.VERIFIED, label: "Utilisateur" },
- { value: AuthRole.ADMINISTRATOR, label: "Administrateur" },
+ { value: AuthRole.VERIFIED, label: t("auth.role_verified") },
+ { value: AuthRole.ADMINISTRATOR, label: t("auth.role_administrator") },
];
const isSubmitting = ref(false);
@@ -17,7 +18,7 @@ const submitAttrs = computed(() => ({
block: true,
color: isSubmitting.value ? "gray" : "primary",
disabled: isSubmitting.value,
- label: isSubmitting.value ? "Inscription en cours..." : "Inscription",
+ label: isSubmitting.value ? t("auth.signing_up") : t("auth.signup"),
loading: isSubmitting.value,
type: "submit",
variant: "solid",
@@ -29,15 +30,15 @@ async function onSubmit(event: FormSubmitEvent) {
await signup(event.data);
state.value = { email: "", password: "", role: "VERIFIED" };
useToast().add({
- title: "Inscription réussie",
- description: `Le compte ${event.data.email} a été créé avec succès`,
+ title: t("success"),
+ description: t("auth.signup_success_description", { email: event.data.email }),
icon: "i-heroicons-check-circle",
color: "green",
});
} catch (error) {
useToast().add({
- title: "Échec de l'inscription",
- description: "Le courriel est déjà utilisé ou une erreur est survenue",
+ title: t("error"),
+ description: t("auth.signup_failed_description"),
icon: "i-heroicons-x-circle",
color: "red",
});
@@ -50,13 +51,13 @@ async function onSubmit(event: FormSubmitEvent) {