Implements a sigil_l/2 macro for
constructing t:Localize.LanguageTag structs.
Summary
Functions
Handles sigil ~l for language tags.
Functions
Handles sigil ~l for language tags.
Arguments
locale_idis a BCP 47 locale identifier as a string.
Options
uWill parse the locale but will not add likely subtags or resolve the CLDR locale identifier.
Returns
a
Localize.LanguageTag.t/0struct orraises an exception.
Examples
iex> import Localize.LanguageTag.Sigil
iex> tag = ~l(en-US-u-ca-gregory)
iex> tag.language
:en
iex> import Localize.LanguageTag.Sigil
iex> tag = ~l(en)u
iex> tag.requested_locale_id
"en"