Languine supports HTML file localization, handling both text content and attributes. This format is ideal for static websites and HTML templates, with support for preserving HTML structure and formatting.
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": { "html": { "include": ["pages/[locale]/*.html"] } } }
With your config set, run:
npx languine@latest translate
When you run this command, Languine will: