GettextCheck

hex.pm badge Documentation badge CI badge

GettextCheck is a tool to check for missing translations in GNU gettext po and pot files.

Designed to work with the elixir gettext package, your files must be saved in the gettext directory structure e.g. priv/gettext/LOCALE/LC_MESSAGES/DOMAIN.po.

Read the documentation for the GettextCheck module for more information on backend functions.

Usage

mix gettext_check [OPTIONS]

Options

Configuration

You need to specify the locale but the priv directory is optional (default to priv/gettext).

GettextCheck can be configured in two ways:

1. Command line options

mix gettext_check --locale ja --priv priv/gettext

2. Mix config

config :gettext_check,
locale: "ja",
priv: "priv/gettext"

Contributing

  1. Fork it!
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request