MyApp.Cldr.get_locale

You're seeing just the function get_locale, go back to MyApp.Cldr module for more information.

Specs

get_locale() :: Cldr.LanguageTag.t()

Return the current locale to be used for Cldr functions that take an optional locale parameter for which a locale is not supplied.

Example

iex> MyApp.Cldr.put_locale("pl")
iex> MyApp.Cldr.get_locale
%Cldr.LanguageTag{
   backend: Elixir.MyApp.Cldr,
   canonical_locale_name: "pl-Latn-PL",
   cldr_locale_name: "pl",
   extensions: %{},
   language: "pl",
   locale: %{},
   private_use: [],
   rbnf_locale_name: "pl",
   territory: :PL,
   requested_locale_name: "pl",
   script: "Latn",
   transform: %{},
   language_variant: nil
 }