Cldr v1.3.2 Cldr.Locale.Sigil View Source
Link to this section Summary
Functions
Implements the sigil ~L
for a Locale
Link to this section Functions
Link to this function
sigil_L(locale_name, _)
View Source
sigil_L(Cldr.Locale.locale_name(), any()) :: Cldr.LanguageTag.t() | none()
Implements the sigil ~L
for a Locale
The lower case ~l
variant does not exist as interpolation and excape
characters are not useful for Locale sigils.
Example
iex> import Cldr.Locale.Sigil
iex> ~L[en]
%Cldr.LanguageTag{
canonical_locale_name: "en-Latn-US",
cldr_locale_name: "en",
extensions: %{},
gettext_locale_name: "en",
language: "en",
locale: %{},
private_use: [],
rbnf_locale_name: "en",
requested_locale_name: "en",
script: "Latn",
territory: "US",
transform: %{},
variant: nil
}