strapi-plugin-meilisearch
strapi-plugin-meilisearch copied to clipboard
Workaround for locales
Pull Request
What does this PR do?
Fixes # 263 https://github.com/meilisearch/strapi-plugin-meilisearch/issues/263
PR checklist
Please check if your PR fulfills the following requirements:
- [X] Does this PR fix an existing issue?
- [X] Have you read the contributing guidelines?
- [X] Have you made sure that the title is accurate and descriptive of the changes?
Thank you so much for contributing to Meilisearch!
Hello @fhenri42! Thanks so much for your contribution 🙏 how does it look like when added to Meilisearch?
Hello, you will not see any change in the UI, I juste added the "all" field to fetch all content-types and not only the default language. Maybe this change does not work if the plugin Internationalization is not installed, I will try to give you a answer before the end of the week. Do you think this option need to be set in the UI of the plugin ? Maybe I could set this as an options in the config file if that work for you ?
locales: ['fr', 'en, '*']
Hey @fhenri42 it could become a setting yes :) Let's see what your investigation brings up before going into that direction
Hey @bidoubiwa I remove the Internationalization in a new app and did not have any issues
Any idea of when this MR will be approved?
Hey @Hedg0305
I think i'm going to move it to a setting to avoid unexpected behaviors to users not wanting this option. I'll keep you updated as soon as I come back on this pr :)
Hey @fhenri42. I tried your suggested changes without having the @strapi/plugin-i18n plugin and it fails.
I'm trying to find if I can check its presence and depending on it add the local: 'all' to the request
I found a work-around, since you are doing your changes on a main branch I can unfortunately not commit to it. I'm merging this PR in another branch to update it :)
Thanks for contributing !
This message is sent automatically
Thank you for contributing to Meilisearch. If you are participating in Hacktoberfest, and you would like to receive some gift from Meilisearch too, please complete this form.