2017-07-09 08:06:36 -04:00
|
|
|
# frozen_string_literal: true
|
2017-07-10 09:39:13 -04:00
|
|
|
|
2017-10-21 09:11:29 -04:00
|
|
|
require "active_support/core_ext/hash/deep_merge"
|
|
|
|
require "active_support/core_ext/hash/except"
|
|
|
|
require "active_support/core_ext/hash/slice"
|
2010-05-31 06:31:08 -04:00
|
|
|
begin
|
2016-08-06 11:58:50 -04:00
|
|
|
require "i18n"
|
2020-03-05 14:33:58 -05:00
|
|
|
require "i18n/backend/fallbacks"
|
2010-05-31 06:31:08 -04:00
|
|
|
rescue LoadError => e
|
2011-05-22 07:30:55 -04:00
|
|
|
$stderr.puts "The i18n gem is not available. Please add it to your Gemfile and run bundle install"
|
2010-05-31 06:31:08 -04:00
|
|
|
raise e
|
|
|
|
end
|
2017-10-21 09:11:29 -04:00
|
|
|
require "active_support/lazy_load_hooks"
|
2010-06-20 08:44:38 -04:00
|
|
|
|
2012-05-10 19:48:23 -04:00
|
|
|
ActiveSupport.run_load_hooks(:i18n)
|
2017-05-15 10:17:28 -04:00
|
|
|
I18n.load_path << File.expand_path("locale/en.yml", __dir__)
|
2018-03-04 21:29:54 -05:00
|
|
|
I18n.load_path << File.expand_path("locale/en.rb", __dir__)
|