Skip to content Skip to sidebar Skip to footer

Reactjs - Error Loading Translation Files

I've been trying to start a new react project to practice some skills. And recently I tried to add internationalization and localization, by adding react-i18next and i18next. Simpl

Solution 1:

So I think that o discovered a solution

All I did was add the copy-webpack-plugin and put the following code to my webpack file

const common = {
  ...
  plugins: [
    ...
    new CopyPlugin([
      { from: "./src/locales", to: "locales" },
    ]),
  ]
}

Post a Comment for "Reactjs - Error Loading Translation Files"