manastech / middleman-search

LunrJS-based search for Middleman
MIT License
58 stars 31 forks source link

Add an option to use lunr i18n assets #16

Closed fgi closed 7 years ago

fgi commented 7 years ago

Hi, I tried a patch to configure lunr for French, before seeing your i18n branch. I did exactly the same than the changes in search-index-resource.rb file. I would just suggest to add @language = options[:language] in the initializer and use it bellow to make the option available in Middleman's config.rb. Do you plan to merge this branch in next version of middleman-search? Thanks.

fgi commented 7 years ago

Perfect! :+1: Thanks.