mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
17 lines
566 B
Ruby
17 lines
566 B
Ruby
# frozen_string_literal: true
|
|
|
|
require "active_support/core_ext/hash/deep_merge"
|
|
require "active_support/core_ext/hash/except"
|
|
require "active_support/core_ext/hash/slice"
|
|
begin
|
|
require "i18n"
|
|
require "i18n/backend/fallbacks"
|
|
rescue LoadError => e
|
|
$stderr.puts "The i18n gem is not available. Please add it to your Gemfile and run bundle install"
|
|
raise e
|
|
end
|
|
require "active_support/lazy_load_hooks"
|
|
|
|
ActiveSupport.run_load_hooks(:i18n)
|
|
I18n.load_path << File.expand_path("locale/en.yml", __dir__)
|
|
I18n.load_path << File.expand_path("locale/en.rb", __dir__)
|