Fix contract in i18n. Closes #1764

feature/domain-checker
Thomas Reynolds 2016-01-19 09:44:56 -08:00
parent 7bf4e4681f
commit 2b88773640
1 changed files with 1 additions and 1 deletions

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?('/')