Expo.Parser.Po (expo v0.1.0-beta.1)
.po
/ .pot
file parser
Link to this section Summary
Functions
Parse .po
file
Link to this section Functions
Link to this function
parse(content)
Parse .po
file
examples
Examples
iex> Expo.Parser.Po.parse("""
...> msgid "foo"
...> msgstr "bar"
...> """)
{:ok, %Expo.Translations{
headers: [],
translations: [
%Expo.Translation.Singular{
comments: [],
msgctxt: nil,
extracted_comments: [],
flags: [],
msgid: ["foo"],
msgstr: ["bar"],
previous_msgids: [],
references: [],
obsolete: false
}
]
}}