You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by sh...@apache.org on 2021/09/01 12:35:38 UTC
[echarts-handbook] branch master updated: add search language
This is an automated email from the ASF dual-hosted git repository.
shenyi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/echarts-handbook.git
The following commit(s) were added to refs/heads/master by this push:
new d5e4536 add search language
d5e4536 is described below
commit d5e45365fde6f6b815d7b913cd4a8c3837b6167e
Author: pissang <bm...@gmail.com>
AuthorDate: Wed Sep 1 20:35:31 2021 +0800
add search language
---
components/partials/Sidebar.vue | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/components/partials/Sidebar.vue b/components/partials/Sidebar.vue
index 5a754e7..f3ac761 100644
--- a/components/partials/Sidebar.vue
+++ b/components/partials/Sidebar.vue
@@ -4,7 +4,7 @@
<input
id="handbook-search-intput"
type="search"
- :placeholder="$t('searchHandbook')"
+ :placeholder="$t('searchHandbook')"
/>
<div class="search-icon">
<svg
@@ -126,9 +126,10 @@ export default Vue.extend({
apiKey: '6ade5f1ff34e94690f9ea38cddcc2f55',
indexName: 'apache_echarts',
inputSelector: '#handbook-search-intput',
- // algoliaOptions: {
- // facetFilters: ['language:en']
- // },
+ algoliaOptions: {
+ // @ts-ignore
+ facetFilters: [`lang:${this.$i18n.locale}`]
+ },
debug: false // Set debug to true if you want to inspect the dropdown
})
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org