gsub to sub
This commit is contained in:
parent
b48a767595
commit
7a5865a407
1 changed files with 1 additions and 1 deletions
|
@ -183,7 +183,7 @@ class Middleman::CoreExtensions::Internationalization < ::Middleman::Extension
|
|||
File.join(prefix, path.sub(page_id, localized_page_id))
|
||||
)
|
||||
|
||||
path.gsub!(options[:templates_dir] + '/', '')
|
||||
path = path.sub(options[:templates_dir] + '/', '')
|
||||
|
||||
@_localization_data[path] = [lang, path, localized_page_id]
|
||||
|
||||
|
|
Loading…
Reference in a new issue