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-10.0.0 lib/manageiq/appliance_console/i18n.rb
manageiq-appliance_console-9.1.1 lib/manageiq/appliance_console/i18n.rb
manageiq-appliance_console-9.1.0 lib/manageiq/appliance_console/i18n.rb
manageiq-appliance_console-9.0.2 lib/manageiq/appliance_console/i18n.rb
manageiq-appliance_console-9.0.1 lib/manageiq/appliance_console/i18n.rb
manageiq-appliance_console-9.0.0 lib/manageiq/appliance_console/i18n.rb
manageiq-appliance_console-8.1.0 lib/manageiq/appliance_console/i18n.rb
manageiq-appliance_console-7.2.2 lib/manageiq/appliance_console/i18n.rb
manageiq-appliance_console-7.2.1 lib/manageiq/appliance_console/i18n.rb
manageiq-appliance_console-7.2.0 lib/manageiq/appliance_console/i18n.rb
manageiq-appliance_console-8.0.0 lib/manageiq/appliance_console/i18n.rb
manageiq-appliance_console-7.1.1 lib/manageiq/appliance_console/i18n.rb
manageiq-appliance_console-7.1.0 lib/manageiq/appliance_console/i18n.rb
manageiq-appliance_console-7.0.6 lib/manageiq/appliance_console/i18n.rb
manageiq-appliance_console-7.0.5 lib/manageiq/appliance_console/i18n.rb
manageiq-appliance_console-7.0.4 lib/manageiq/appliance_console/i18n.rb
manageiq-appliance_console-7.0.3 lib/manageiq/appliance_console/i18n.rb
manageiq-appliance_console-7.0.2 lib/manageiq/appliance_console/i18n.rb
manageiq-appliance_console-6.1.1 lib/manageiq/appliance_console/i18n.rb
manageiq-appliance_console-7.0.1 lib/manageiq/appliance_console/i18n.rb