1

When i call json file from i18n.js. get error msg .Please someone can answer me what i wrong. Thank you

My folder structure of json file

i18n.js

''' import transitionEn from "../public/locales/translation/en-us.json";

import transitionJa from "../public/locales/translation/ja-jp.json"; '''

enter image description here

Momo
  • 81
  • 10
  • Does this answer your question? [The create-react-app imports restriction outside of src directory](https://stackoverflow.com/questions/44114436/the-create-react-app-imports-restriction-outside-of-src-directory) – felixmosh Apr 22 '21 at 07:34
  • place your translation files in public folder only if you’ll fetch them at runtime with i18next-http-backend: https://dev.to/adrai/how-to-properly-internationalize-a-react-application-using-i18next-3hdb – adrai Apr 22 '21 at 13:02

0 Answers0