mix gettext.export_csv (gamend_web v1.0.1216)

Copy Markdown View Source

Exports every translation for a locale to one CSV, for review in a spreadsheet.

Usage

mix gettext.export_csv LOCALE [--output FILE]

Examples

mix gettext.export_csv es
mix gettext.export_csv es --output translations/es.csv

The CSV has columns: domain, msgid, source, translation, fuzzy.

  • source is empty — the msgid is the English source text.
  • translation is the msgstr; an empty cell is untranslated work.
  • fuzzy is "yes" when the entry needs re-checking after a source change.

Both gettext trees are exported: the host's (priv/gettext, which holds the theme and content domains) and the library's (apps/gamend_web/priv/gettext). A (domain, msgid) present in both is one row, and mix gettext.import_csv writes it back to both — the same English string gets the same translation wherever it renders.