Fluent.Assembly.Source (libfluent v0.2.4)

Module

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

Functions

Link to this function

assembly_dir(assembly)

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

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

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

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

Returns list of all available locales for given assembly

Examples:

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