Languine supports JSON files as a source format with the common requirements for pluralization and interpolation. This format is used in many frameworks like React, Vue, Ruby on Rails, and more.
First, make sure you've got a languine.json config file in your project root. Here's an example:
{ "locale": { "source": "en", "targets": ["sv", "de", "fr"] }, "files": { "json": { "include": ["locales/[locale].json"] } } }
With your config set, run:
npx languine@latest translate
When you run this command, Languine will: