Languine supports XML file localization, suitable for various XML-based configuration and content files. This format handles complex XML structures while preserving formatting and attributes.
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": { "xml": { "include": ["resources/[locale]/*.xml"] } } }
With your config set, run:
npx languine@latest translate
When you run this command, Languine will: