Fix contract in i18n. Closes #1764
This commit is contained in:
parent
7bf4e4681f
commit
2b88773640
|
@ -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?('/')
|
||||
|
|
Loading…
Reference in a new issue