Module: Avm::Patches::I18n

Defined in:
lib/avm/patches/i18n.rb

Class Method Summary collapse

Class Method Details

.locale_files_pathsObject



14
15
16
# File 'lib/avm/patches/i18n.rb', line 14

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

.setup_i18nObject



10
11
12
# File 'lib/avm/patches/i18n.rb', line 10

def setup_i18n
  ::I18n.load_path += locale_files_paths.map(&:to_path)
end