babel-plugin-i18next-extract: Support config for don't use cache

Here is my config

{
        keyAsDefaultValue: true,
        keyAsDefaultValueForDerivedKeys: false,
}

The problem is when I edit the translation file, after that, I add a new key in component, It will write to the translation file the old content with new key, the content I have edited is lost in the wild. So, I need a config for disable cache in this line https://github.com/gilbsgilbs/babel-plugin-i18next-extract/blob/55894cab44bbb3d199167b70c1525bc28621093c/src/exporters/index.ts#L122

Thank you 🙏

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 3
  • Comments: 20 (6 by maintainers)

Most upvoted comments

I have the same trouble. I’m using webpack and babel-loader, and this happens while watching with webpack -w. I hope that this problem is resolved.

I’m using i18next-parser instead now, and I just run it via an npm script whenever I need to, beats having to restart the dev server every time I change a string… 😅 This is my i18next-parser.config.js in case anyone is interested.

I just defined separate npm task and babel config just to run that plugin. When I need update translations I run it manually without watcher.