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

Version Path
locomotivecms_steam-1.5.0.beta1 lib/locomotive/steam/adapters/filesystem/yaml_loaders/translation.rb
locomotivecms_steam-1.4.1 lib/locomotive/steam/adapters/filesystem/yaml_loaders/translation.rb
locomotivecms_steam-1.4.0 lib/locomotive/steam/adapters/filesystem/yaml_loaders/translation.rb
locomotivecms_steam-1.4.0.rc2 lib/locomotive/steam/adapters/filesystem/yaml_loaders/translation.rb
locomotivecms_steam-1.4.0.rc1 lib/locomotive/steam/adapters/filesystem/yaml_loaders/translation.rb
locomotivecms_steam-1.4.0.pre.rc.1 lib/locomotive/steam/adapters/filesystem/yaml_loaders/translation.rb
locomotivecms_steam-1.3.0 lib/locomotive/steam/adapters/filesystem/yaml_loaders/translation.rb
locomotivecms_steam-1.3.0.rc2 lib/locomotive/steam/adapters/filesystem/yaml_loaders/translation.rb
locomotivecms_steam-1.1.2 lib/locomotive/steam/adapters/filesystem/yaml_loaders/translation.rb
locomotivecms_steam-1.2.1 lib/locomotive/steam/adapters/filesystem/yaml_loaders/translation.rb
locomotivecms_steam-1.3.0.rc1 lib/locomotive/steam/adapters/filesystem/yaml_loaders/translation.rb
locomotivecms_steam-1.2.0 lib/locomotive/steam/adapters/filesystem/yaml_loaders/translation.rb
locomotivecms_steam-1.2.0.rc3 lib/locomotive/steam/adapters/filesystem/yaml_loaders/translation.rb
locomotivecms_steam-1.2.0.rc2 lib/locomotive/steam/adapters/filesystem/yaml_loaders/translation.rb
locomotivecms_steam-1.2.0.rc1 lib/locomotive/steam/adapters/filesystem/yaml_loaders/translation.rb
locomotivecms_steam-1.2.0.beta1 lib/locomotive/steam/adapters/filesystem/yaml_loaders/translation.rb
locomotivecms_steam-1.1.1 lib/locomotive/steam/adapters/filesystem/yaml_loaders/translation.rb
locomotivecms_steam-1.1.0 lib/locomotive/steam/adapters/filesystem/yaml_loaders/translation.rb
locomotivecms_steam-1.1.0.rc3 lib/locomotive/steam/adapters/filesystem/yaml_loaders/translation.rb
locomotivecms_steam-1.1.0.rc2 lib/locomotive/steam/adapters/filesystem/yaml_loaders/translation.rb