Moved I18n logic into a separate class.