mix ash.gettext.extract (ash v3.24.3)

Copy Markdown View Source

Extracts translatable error messages from Ash source files and generates a .pot (Portable Object Template) file.

Scans for error_message("...") macro calls, recording each call site with its file path and line number as standard gettext source references.

Usage

$ mix ash.gettext.extract

Options

  • --output / -o — Path to write the .pot file. Defaults to priv/gettext/ash.pot.

  • --domain / -d — Gettext domain written into the file header. Defaults to "ash".

Workflow

This task is for Ash development. It regenerates priv/gettext/ash.pot which is shipped with the hex package.

Users of Ash should run mix ash.gen.gettext to copy the .pot file into their application.