Fluent.Store (libfluent v0.2.4)

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

Summary

Types

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

Functions

Link to this function

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

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

get_store(assembly)

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

initialize_locale(assembly, locale)

@spec 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)

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

known_locales(store)

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