MyApp.Cldr.Number.Format.formats_for

You're seeing just the function formats_for, go back to MyApp.Cldr.Number.Format module for more information.
Link to this function

formats_for(locale \\ MyApp.Cldr.default_locale(), number_system \\ Cldr.Number.System.default_number_system_type())

View Source

Specs

formats_for(Cldr.LanguageTag.t() | binary(), atom() | String.t()) ::
  {:ok, map()} | {:error, {module(), String.t()}}

Return the predfined formats for a given locale and number_system.

Arguments

Example

MyApp.Cldr.Number.Format.formats_for "fr", :native
#=> %Cldr.Number.Format{
  accounting: "#,##0.00 ¤;(#,##0.00 ¤)",
  currency: "#,##0.00 ¤",
  percent: "#,##0 %",
  scientific: "#E0",
  standard: "#,##0.###"
  currency_short: [{"1000", [one: "0 k ¤", other: "0 k ¤"]},
   {"10000", [one: "00 k ¤", other: "00 k ¤"]},
   {"100000", [one: "000 k ¤", other: "000 k ¤"]},
   {"1000000", [one: "0 M ¤", other: "0 M ¤"]},
   {"10000000", [one: "00 M ¤", other: "00 M ¤"]},
   {"100000000", [one: "000 M ¤", other: "000 M ¤"]},
   {"1000000000", [one: "0 Md ¤", other: "0 Md ¤"]},
   {"10000000000", [one: "00 Md ¤", other: "00 Md ¤"]},
   {"100000000000", [one: "000 Md ¤", other: "000 Md ¤"]},
   {"1000000000000", [one: "0 Bn ¤", other: "0 Bn ¤"]},
   {"10000000000000", [one: "00 Bn ¤", other: "00 Bn ¤"]},
   {"100000000000000", [one: "000 Bn ¤", other: "000 Bn ¤"]}],
   ...
  }