Refactored i18n class, removing the need to extend it.