exi18n v0.9.0 ExI18n.Cache View Source
Cache that manage loaded locales.
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor.
Fetch translations for given locale.
Link to this section Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
Fetch translations for given locale.
Parameters
locale
:String
with locale to fetch.
Examples
iex> ExI18n.Cache.fetch("en")
%{"empty" => "empty", "hello" => "Hello world", "hello_2" => %{"world" => "test"},"hello_many" => ["Joe", "Mike"], "hello_name" => "Hello %{name}","incomplete" => %{"path" => %{"text" => "test"}}, "number" => 1}