A Cli tool for next-translate package to automatically generate locale JSON and update Next components.
npx next-translate-automator --components-dir /path/to/components/directory/ --locales-dir /path/to/store/output/json --app-name app_name --exclude-patterns ".spec.,.test."