Skip to content

docs: Missing some translations for Drawer description on documentation page #4001

@xionkq

Description

@xionkq

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:

  1. Go to https://daisyui.com/components/drawer/
  2. Change the language selector to any affected locale (e.g. Magyar or فارسی).
  3. 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!

Image

What browsers are you seeing the problem on?

Chrome

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions