From a20ac581d955168936524cafc540b961c1710025 Mon Sep 17 00:00:00 2001 From: iyanfdezz Date: Mon, 29 Apr 2024 19:54:02 +0200 Subject: [PATCH] =?UTF-8?q?A=C3=B1adida=20internacionalizaci=C3=B3n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webapp/src/locales/en.json | 7 ++++--- webapp/src/locales/es.json | 3 ++- webapp/src/pages/Ranking/Ranking.js | 6 +++--- webapp/src/pages/Social/FriendsList.js | 2 +- webapp/src/pages/Stats/Stats.js | 12 ++++++------ 5 files changed, 16 insertions(+), 14 deletions(-) diff --git a/webapp/src/locales/en.json b/webapp/src/locales/en.json index c178eace..cc7c343d 100644 --- a/webapp/src/locales/en.json +++ b/webapp/src/locales/en.json @@ -1,8 +1,8 @@ { "components": { "custommodal": { - "play": "Jugar", - "close": "Cerrar" + "play": "Play", + "close": "Close" }, "footer": { "copyright": "Copyright 2024 ® Software Architecture Group 1A" @@ -212,7 +212,8 @@ "list": "Friend List", "profile": "View Profile", "delete": "Delete Friend", - "noFriends": "You currently have no friends." + "noFriends": "You currently have no friends.", + "back":"Back" }, "groupdetails": { "details": "Group details", diff --git a/webapp/src/locales/es.json b/webapp/src/locales/es.json index 26312029..8603aec9 100644 --- a/webapp/src/locales/es.json +++ b/webapp/src/locales/es.json @@ -212,7 +212,8 @@ "list": "Lista de amigos", "profile": "Ver perfil", "delete": "Eliminar amigo", - "noFriends": "No tienes amigos actualmente." + "noFriends": "No tienes amigos actualmente.", + "back":"Volver" }, "groupdetails": { "details":"Detalles del grupo", diff --git a/webapp/src/pages/Ranking/Ranking.js b/webapp/src/pages/Ranking/Ranking.js index d8efc643..0309ba0f 100644 --- a/webapp/src/pages/Ranking/Ranking.js +++ b/webapp/src/pages/Ranking/Ranking.js @@ -38,11 +38,11 @@ const Ranking = () => { const getModeName = () => { if(gamemode === "clasico"){ - return "Clásico"; + return t('pages.ranking.classic'); } else if(gamemode === "bateria"){ - return "Batería de sabios"; + return t('pages.ranking.wisebattery'); } else if(gamemode === "calculadora"){ - return "Calculadora humana"; + return t('pages.ranking.humancalculator'); } return gamemode; }; diff --git a/webapp/src/pages/Social/FriendsList.js b/webapp/src/pages/Social/FriendsList.js index bef4b94d..b62af64b 100644 --- a/webapp/src/pages/Social/FriendsList.js +++ b/webapp/src/pages/Social/FriendsList.js @@ -89,7 +89,7 @@ const FriendList = () => { {friend ? ( <> - + ) : ( diff --git a/webapp/src/pages/Stats/Stats.js b/webapp/src/pages/Stats/Stats.js index c2fe44f3..859ca20c 100644 --- a/webapp/src/pages/Stats/Stats.js +++ b/webapp/src/pages/Stats/Stats.js @@ -66,12 +66,12 @@ const Stats = () => { }; const getModeName = () => { - if (gamemode === "clasico") { - return "Clásico"; - } else if (gamemode === "bateria") { - return "Batería de sabios"; - } else if (gamemode === "calculadora") { - return "Calculadora humana"; + if(gamemode === "clasico"){ + return t('pages.ranking.classic'); + } else if(gamemode === "bateria"){ + return t('pages.ranking.wisebattery'); + } else if(gamemode === "calculadora"){ + return t('pages.ranking.humancalculator'); } return gamemode; };