Page MenuHomePhabricator

Need an internal version of `convertNumber` to produce numbers in the content language
Closed, ResolvedPublic

Description

Create a utility function in the Cite codebase which can convert an integer to the content language script. We want to clone https://doc.wikimedia.org/mediawiki-core/master/js/mw.language.html#.convertNumber but with some major differences:

  • Use wgContentLang and not the user language.
  • Don't include separators. Don't support anything after the decimal place.
  • Only one direction, number to string.

Event Timeline

Change #1052951 had a related patch set uploaded (by Awight; author: Awight):

[mediawiki/extensions/Cite@master] Format footnote markers in the content language

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

awight moved this task from Doing to Tech Review on the WMDE-TechWish-Sprint-2024-06-26 board.

Change #1052951 merged by jenkins-bot:

[mediawiki/extensions/Cite@master] Make content language data available to VE

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