Move function mkwsSetLang() to the end of the team object, where it's used.