Languine supports Android string resources (strings.xml) as a source format, handling plurals, string arrays, and formatted strings. This format is the standard way to manage translations in Android applications.
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": { "android": { "include": ["app/src/main/res/values-[locale]/strings.xml"] } } }
With your config set, run:
npx languine@latest translate
When you run this command, Languine will: