kielet_gen/parser

Types

pub type EntryData {
  EntryData(key: EntryKey, locations: List(#(String, Int)))
}

Constructors

  • EntryData(key: EntryKey, locations: List(#(String, Int)))
pub type EntryKey {
  GettextEntry(msgid: String)
  NGettextEntry(msgid: String, msgid_plural: String)
  PGettextEntry(msgctxt: String, msgid: String)
  NPGettextEntry(
    msgctxt: String,
    msgid: String,
    msgid_plural: String,
  )
}

Constructors

  • GettextEntry(msgid: String)
  • NGettextEntry(msgid: String, msgid_plural: String)
  • PGettextEntry(msgctxt: String, msgid: String)
  • NPGettextEntry(
      msgctxt: String,
      msgid: String,
      msgid_plural: String,
    )

Values

pub fn parse_file(file: String) -> List(EntryData)
pub fn parse_files(to: String, files: List(String)) -> Nil
Search Document