babel-plugin-i18next-extract icon indicating copy to clipboard operation
babel-plugin-i18next-extract copied to clipboard

Tips on listening for new files?

Open RWOverdijk opened this issue 6 months ago • 1 comments
trafficstars

I want to generate an index.ts file for every locale/namespaces dir. Example:

export { default as auth } from './auth.json';
export { default as translation } from './translation.json';

I am unsure what the best place to do this would be. Is this already possible? If not, any tips on where to put this behavior?

RWOverdijk avatar Apr 27 '25 15:04 RWOverdijk

I've made my own babel plugin that runs alongside this one to write the file, but it is pretty heavy because it's not well suited as a plugin.

RWOverdijk avatar May 24 '25 07:05 RWOverdijk