Fluent.Assembly.Source (libfluent v0.2.3)
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)
Specs
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)
Specs
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)
Specs
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)
Specs
locales(assembly :: Fluent.Assembly.t()) :: [Fluent.locale()]
Returns list of all available locales for given assembly
Examples:
iex> locales(MyApp.Fluent)
["en", "fr", "ru"]