Sha256: 1cab3c77d4d87626cc0b6bc2f4930e91f026b251010217a8c4d6b75811d0a9d3
Contents?: true
Size: 764 Bytes
Versions: 36
Compression:
Stored size: 764 Bytes
Contents
module Locomotive module Steam module Adapters module Filesystem module YAMLLoaders class Translation include Adapters::Filesystem::YAMLLoader def load(scope) super load_array end private def load_array [].tap do |array| if (all = _load(path)) all.each do |key, values| array << { key: key.to_s, values: HashConverter.to_string(values) } end end end end def path File.join(site_path, 'config', 'translations.yml') end end end end end end end
Version data entries
36 entries across 36 versions & 1 rubygems