Page MenuHomePhabricator

LanguageSelector: Add LanguageSelector component to Codex
Open, MediumPublic

Description

To replace the current Universal Language Selector with a modern, responsive, Vue based language selector, @Pginer-WMF came up with a new design - T253303: Basic support for a responsive language selector.

The section translation feature of Content translation will be implementing it soon, but we were thinking how to build it in a way so that it is reusable elsewhere. Due to the early stage status of Vue adoption and variety of Vue setups(build, non build, wvui based etc), this is slightly complicated.

The best solution we can propose is a renderless vue component. I did a proof of concept.

A brief introduction to Renderless component: https://adamwathan.me/renderless-components-in-vuejs/

A consumer of the library is free to write the UI - whether it is a dialog or embedded in page, or simply a dropdown or have additional button using a convinient UI framework - all flexibility is there.

I propose publishing this as a standalone Vue component and WVUI, CX3, or any projects depend and build UI as per their need, but follow @Pginer-WMF's design.

Event Timeline

Volker_E added a project: Vue.js.

Change 875287 had a related patch set uploaded (by Michael Große; author: Michael Große):

[wikidata/query-builder@master] PoC: Language switcher based on T266231

https://gerrit.wikimedia.org/r/875287

Change 875287 abandoned by Michael Große:

[wikidata/query-builder@master] PoC: Language switcher based on T266231

Reason:

This is now being done properly in T328764

https://gerrit.wikimedia.org/r/875287

bmartinezcalvo renamed this task from Create and publish a renderless language selector component to LenguageSelector: Add LenguageSelector component to Codex.Mar 4 2025, 6:49 PM
bmartinezcalvo removed a subscriber: • Niedzielski.
Quiddity renamed this task from LenguageSelector: Add LenguageSelector component to Codex to LanguageSelector: Add LanguageSelector component to Codex.Apr 1 2025, 6:14 PM
Nikerabbit triaged this task as Medium priority.May 22 2025, 3:15 PM
Nikerabbit edited projects, added: ContentTranslation; removed: SectionTranslation.
Nikerabbit moved this task from Needs Triage to Maintenance on the ContentTranslation board.