Thread:Support/What is MediaWiki:Gadget-translatetab.js used for?

I've tried to fix this gadget to not use legacy globals, but I don't understand what this gadget does or why it is needed.