aham

Types

pub type Aham =
   dict.Dict(String, String)
pub type Bundle =
   List(#(String, String))

Functions

pub fn add_bundle(
   a: Dict(String, String),
   bundle: List(#(String, String)),
) -> Dict(String, String)
pub fn auto_add_bundle(
   a: Dict(String, String),
   user_locale: #(String, String),
   bundles: List(#(String, String, List(#(String, String)))),
) -> Dict(String, String)
pub fn get(a: Dict(String, String), str: String) -> String

Returns translation or str as a fallback

pub fn get_key(a: Dict(String, String), key: String) -> String

Returns translation or empty string as a fallback

pub fn new_with_keys(
   bundle: List(#(String, String)),
) -> Dict(String, String)

Use with aham.get_key

pub fn new_with_values() -> Dict(String, String)

Use with aham.get

Search Document