From 9aadbbdca98690228e0c2135905bf94abbcbc331 Mon Sep 17 00:00:00 2001 From: Ben Hollis Date: Mon, 23 Apr 2012 22:03:15 -0700 Subject: [PATCH] Append to I18n.load_path instead of replacing it --- middleman-core/lib/middleman-core/core_extensions/i18n.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/middleman-core/lib/middleman-core/core_extensions/i18n.rb b/middleman-core/lib/middleman-core/core_extensions/i18n.rb index 843a1361..0f34f99a 100644 --- a/middleman-core/lib/middleman-core/core_extensions/i18n.rb +++ b/middleman-core/lib/middleman-core/core_extensions/i18n.rb @@ -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 \ No newline at end of file +end