Fluent.Store (libfluent v0.2.3)

This module hande references to active bundles, that are using during runtimne of the program

Link to this section Summary

Link to this section Types

Specs

t() :: %Fluent.Store{bundles: term()}

Link to this section Functions

Link to this function

format_pattern(store, locale, message, args \\ [])

Specs

format_pattern(t(), Fluent.locale(), String.t(), Keyword.t()) :: any()
Link to this function

get_store(assembly)

Specs

get_store(assembly :: Fluent.Assembly.t()) :: t()
Link to this function

initialize_locale(assembly, locale)

Specs

initialize_locale(assembly :: Fluent.Assembly.t(), locale :: Fluent.locale()) ::
  {:ok, Fluent.bundle()}

Example:

iex> Fluent.Store.initialize_bundle(MyApp.Fluent, "en-US")

Link to this function

initialize_store(assembly)

Specs

initialize_store(assembly :: Fluent.Assembly.t()) :: {:ok, t()}
Link to this function

known_locales(store)

Specs

known_locales(store :: t()) :: [Fluent.locale()]