Languine supports YAML files as a source format, which is commonly used in Ruby on Rails, Laravel, and other frameworks. This format supports nested structures, arrays, and complex data types.
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": { "yaml": { "include": ["config/locales/[locale].yml"] } } }
With your config set, run:
npx languine@latest translate
When you run this command, Languine will: