Merge pull request #377 from bhollis/i18n
Append to I18n.load_path instead of replacing it
This commit is contained in:
commit
7580260706
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue