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:
parent
7bf4e4681f
commit
2b88773640
1 changed files with 1 additions and 1 deletions
|
@ -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