ItamarWMDE added a comment.
**Task Breakdown Notes** - We know that there is a mapping between language codes and language names. This mapping happens through the `WikibaseLexemeLanguageNameLookup` service. - For a NoJS implementation this list can remain a regular dropdown (@Erdinc_Ciftci_WMDE can you confirm?) - For the JS implementation, we will pass the language code mappings in through the `init` function via a specialized RL module constructing a JSON output of language code to language name, instead of the array of language codes. - This approach does require us to send the list twice and might have performance impact. However, we will profile the page load once we have launched the new special page and determine the best optimization at a later date [Tech debt task TBD]. - We will enable server side caching for the RL module definition, in order to speed up the response time and prevent the list from being constructed on each request. Example: SitesModule.php <https://github.com/wikimedia/Wikibase/blob/d91f501281d7614b5f84f0e14c2c2c130233d71f/lib/includes/Modules/SitesModule.php#L80-L86>. - "Matching looks at each word in the list, i.e. Tunisian Arabic would display if arabic entered" → This refers only to substring from the beginning of each word. i.e. looking for "rab" will not produce "Tunisian Arabic". **Possible Plan of Action**: 1. Make language code to name mapping available as an RL module. TASK DETAIL https://phabricator.wikimedia.org/T305436 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: ItamarWMDE Cc: ItamarWMDE, Erdinc_Ciftci_WMDE, Lydia_Pintscher, karapayneWMDE, Aklapper, Astuthiodit_1, Invadibot, maantietaja, Akuckartz, Nandana, Lahi, Gq86, GoranSMilovanovic, Mahir256, QZanden, LawExplorer, _jensen, rosalieper, Bodhisattwa, Scott_WUaS, Wikidata-bugs, aude, Mbch331
_______________________________________________ Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org