Refactor: migrated i18next plugin to classes