Added helper functions to get current language and language code and use the current language to look up localized text using the i18n module.