Sha256: c1cf18ef8d98882976463a4415f14c04537e48e82199fff7c9d96a04511a4ce1

Contents?: true

Size: 403 Bytes

Versions: 86

Compression:

Stored size: 403 Bytes

Contents

# frozen_string_literal: true

require 'avm/tools/self'
require 'i18n'

module Avm
  module Patches
    module I18n
      class << self
        def setup_i18n
          ::I18n.load_path += locale_files_paths.map(&:to_path)
        end

        def locale_files_paths
          ::Avm::Tools::Self.root.join('locale').glob('*.yml')
        end
      end
    end
  end
end

::Avm::Patches::I18n.setup_i18n

Version data entries

86 entries across 86 versions & 2 rubygems

Version Path
avm-tools-0.139.0 lib/avm/patches/i18n.rb
eac_tools-0.35.0 sub/avm-tools/lib/avm/patches/i18n.rb
avm-tools-0.138.0 lib/avm/patches/i18n.rb
eac_tools-0.34.0 sub/avm-tools/lib/avm/patches/i18n.rb
avm-tools-0.137.0 lib/avm/patches/i18n.rb
eac_tools-0.33.0 sub/avm-tools/lib/avm/patches/i18n.rb
eac_tools-0.32.0 sub/avm-tools/lib/avm/patches/i18n.rb
avm-tools-0.136.2 lib/avm/patches/i18n.rb
eac_tools-0.31.1 sub/avm-tools/lib/avm/patches/i18n.rb
eac_tools-0.31.0 sub/avm-tools/lib/avm/patches/i18n.rb
avm-tools-0.136.1 lib/avm/patches/i18n.rb
eac_tools-0.30.0 sub/avm-tools/lib/avm/patches/i18n.rb
eac_tools-0.29.0 sub/avm-tools/lib/avm/patches/i18n.rb
avm-tools-0.136.0 lib/avm/patches/i18n.rb
eac_tools-0.28.0 sub/avm-tools/lib/avm/patches/i18n.rb
eac_tools-0.27.2 sub/avm-tools/lib/avm/patches/i18n.rb
eac_tools-0.27.1 sub/avm-tools/lib/avm/patches/i18n.rb
avm-tools-0.135.0 lib/avm/patches/i18n.rb
eac_tools-0.27.0 sub/avm-tools/lib/avm/patches/i18n.rb
avm-tools-0.134.0 lib/avm/patches/i18n.rb