Page MenuHomePhabricator

Add API method to enumerate territories and their languages in the language-data library
Closed, ResolvedPublic4 Estimated Story Points

Description

The language-data library currently provides getLanguagesInTerritory, but the API does not expose a way to retrieve the full list of supported territories. As a result, consumers cannot easily discover all territories and the languages associated with them.

We should add a method that returns territory-based language information, including a way to enumerate all available territories. This should be implemented in both the PHP and JavaScript APIs.

After this change is completed, we should publish a new release of the language-data library.

Relevant existing API: LanguageUtil::getLanguagesInTerritory

Acceptance criteria

QA plan

Event Timeline

abi_ triaged this task as Medium priority.
abi_ moved this task from Backlog to Ready for dev on the LPL Essential (FY2025-26 Q3&4) board.
abi_ set the point value for this task to 4.
Nikerabbit renamed this task from Add method to return territory based language information in langauge-data library to Add API method to enumerate territories and their languages in the language-data library.Wed, Apr 15, 7:01 AM
Nikerabbit updated the task description. (Show Details)

Change #1271835 had a related patch set uploaded (by Huei Tan; author: Huei Tan):

[mediawiki/vendor@master] Update language data library to 1.1.13

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

Change #1272444 had a related patch set uploaded (by Huei Tan; author: Huei Tan):

[mediawiki/core@master] Update the language-data composer library version

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

Change #1271835 merged by jenkins-bot:

[mediawiki/vendor@master] Update language data library to 1.1.13

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

Change #1272444 merged by jenkins-bot:

[mediawiki/core@master] Update the language-data composer library version

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

Nikerabbit updated the task description. (Show Details)
Nikerabbit moved this task from Need QA to Done on the LPL Essential (FY2025-26 Q3&4) board.