1
0
Fork 0
mirror of https://github.com/middleman/middleman.git synced 2022-11-09 12:20:27 -05:00

Fix contract in i18n. Closes #1764

This commit is contained in:
Thomas Reynolds 2016-01-19 09:44:56 -08:00
parent 7bf4e4681f
commit 2b88773640

View file

@ -190,7 +190,7 @@ class Middleman::CoreExtensions::Internationalization < ::Middleman::Extension
end
end
Contract String, Symbol => String
Contract String, Symbol => Maybe[String]
def localized_path(path, locale)
lookup_path = path.dup
lookup_path << app.config[:index_file] if lookup_path.end_with?('/')