using i18n to get locale instead of getRootLanguage private method.