added missing translation for the profile setting page

This commit is contained in:
Clément Le Bihan
2023-04-11 22:45:55 +02:00
parent 1c76266444
commit da0b43c348
2 changed files with 34 additions and 8 deletions
+26
View File
@@ -138,6 +138,15 @@ export const en = {
SettingsPreferencesMicVolume: 'Mic volume', SettingsPreferencesMicVolume: 'Mic volume',
SettingsPreferencesDevice: 'Device', 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 = { export const fr: typeof en = {
@@ -276,6 +285,14 @@ export const fr: typeof en = {
recommendations: 'Recommandations', recommendations: 'Recommandations',
customAds: 'Publicités personnalisées', 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 = { export const sp: typeof en = {
@@ -398,6 +415,7 @@ export const sp: typeof en = {
SettingsCategorySecurity: 'Seguridad', SettingsCategorySecurity: 'Seguridad',
SettingsCategoryEmail: 'Email', SettingsCategoryEmail: 'Email',
SettingsCategoryGoogle: 'Google', 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.', 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', SettingsCategoryGuest: 'Invitado',
@@ -416,4 +434,12 @@ export const sp: typeof en = {
dataCollection: 'Recopilación de datos', dataCollection: 'Recopilación de datos',
recommendations: 'Recomendaciones', recommendations: 'Recomendaciones',
customAds: 'Anuncios personalizados', 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',
}; };
+8 -8
View File
@@ -82,9 +82,9 @@ const ProfileSettings = ({ navigation }: { navigation: any }) => {
elements={[ elements={[
{ {
type: "text", type: "text",
title: "Email", title: translate("email"),
data: { data: {
text: user.email || "Aucun email associé", text: user.email || translate("NoAssociatedEmail"),
onPress: () => { onPress: () => {
navigation.navigate("ChangeEmail"); navigation.navigate("ChangeEmail");
}, },
@@ -102,7 +102,7 @@ const ProfileSettings = ({ navigation }: { navigation: any }) => {
elements={[ elements={[
{ {
type: "text", type: "text",
title: "Username", title: translate("username"),
data: { data: {
text: user.name, text: user.name,
}, },
@@ -117,7 +117,7 @@ const ProfileSettings = ({ navigation }: { navigation: any }) => {
}, },
{ {
type: "text", type: "text",
title: "Party played", title: translate("nbGamesPlayed"),
data: { data: {
text: user.data.partyPlayed, text: user.data.partyPlayed,
}, },
@@ -126,14 +126,14 @@ const ProfileSettings = ({ navigation }: { navigation: any }) => {
type: "text", type: "text",
title: "XP", title: "XP",
description: description:
"XP is the experience points you get by playing games", translate("XPDescription"),
data: { data: {
text: user.data.xp, text: user.data.xp,
}, },
}, },
{ {
type: "text", type: "text",
title: "Date de création", title: translate("userCreatedAt"),
helperText: helperText:
"La date de création est actuellement arbitraire car le serveur ne retourne pas cette information", "La date de création est actuellement arbitraire car le serveur ne retourne pas cette information",
data: { data: {
@@ -142,9 +142,9 @@ const ProfileSettings = ({ navigation }: { navigation: any }) => {
}, },
{ {
type: "text", type: "text",
title: "Compte Premium", title: translate("premiumAccount"),
data: { data: {
text: user.premium ? "Oui" : "Non", text: translate(user.premium ? "yes" : "no"),
}, },
} }
]} ]}