add logic to replace i18njs
remove uses of i18njs