Page MenuHomePhabricator

When user switch UI language, refetch and refresh wikidata-sourced labels
Closed, ResolvedPublic

Description

When selecting place of residence, or gender, or other the input field should :

  • store the qid value
  • display the label *in the user's local language*.

-> Replace hard coded ('en') by selected UI language's iso2 value.

Places
  • Ideally, place search and display should reflect the user's selected UI language, such as :
  • fr:Pékin
  • en: Beijing
  • zh: 北京市
  • ...

This using Wikidata API > search module, as per v2.

Genders

Gender and phonology is a complex and debated property, we are assessing how to handle it in v3.
Technically, this can be provided by the translations files, as per v2.

We can for now report wikidata as using the following genders :

  • male (Q6581097)
  • female (Q6581072)
  • intersex (Q1097630)
  • trans women (Q1052281)
  • trans male (Q2449503)
  • non-binary (Q48270)
  • other (other : better to avoid providing this field ?)

Event Timeline

Yug updated the task description. (Show Details)
Yug updated the task description. (Show Details)
Yug triaged this task as Medium priority.
Yug renamed this task from Ensure field select item display user's language's label to Ensure select element's item display its label in the user-chosen UI language.Jul 13 2025, 9:52 AM
Yug updated the task description. (Show Details)
Yug updated the task description. (Show Details)
Yug renamed this task from Ensure select element's item display its label in the user-chosen UI language to When user switch UI language, refetch and refresh wikidata-sourced labels.Sep 28 2025, 10:43 AM

✅ Resolved : fetch the translations properly, but update needed a page rerendering itself solved in T406758. 🎉