mix verified_translations.import_po (verified_translations v0.1.1)

Copy Markdown View Source

Imports translated messages from Gettext PO files into priv/translations/<domain>/*.json.

mix verified_translations.import_po [PRIV_GETTEXT_DIR] [--domain default]

Only messages with at least one translation in a configured locale are imported, from the given domains (default: default; repeat --domain). Existing JSON files are kept and only their empty locales are filled; an unreadable existing file aborts the import. Fuzzy, plural and msgctxt messages are skipped. Requires :expo (a dependency of Gettext).