Code Monkey home page Code Monkey logo

Comments (5)

ultrabug avatar ultrabug commented on May 20, 2024

@Caetan95 hi; sure it should not be a problem if you can provide me with an example and what you expect from it?

from mkdocs-static-i18n.

Caetan95 avatar Caetan95 commented on May 20, 2024

Thanks for your quick reply @ultrabug we really appreciate it.

I would expect to search in each language separately, so depending on which language I am, it will search into it.

Currently, the behavior is that it always searches in the default language (in your example, in English), and if I change to français it will continue searching in the English version. In addition, if I search for some French word (in the French version) that is present in the text it can't find anything, since as far as I understand it just searches into English files (the default language) without taking into account the language that is currently selected.

1. English language search
image

2. French language search (no results)
image

3. French language search (searching for English stuff)
image

So taking into account this example, I would expect that 2. French language search (no results) shows some results (as the word décrite appears in the files) and it would be nice too that 3. French language search (searching for English stuff) doesn't show any results from other languages (just the selected one, which is French in this screenshot), but maybe this last one is not as critical as the second one, the French language search with no results (by extension all languages that are not the default).

I would like to thank you again for your collaboration :)

from mkdocs-static-i18n.

ultrabug avatar ultrabug commented on May 20, 2024

FYI @Caetan95 the way the search plugin is implemented prevents us from having a search index per language.

I'm almost done with this, it works good on mkdocs 1.1.2 but not on 1.2... looking into it now.

from mkdocs-static-i18n.

Caetan95 avatar Caetan95 commented on May 20, 2024

Hello @ultrabug, thanks for your commitment. Just FYI, I have been testing the new mkdocs 1.2 release with your plugin and I haven't found any other conflict (apart from those that we have already discuss).

Thanks again for your work :)

from mkdocs-static-i18n.

ultrabug avatar ultrabug commented on May 20, 2024

version 0.15 is out mate, thanks!

from mkdocs-static-i18n.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.