Add gender translations

This commit is contained in:
MartinBraquet
2026-03-12 01:15:02 +01:00
parent 0da158ce54
commit f90b2179b5
4 changed files with 13 additions and 7 deletions

View File

@@ -119,6 +119,7 @@
"common.notified": "Benachrichtigt werden",
"common.notified_any": "Über neue Profile benachrichtigt werden",
"common.or": "Oder",
"common.with": "mit",
"common.people": "Personen",
"common.per_month": "/ Monat",
"common.person": "Person",
@@ -714,6 +715,7 @@
"profile.gender.plural.female": "Frauen",
"profile.gender.plural.male": "Männer",
"profile.gender.plural.other": "Andere",
"profile.gender.plural.people": "Leute",
"profile.has_kids": "Hat Kinder",
"profile.has_kids.-1": "Egal",
"profile.has_kids.0": "Nein",
@@ -952,6 +954,7 @@
"profile.romantic.poly": "Polyamor",
"profile.romantic.style": "Stil",
"profile.save": "Speichern",
"profile.connection.default": "Verbindung",
"profile.seeking": "Sucht",
"profile.seo.description": "Ihr Profil",
"profile.seo.title": "Profil",

View File

@@ -119,6 +119,7 @@
"common.notified": "Recevoir notifs pour les filtres sélectionnés",
"common.notified_any": "Recevoir notifs pour tout nouveau profil",
"common.or": "Ou",
"common.with": "avec",
"common.people": "personnes",
"common.per_month": "/ mois",
"common.person": "personne",
@@ -642,7 +643,7 @@
"profile.age_between": "entre {min} et {max} ans",
"profile.age_exact": "exactement {min} ans",
"profile.age_older_than": "plus de {min} ans",
"profile.age_younger_than": "moins de {max} ans",
"profile.age_younger_than": "de moins de {max} ans",
"profile.at": "à",
"profile.basics.bio": "Biographie",
"profile.basics.display_name": "Nom d'affichage",
@@ -710,9 +711,10 @@
"profile.gender.female": "Femme",
"profile.gender.male": "Homme",
"profile.gender.other": "Autre",
"profile.gender.plural.female": "Femmes",
"profile.gender.plural.male": "Hommes",
"profile.gender.plural.other": "Autres",
"profile.gender.plural.female": "des femmes",
"profile.gender.plural.male": "des hommes",
"profile.gender.plural.other": "des autres",
"profile.gender.plural.people": "des personnes",
"profile.has_kids": "A des enfants",
"profile.has_kids.-1": "N'importe",
"profile.has_kids.0": "N'a pas d'enfants",
@@ -951,6 +953,7 @@
"profile.romantic.poly": "Polyamoureux·se",
"profile.romantic.style": "Style",
"profile.save": "Enregistrer",
"profile.connection.default": "une relation",
"profile.seeking": "Recherche",
"profile.seo.description": "Votre profil",
"profile.seo.title": "Profil",

View File

@@ -182,8 +182,8 @@ export function getSeekingText(profile: Profile, t: any, short?: boolean | undef
const max = profile.pref_age_max
const seekingGenderText = stringOrStringArrayToText({
text:
prefGender?.length == 0
? ['people']
prefGender?.length == 0 || (prefGender?.includes('male') && prefGender?.includes('female'))
? [t('profile.gender.plural.people', 'people')]
: prefGender?.map((gender) =>
t(
`profile.gender.plural.${gender}`,

View File

@@ -16,7 +16,7 @@ export function getSeekingConnectionText(profile: Profile, t: any, short?: boole
).toLowerCase(),
)
.sort()
: ['connection'],
: [t('profile.connection.default', 'connection')],
preText: !short ? t('profile.seeking', 'Seeking') : undefined,
asSentence: true,
capitalizeFirstLetterOption: false,