-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Description
On which page do you see this issue?
https://daisyui.com/components/drawer/?lang=hu
Describe the issue
Hi there! I’ve discovered that certain documentation strings containing Markdown code syntax aren’t being translated on the site, even though the translations exist in the locale JSON files. For example:
-
On the Drawer component page:
-
Switching to Magyar still shows the English text:
Drawer is a grid layout that can show/hide a sidebar on the left or right side of the page, based on the screen size or based on the value of a
drawer-toggle
checkbox. -
Yet hu.json contains the correct Hungarian translation.
-
-
Similarly, when selecting فارسی (Persian), that same sentence remains in English, despite fa.json including an appropriate Persian string.
It appears that the presence of backticks (`drawer-toggle`
) or other Markdown constructs is preventing the translation lookup from matching and rendering the localized text.
Steps to reproduce:
- Go to https://daisyui.com/components/drawer/
- Change the language selector to any affected locale (e.g. Magyar or فارسی).
- Observe that the Drawer description remains in English, even though the translation key exists in the corresponding JSON file.
Could we please update the Markdown parsing or translation lookup so that strings containing code spans, headings, or other MD syntax correctly fetch and display their translations? Thank you!

What browsers are you seeing the problem on?
Chrome