internals/locales

Values

pub fn default_raw() -> #(
  String,
  String,
  String,
  String,
  Bool,
  List(#(Int, String, String)),
)

Fallback locale data (English).

pub fn locales_raw() -> List(
  #(
    String,
    #(
      String,
      String,
      String,
      String,
      Bool,
      List(#(Int, String, String)),
    ),
  ),
)

Internal localization data for built-in locales.

Data is stored as raw tuples to avoid circular dependencies with the public LocaleData type.

Tuple layout: #(ago, in_, now, conj, ago_prefix, units)

ago_prefix — when True the “ago” word is placed before the time core (e.g. FR “il y a 2 heures”, ES “hace 1 día”). When False it goes after (e.g. EN “1 hour ago”, IT “1 ora fa”).

Built-in locales mapping.

Search Document