babel-plugin-i18next-extract
babel-plugin-i18next-extract copied to clipboard
Tips on listening for new files?
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?
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.