嗨,我在我的i18next项目中使用了react翻译。我需要从后端加载json数据。我找到了这个https://github.com/i18next/i18next-xhr-backend。但是当我称它为控制台时,告诉我i18next::translator: missingKey en translation Sign in Sign in,但在调试时,我得到了正确的响应。我只是将i18next导入到index
我在一个多语言网站上工作,与nextjs的SSR和i18next的多语言机制。由于使用了next SSR,我不能使用i18next-xhr-backend,我应该使用i18next-node-fs-backend,但在本例中,我为fs找出了这个错误:
Module not foundresolve 'fs' in '/Users/macbook/Desktop/project/node_modules/i18next