[07:52:00] Hi! The Wikimedia Foundation Research team is committed to serving Wikimedia volunteer developers by fostering collaborations with the Wikimedia research community. If you identify yourself as a Wikimedia volunteer developer, please participate in this brief survey :) https://wikimediafoundation.limesurvey.net/developers-research-needs [10:03:20] а gооdbyе кїss [11:12:07] FYI, i made some updates to https://zonestamp.toolforge.org [11:12:07] Let me know if you encounter problems. [11:12:09] [11:12:10] Thx to @gtisza for adding a calendar button. [11:12:12] Ill likely add some UI real soon™️ to add calendar parameters to stamps. [13:16:58] How to get i18n files loaded correctly with js inside an extension? [13:27:02] https://www.mediawiki.org/wiki/Localisation [13:58:40] Of your own code, or of 3rd party code ? (re @cvictorovich: How to get i18n files loaded correctly with js inside an extension?) [13:59:08] See my Gerrit [14:00:10] https://gerrit.wikimedia.org/r/q/project:mediawiki%252Fextensions%252FHotCat [14:02:23] https://www.mediawiki.org/wiki/Manual:Messages_API#Using_messages_in_JavaScript [14:02:46] You declare the messagekeys that you need for a module [14:06:06] You also have to declare the directory as a MessageDirs in extension.json [14:32:04] Should I restructure the current js? [14:33:15] How? [14:45:05] is there a reason why the individual message keys have to be specified, rather than being able to say "use all keys from this message directory"? (re @djhartman: You declare the messagekeys that you need for a module in extension.json) [14:46:42] I’d like to use all keys from the directory (re @Nikki: is there a reason why the individual message keys have to be specified, rather than being able to say "use all keys from this me...) [15:28:25] Because that hardly is ever the case. Most scripts only use a fraction and the majority of keys are only used by php. (re @Nikki: is there a reason why the individual message keys have to be specified, rather than being able to say "use all keys from this me...) [15:31:48] I included this key in extension.json (re @djhartman: You also have to declare the directory as a MessageDirs in extension.json) [15:32:36] In mediawiki, almost everything has declarative dependencies on resources. That’s because checking for 800 wikis with 400 possible extensions on every single pageview to ‘figure out if we should use something’ is more expensive than the request itself. [15:33:14] It’s extremely clunky [15:36:29] complicated things often get clunky [15:36:34] What I have written is in the repo [15:38:39] At the time of speaking, seems only the script itself is correctly loaded [16:22:36] Your script is not using mw.message. Its doing its own thing, so it cant see ur translations [16:36:55] Seems so [16:37:33] Then I have to replace them and remove original code blocks defining messages