From da0b43c348cba25fcab7aac7cc4ea057cc8bf5c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Le=20Bihan?= Date: Tue, 11 Apr 2023 22:45:55 +0200 Subject: [PATCH] added missing translation for the profile setting page --- front/i18n/Translations.ts | 26 ++++++++++++++++++++ front/views/settings/SettingsProfileView.tsx | 16 ++++++------ 2 files changed, 34 insertions(+), 8 deletions(-) diff --git a/front/i18n/Translations.ts b/front/i18n/Translations.ts index bdf85f0..959481b 100644 --- a/front/i18n/Translations.ts +++ b/front/i18n/Translations.ts @@ -138,6 +138,15 @@ export const en = { SettingsPreferencesMicVolume: 'Mic volume', SettingsPreferencesDevice: 'Device', + NoAssociatedEmail: 'No associated email', + nbGamesPlayed: 'Games played', + XPDescription: 'XP is a measure of your progress. You earn XP by playing songs and completing challenges.', + userCreatedAt: 'Creation date', + premiumAccount: "Premium account", + yes: 'Yes', + no: 'No', + + }; export const fr: typeof en = { @@ -276,6 +285,14 @@ export const fr: typeof en = { recommendations: 'Recommandations', customAds: 'Publicités personnalisées', + NoAssociatedEmail: 'Aucun email associé', + nbGamesPlayed: 'Parties jouées', + XPDescription: 'L\'XP est gagnée en jouant des chansons. Plus vous jouez, plus vous gagnez d\'XP. Plus vous avez d\'XP, plus vous montez de niveau.', + userCreatedAt: 'Compte créé le', + premiumAccount: 'Compte premium', + yes: 'Oui', + no: 'Non', + }; export const sp: typeof en = { @@ -398,6 +415,7 @@ export const sp: typeof en = { SettingsCategorySecurity: 'Seguridad', SettingsCategoryEmail: 'Email', SettingsCategoryGoogle: 'Google', + SettingsCategoryPiano: 'Piano', transformGuestToUserExplanations: 'Actualmente estás conectado como invitado. Puedes crear una cuenta para guardar tus datos y disfrutar de todas las funciones de Chromacase.', SettingsCategoryGuest: 'Invitado', @@ -416,4 +434,12 @@ export const sp: typeof en = { dataCollection: 'Recopilación de datos', recommendations: 'Recomendaciones', customAds: 'Anuncios personalizados', + + NoAssociatedEmail: 'No hay correo electrónico asociado', + nbGamesPlayed: 'Partidos jugados', + XPDescription: 'XP se gana jugando canciones. Cuanto más juegas, más XP ganas. Cuanto más XP tienes, más subes de nivel.', + userCreatedAt: 'Cuenta creada el', + premiumAccount: 'Cuenta premium', + yes: 'Sí', + no: 'No', }; \ No newline at end of file diff --git a/front/views/settings/SettingsProfileView.tsx b/front/views/settings/SettingsProfileView.tsx index 9e73a6a..7f5b298 100644 --- a/front/views/settings/SettingsProfileView.tsx +++ b/front/views/settings/SettingsProfileView.tsx @@ -82,9 +82,9 @@ const ProfileSettings = ({ navigation }: { navigation: any }) => { elements={[ { type: "text", - title: "Email", + title: translate("email"), data: { - text: user.email || "Aucun email associé", + text: user.email || translate("NoAssociatedEmail"), onPress: () => { navigation.navigate("ChangeEmail"); }, @@ -102,7 +102,7 @@ const ProfileSettings = ({ navigation }: { navigation: any }) => { elements={[ { type: "text", - title: "Username", + title: translate("username"), data: { text: user.name, }, @@ -117,7 +117,7 @@ const ProfileSettings = ({ navigation }: { navigation: any }) => { }, { type: "text", - title: "Party played", + title: translate("nbGamesPlayed"), data: { text: user.data.partyPlayed, }, @@ -126,14 +126,14 @@ const ProfileSettings = ({ navigation }: { navigation: any }) => { type: "text", title: "XP", description: - "XP is the experience points you get by playing games", + translate("XPDescription"), data: { text: user.data.xp, }, }, { type: "text", - title: "Date de création", + title: translate("userCreatedAt"), helperText: "La date de création est actuellement arbitraire car le serveur ne retourne pas cette information", data: { @@ -142,9 +142,9 @@ const ProfileSettings = ({ navigation }: { navigation: any }) => { }, { type: "text", - title: "Compte Premium", + title: translate("premiumAccount"), data: { - text: user.premium ? "Oui" : "Non", + text: translate(user.premium ? "yes" : "no"), }, } ]}