How providers work in ex_cldr
mainBecause CLDR data is massive, ex_cldr uses a provider system to allow you to include only the functionality you need (e.g., just numbers, or just dates).
- To include specific functionality: List the provider modules in the
:providerskey of your backend module. - To include everything installed: If
:providersisnil(the default),ex_cldrwill attempt to configure all known providers that are present in yourdeps. - To include nothing: Set
:providersto[].
defmodule MyApp.Cldr do
use Cldr,
locales: ["en", "zh"],
default_locale: "en",
providers: [Cldr.Number, Cldr.List]
end