Append to I18n.load_path instead of replacing it
This commit is contained in:
parent
83178031d2
commit
9aadbbdca9
|
@ -12,7 +12,7 @@ module Middleman::CoreExtensions::I18n
|
||||||
|
|
||||||
# Needed for helpers as well
|
# Needed for helpers as well
|
||||||
app.after_configuration do
|
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!
|
::I18n.reload!
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue