Languine supports PO files, the widely-used Gettext localization format. This format is popular in many programming environments, particularly in Linux applications and PHP frameworks, offering support for context, plurals, and translator comments.
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": { "po": { "include": ["locales/[locale]/LC_MESSAGES/messages.po"] } } }
With your config set, run:
npx languine@latest translate
When you run this command, Languine will: