exi18n v0.6.0 ExI18n.Loader

Loads translations.

Summary

Functions

Returns loader module based on type that will load translation file

Loads translations for locale

Loader type used to store translations

Options for loader

Functions

get(loader)

Returns loader module based on type that will load translation file.

Parameters

  • loader: Atom with name of storage type or Module.

Examples

iex> ExI18n.Loader.get(:yml)
ExI18n.Loader.YAML
load(locale)
load(String.t) :: Map.t

Loads translations for locale.

It will use adapter based on storage set in configuration. See get/1

Parameters

  • locale: String with name of locale/file.
loader_type()

Loader type used to store translations.

options()

Options for loader.