-
|
I'm trying to translate the text in the Flexsearch modal shown in the screenshot below.
According to https://getdoks.org/docs/guides/i18n/#flexsearch, one should just copy I have translation to Swedish working on the rest of the site, with strings stored in Since the docs only mention that one should copy the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
|
I just tried copying and modifying
When adding the translation string, I noticed that there were some strings already for the search modal, but those do no work for me either. Looking at the search modal on https://doks.netlify.app/, I can see that my search modal lacks a few features, as you can see in the screenshots below. I don't have a placeholder, and I don't see recent searches. From https://doks.netlify.app/ My search modal
Any help with this is much appreciated. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for all the help @h-enk. I'll close this discussion now, as the main point has been answered, and the remaining translation issues will be handled in thuliteio/doks-core#135. |
Beta Was this translation helpful? Give feedback.







I freshly installed Doks, then updated
hugo.toml:Copied
node_modules/@thulite/doks-core/assets/js/flexsearch.jsfile and pasted it asassets/js/flexsearch.nl.jsThis is what my search modal then looks like:
Then copied
node_modules/@thulite/doks-core/layouts/_partials/header/search-modal.htmland pasted it aslayouts/_partials/header/search-modal.htmlOuch, it looks like the button labels are indeed hardcoded: