Lucas_Werkmeister_WMDE created this task. Lucas_Werkmeister_WMDE added projects: Wikidata Lexicographical data, Wikidata, Special:NewLexeme revival (Special:NewLexeme revival - sprint 6).
TASK DESCRIPTION Currently, we have a list of `WikibaseLexemeTermLanguages` (array of language codes) in the synthetic `special/settings.json` file of the `wikibase.lexeme.special.NewLexemeAlpha` module. We want to replace that with a mapping (object) from language code to language name (in the interface language); that could also be in `settings.json`, or in a separate file. (However, we should avoid putting it into a separate module, as each separate module increases the size of the startup module loaded with every request.) Since module contents are evaluated each time the startup module is loaded (to calculate the module hashes), and loading language names can be expensive, we should cache this information a bit – `SitesModule` in Wikibase does a similar thing. (An alternative approach would be to extend `ResourceLoaderModule` and extend `getDefinitionSummary()` to not include the language code contents, but I think it’s better to cache the contents like `SitesModule` does.) Once the mapping is available in ResourceLoader, make `SpecialNewLexemeAlpha.js` pass it into `init()`. TASK DETAIL https://phabricator.wikimedia.org/T306512 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Lucas_Werkmeister_WMDE Cc: Aklapper, karapayneWMDE, Lydia_Pintscher, Erdinc_Ciftci_WMDE, ItamarWMDE, Michael, Lucas_Werkmeister_WMDE, 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 -- [email protected] To unsubscribe send an email to [email protected]
