Cldr.Config.client_data_dir

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

Specs

client_data_dir(map()) :: String.t()

Return the path name of the CLDR data directory for a client application.

The order of priority to determine where the client data directory is located is:

  • A specified :data_dir of a backend configuration
  • The specified :data_dir of the backend's :otp_app configuration
  • The specified :data_dir of the global configuration
  • The priv_dir() of a specified :otp_app
  • The priv_dir() of ex_cldr

Note that config_from_opts/1 merges the global config, the otp_app config and the module config together so that :data_dir already resolves this priority in most cases.

The remaining cases are for when no :data_dir is specified.