mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Load vendored i18n if its not found since its a real requirement
This commit is contained in:
@@ -36,5 +36,11 @@ end
|
||||
|
||||
require 'active_support/autoload'
|
||||
|
||||
require 'i18n'
|
||||
begin
|
||||
require 'i18n'
|
||||
rescue LoadError
|
||||
$: << File.expand_path(File.join(File.dirname(__FILE__), 'active_support/vendor/i18n-0.1.3/lib'))
|
||||
retry
|
||||
end
|
||||
|
||||
I18n.load_path << "#{File.dirname(__FILE__)}/active_support/locale/en.yml"
|
||||
|
||||
Reference in New Issue
Block a user