Minor refactor on i18next plugin