libfluent v0.2.0 Fluent.Assembly.Source

Module

Link to this section Summary

Functions

Returns absolute path to directory, which contains all FTL data for assembly.

Returns absolute pathes to all FTL files for given assembly and it's locale.

Returns absolute path to directory, which contains all FTL data for assembly with given locale.

Returns list of all available locales for given assembly

Link to this section Functions

Link to this function

assembly_dir(assembly)

assembly_dir(assembly :: Fluent.Assembly.t()) :: Path.t()

Returns absolute path to directory, which contains all FTL data for assembly.

Examples:

iex> assembly_dir(MyApp.Fluent)
"/path/to/ftl/files/"
Link to this function

ftl_files_pathes(assembly, locale)

ftl_files_pathes(assembly :: Fluent.Assembly.t(), locale :: Fluent.locale()) ::
  [Path.t()]

Returns absolute pathes to all FTL files for given assembly and it's locale.

Examples:

iex> ftl_files_pathes(MyApp.Fluent, "en")
["/path/to/ftl/1.ftl", "/path/to/ftl/2.frl", ... "/path/to/ftl/last.ftl"]
Link to this function

locale_dir(assembly, locale)

locale_dir(assembly :: Fluent.Assembly.t(), locale :: Fluent.locale()) ::
  Path.t()

Returns absolute path to directory, which contains all FTL data for assembly with given locale.

Examples:

iex> assembly_dir(MyApp.Fluent, "en-US")
"/path/to/ftl/files/en-US"
Link to this function

locales(assembly)

locales(assembly :: Fluent.Assembly.t()) :: [Fluent.locale()]

Returns list of all available locales for given assembly

Examples:

iex> locales(MyApp.Fluent)
["en", "fr", "ru"]