From 481c96bec259ad5a3480e919d78792f4b138bad5 Mon Sep 17 00:00:00 2001 From: Wawilski Date: Fri, 8 Mar 2024 20:22:00 +0100 Subject: [PATCH] i18n added but not usable --- frontend/public/i18n/EN.txt | 15 ++++++++++++++- frontend/public/i18n/FR.txt | 14 +++++++++++++- frontend/src/App.vue | 26 +++++++++++++++----------- frontend/src/Login.vue | 4 ++-- frontend/src/Request.vue | 7 ++++--- 5 files changed, 48 insertions(+), 18 deletions(-) diff --git a/frontend/public/i18n/EN.txt b/frontend/public/i18n/EN.txt index ab7f59d..bc4eb40 100644 --- a/frontend/public/i18n/EN.txt +++ b/frontend/public/i18n/EN.txt @@ -13,5 +13,18 @@ login.guest.password=PASSWORD login.guest.nextpage=Next Page login.guest.lastpage=Last Page login.guest.submit=Submit - +login.guest.birthday=BIRTHDAY +login.guest.confirm=CONFIRM +app.home=Home +app.login=Login +app.notifications=Notifications +app.settings=Settings +app.messages=Messages +app.forum=Forum +app.schedules=Schedules +app.inscription.requests=Inscription Requests +request.moreInfos=More Infos +request.accept=Accept +request.refuse=Refuse #===================================================== + diff --git a/frontend/public/i18n/FR.txt b/frontend/public/i18n/FR.txt index b21259b..42ab8bf 100644 --- a/frontend/public/i18n/FR.txt +++ b/frontend/public/i18n/FR.txt @@ -13,5 +13,17 @@ login.guest.password= MOT DE PASSE login.guest.nextpage=Prochaine Page login.guest.lastpage=Derniere Page login.guest.submit=Envoyer - +login.guest.birthday=DATE DE NAISSANCE +login.guest.confirm=CONFIRMER +app.home=Home +app.login=Se connecter +app.notifications=Notifications +app.settings=Options +app.messages=Messages +app.forum=Forum +app.schedules=Horaires +app.inscription.requests=Demandes d'Inscription +request.moreInfos=Plus d'Infos +request.accept=Accepter +request.refuse=Refuser #===================================================== diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 9241d68..7dcf25e 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -14,7 +14,11 @@ toast(test.value['txt']); } - + const home=ref(i18n("app.home")) + const notifications=ref(i18n("app.notifications")) + const settings=ref(i18n("app.settings")) + const login=ref(i18n("app.login")) + @@ -24,23 +28,23 @@
diff --git a/frontend/src/Login.vue b/frontend/src/Login.vue index 163c731..8f78264 100644 --- a/frontend/src/Login.vue +++ b/frontend/src/Login.vue @@ -73,7 +73,7 @@
-

BIRTHDAY

+

{{i18n("login.guest.birthday")}}

@@ -81,7 +81,7 @@
-

CONFIRM {{i18n("login.guest.password")}}

+

{{i18n("login.guest.confirm")}} {{i18n("login.guest.password")}}

diff --git a/frontend/src/Request.vue b/frontend/src/Request.vue index f3b1bd1..8feec18 100644 --- a/frontend/src/Request.vue +++ b/frontend/src/Request.vue @@ -1,4 +1,5 @@