Merge pull request #377 from bhollis/i18n
Append to I18n.load_path instead of replacing it
This commit is contained in:
commit
7580260706
1 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ module Middleman::CoreExtensions::I18n
|
|||
|
||||
# Needed for helpers as well
|
||||
app.after_configuration do
|
||||
::I18n.load_path = [Dir[File.join(root, locales_dir, "*.yml")]]
|
||||
::I18n.load_path += [Dir[File.join(root, locales_dir, "*.yml")]]
|
||||
::I18n.reload!
|
||||
end
|
||||
end
|
||||
|
@ -134,4 +134,4 @@ module Middleman::CoreExtensions::I18n
|
|||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue