dachshund/locale

Types

pub type Language {
  Language(Locale, String, String)
}

Constructors

  • Language(Locale, String, String)
pub type Locale {
  En
  De
  Fr
  Es
  Ja
  Zh
  Ar
  He
  Fa
  Ur
  Yi
  Ps
  Pt
  It
  Ko
  Ru
  Hi
  Nl
  Pl
  Tr
  Sv
  Da
  Fi
  No
  Cs
  El
  Th
  Vi
  Id
  Ms
  Uk
  Hu
  Ro
  Bg
  Hr
  Sk
  Sl
  Ca
  Et
  Lv
  Lt
}

Constructors

  • En
  • De
  • Fr
  • Es
  • Ja
  • Zh
  • Ar
  • He
  • Fa
  • Ur
  • Yi
  • Ps
  • Pt
  • It
  • Ko
  • Ru
  • Hi
  • Nl
  • Pl
  • Tr
  • Sv
  • Da
  • Fi
  • No
  • Cs
  • El
  • Th
  • Vi
  • Id
  • Ms
  • Uk
  • Hu
  • Ro
  • Bg
  • Hr
  • Sk
  • Sl
  • Ca
  • Et
  • Lv
  • Lt

Values

pub fn from_string(s: String) -> Result(Locale, Nil)
pub fn from_string_loose(s: String) -> Result(Locale, Nil)
pub fn from_string_loose_or_default(s: String) -> Locale
pub fn from_string_or_default(s: String) -> Locale
pub const languages: List(Language)
pub const rtl_locales: List(Locale)
pub fn text_direction(locale: Locale) -> String
pub fn text_direction_from_string(s: String) -> String
pub fn to_string(locale: Locale) -> String
Search Document