Mkdocs-material: site search NOT working with multi languages configed (en+ja)

Created on 19 Mar 2019  路  6Comments  路  Source: squidfunk/mkdocs-material

when i leave the [extra: search: language] empty, it works OK with english.

some people mentioned if set to ja, it could support Chinese, so i tried, but the site search not working now. here is site url https://english.thingswell.cn/

version info:
Python 3.4.3
mkdocs, version 1.0.4
mkdocs_material-4.0.2.dist-info

config:
theme: material
site_url: https://english.thingswell.cn/
extra:
search:
language: 'en, ja'

but if i only set language to 'en' it works!

duplicate

Most helpful comment

Released as part of 4.1.0. Note that you need to change en, jp to en, ja. ja is the official language code for Japanese, lunr-languages switched from jp to ja and provided an upgrade path still supporting jp as an alias, but it would be too costly to support both in Material. Therefore only ja is supported from now on.

All 6 comments

Please see #1023. It鈥榮 fixed in master but I鈥檓 currently on holiday until end of the week and didn鈥檛 manage to prepare a release. Also read the last comment in the linked issue.

Notes for visitors to this issue

You can avoid this problem to downgrade mkdocs_material-4.0.1

Let's looking forward to the next release. (4.0.3 or later)

Closing, as it is a duplicate of #1023.

Released as part of 4.1.0. Note that you need to change en, jp to en, ja. ja is the official language code for Japanese, lunr-languages switched from jp to ja and provided an upgrade path still supporting jp as an alias, but it would be too costly to support both in Material. Therefore only ja is supported from now on.

confirmed it works well now!

I was also in trouble but settled the matter.
thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

atmarx picture atmarx  路  4Comments

yogeshbeniwal picture yogeshbeniwal  路  4Comments

madrus picture madrus  路  3Comments

nikramakrishnan picture nikramakrishnan  路  3Comments

BamBalaam picture BamBalaam  路  4Comments