Packages

Automatic Gettext locale translator for Elixir/Phoenix projects.

Current section

Files

Jump to
getatrex lib getatrex message.ex
Raw

lib/getatrex/message.ex

defmodule Getatrex.Message do
@moduledoc """
Represents .PO file rows like this:
#: web/templates/private_page/dashboard.html.eex:53
#: web/templates/shop/edit.html.eex:7 web/templates/shop/show.html.eex:32
msgid "Edit"
msgstr ""
where comments (lines starts with `#:`) will go to `mentions`,
msgid and msgstr - to corresponding keys
"""
defstruct mentions: [], msgid: nil, msgstr: nil, to_lang: nil
@type t :: %__MODULE__{mentions: Enum.t, msgid: String.t, msgstr: String.t, to_lang: String.t}
end