Sha256: ff7934059aa6eedf30efc738504b3943c090eff490178ee89dfb4b4013cd36bb

Contents?: true

Size: 483 Bytes

Versions: 45

Compression:

Stored size: 483 Bytes

Contents

require 'i18n'
require 'pathname'

gem_root = Pathname.new(__dir__).join("..", "..", "..")

locales_dir = ENV['CONTAINER'] ? "container" : "appliance"
locales_paths = [
  gem_root.join("locales", locales_dir, "*.yml"),
  File.expand_path(File.join("productization/appliance_console/locales", locales_dir, "*.yml"), ManageIQ::ApplianceConsole::RAILS_ROOT)
]
locales_paths.each { |p| I18n.load_path += Dir[p].sort }
I18n.enforce_available_locales = true
I18n.backend.load_translations

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
manageiq-appliance_console-3.3.1 lib/manageiq/appliance_console/i18n.rb
manageiq-appliance_console-3.3.0 lib/manageiq/appliance_console/i18n.rb
manageiq-appliance_console-3.2.0 lib/manageiq/appliance_console/i18n.rb
manageiq-appliance_console-3.1.0 lib/manageiq/appliance_console/i18n.rb
manageiq-appliance_console-3.0.0 lib/manageiq/appliance_console/i18n.rb