Skip to content

Commit 38b4965

Browse files
feat: add translation for error page
1 parent f8249f5 commit 38b4965

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

error.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ definePageMeta({
3636
<div class="flex items-center justify-center min-h-screen">
3737
<div class="w-full max-w-full h-auto sm:w-1/2 lg:w-1/4 text-center">
3838
<img src="~/assets/static/error-logo-1.png" alt="Logo" />
39-
<p class="mt-4 text-3xl sm:text-4xl md:text-5xl font-bold">Ooops !</p>
39+
<p class="mt-4 text-3xl sm:text-4xl md:text-5xl font-bold">
40+
{{ $t("error.oops") }}
41+
</p>
4042
<p class="mt-4 text-xs sm:text-sm md:text-base">
4143
<span v-if="!error?.data" class="font-bold">{{
4244
error?.statusCode
@@ -45,7 +47,7 @@ definePageMeta({
4547
{{ error?.message }}
4648
</p>
4749
<Button variant="black" class="mt-12" @click="redirectToRoot()"
48-
>Retourner sur Iroco<sub class="text-xs">2</sub></Button
50+
>{{ $t("error.returnToIroco") }}<sub class="text-xs">2</sub></Button
4951
>
5052
</div>
5153
</div>

i18n/locales/en.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,5 +217,9 @@
217217
"token": {
218218
"yourConnectedAccounts": "Your connected accounts:",
219219
"createKey": "Create a key"
220+
},
221+
"error": {
222+
"oops": "Ooops!",
223+
"returnToIroco": "Return to Iroco"
220224
}
221225
}

i18n/locales/fr.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,5 +217,9 @@
217217
"token": {
218218
"yourConnectedAccounts": "Vos comptes connectés :",
219219
"createKey": "Créer une clé"
220+
},
221+
"error": {
222+
"oops": "Ooops !",
223+
"returnToIroco": "Retourner sur Iroco"
220224
}
221225
}

0 commit comments

Comments
 (0)