Prettier
NeoIQ Localize can work together with Prettier to ensure your translation files are consistently formatted. This is particularly useful when working with JSON translation files that need to maintain a consistent style across your project.
Using with NeoIQ Localize
The recommended way to use Prettier with NeoIQ Localize is to format your translation files after they're generated. You can set this up in your package.json:
Now you can:
- Run
npm run translateto only generate translations - Run
npm run formatto only format existing translation files - Run
npm run translate:formatto generate translations and format them in sequence
How is this guide?
Edit on GitHub
Last updated on