Skip to content

Commit

Permalink
feat(documentation): i18n on the docsearch (#395)
Browse files Browse the repository at this point in the history
The documentation has been written in a few languages now, but was only crawled in English. Now the setup has been put in place for documentation in multiple languages (see algolia/docsearch-configs#130 as well). The other languages can only be added as soon as this is merged.
  • Loading branch information
Haroenv authored and Daniel15 committed Mar 1, 2017
1 parent 5d2f0cc commit ade0d19
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/src/documentation.js
Expand Up @@ -4,4 +4,5 @@ docsearch({
apiKey: '3949f721e5d8ca1de8928152ff745b28',
indexName: 'yarnpkg',
inputSelector: '#algolia-doc-search',
algoliaOptions: { facetFilters: { lang: window.i18n.active_language } },
});

0 comments on commit ade0d19

Please sign in to comment.