[00:04:33] does anyone know how to use uls in on-wiki scripts? I found https://www.mediawiki.org/wiki/Universal_Language_Selector/Technical_Design#Core_component:_$.fn.uls but running that code says `$.uls is not a function`. I assume I need to load something first, but I can't find anything that says *what* I need to load [00:12:06] Did you load jquery first? [00:19:24] Actually `$.uls` works fine for me (https://zh.wikipedia.beta.wmflabs.org/wiki/User:WhitePhosphorus/js/test.js) [00:20:10] probably the `jquery.uls` resourceloader module [00:22:55] Actually you need to use either `$.fn.uls`, or `$( '#some-element' ).uls` [00:29:37] ah, `mw.loader.using("jquery.uls")` helps, but it's not enough, it's still missing interface messages (e.g. the placeholder text is "uls-search-placeholder") [00:30:58] and yeah, I copied the wrong error message 😅 it should've been `$(...).uls is not a function` [00:31:14] Well messages are probably another RL module... [00:31:41] sure, but I'm not a mind reader and don't know which one [00:35:18] mw.message? mw.jqueryMsg? Just guessing on my part [00:38:33] those aren't modules it recognises :/ I've also tried jquery.uls.core, jquery.uls.*, jquery.uls.data, ext.uls, ext.uls.* and none of those seem to be right either >_< [00:48:40] look at the module definitions at https://gerrit.wikimedia.org/g/mediawiki/extensions/UniversalLanguageSelector/+/master/extension.json [00:49:06] though I don’t see an `uls-search-placeholder` message in any of those, hm [00:51:26] probably `ext.uls.messages`? (which pulls in `ext.uls.i18n` as a dependency) [00:56:24] yes! that worked. thank you :D (re @lucaswerkmeister: probably ext.uls.messages? (which pulls in ext.uls.i18n as a dependency))