Thread:Project:Support desk/i18n translations in Javascript?/reply

Resource Loader supports doing translations in javascript. (I don't really know how it works though, I think you need to register which messages a module uses, and then do something with mw.msg function. (I suppose the namespace name is not really a message. but you could have a fake one containing just. I imagine there's probably a better way to get the localized namespace name

In your specific case you could also look through the things in $wgNamespaceIds and see what has a value of 6 and looks the least canonical or even do an api query, or you can add things to manual:hooks/ResourceLoaderGetConfigVars...