I18n::Loader::YAML
Inherits I18n::Loader::Base < Reference < Object
The YAML translations loader.
This loader implementation allows to load translations from YAML files (.yaml or .yml files). It must be
initialized from a given path and it will recursively try to load all the YAML files that are available under the
targetted directory:
I18n.config.loaders << I18n::Loader::YAML.new("config/locales")
This loader also allows to embed the raw translations that are available under the targetted directory inside the
compiled binary through the use of the #embed macro:
I18n.config.loaders << I18n::Loader::YAML.embed("config/locales")
Constructors
new(preloaded_translations : TranslationsHash)
SourceClass methods
Instance methods
path
Sourcepreloaded_translations
SourceMacros
embed(path)
Source