question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Search does not work in french language

See original GitHub issue

I checked that…

  • … the documentation does not mention anything about my problem
  • … the problem doesn’t occur with the default MkDocs template
  • … the problem is not in any of my customizations (CSS, JS, template)
  • … there are no open or closed issues that are related to my problem

Description

Search word in with mkdocs-material fir french language does not work properly

Expected behavior

Simple word such as ‘plage’ should be found. Accented words are not consistently found.

Actual behavior

‘plag’ is found, but not ‘plage’

Steps to reproduce the bug

  1. Install mkdocs-material (5.2.2)
  2. Use this mkdocs.yml file:
site_name: My Docs
theme:
  name: material
  language: fr

plugins:
  - search

and this ./docs/index.md

Cet été ensoleillé, nous irons à la plage.
  1. serve mkdocs (python -m mkdocs serve) and search for plage.

Package versions

  • Python: `3.8.3
  • MkDocs: 1.1.2
  • Material: 5.2.2

Project configuration

site_name: My Docs
theme:
  name: material
  language: fr

plugins:
  - search

System information

  • OS: Linux 5.6.15-arch1-1 x86_64 GNU/Linux
  • Browser: firefox

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
squidfunkcommented, Jun 7, 2020

Note that search is super tricky to get right for 40 languages. This may have introduced new problems I’m not aware of. I tried to test as many languages as I could, but unfortunately, my time is limited.

0reactions
kevungcommented, Jun 7, 2020

Mmm, I closed mkdocs serve, refresh, did a lot of things… and in exactely the same config as https://github.com/squidfunk/mkdocs-material/issues/1745#issuecomment-640232868 I can now find “nous” ! Haha I am a bit confused 😃 screenshot

The search functionality is very important for a web doc, so maybe id it wiser to mark the multi-language search as experimental?

I think I will set the language as english by default as it might give the most stable results. Thank you again for help. If I can be of any support for testing, I’d be happy to help.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Change your language on the web - Computer - Google Support
To check your Google Account language, open your Google Account. You'll find the language you selected. The language change didn't work: If your...
Read more >
Troubleshoot checking spelling and grammar in multiple ...
Why spell check isn't working for a different language, such as French or Spanish. ... The Do not check spelling and grammar check...
Read more >
French Translation of “to search” - Collins Dictionary
1. [room, drawer, house] fouiller. to search sth for sb. They searched the woods for her. · 2. [police, customs]. [area, house, bags]...
Read more >
Translation in context from English to French - Reverso Context
Find the French translations in context of English words, expressions and idioms; a free English-French dictionary with millions of examples of use.
Read more >
Change the language and region on iPhone - Apple Support
Go to Settings > General > Language & Region. Set the following: The language for iPhone. Your preferred form of address. (Choose feminine,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found