Let's move these two lines for getting the current lang into the localized.js module, and add a method `getCurrentLang()` that does this.