Skip to content

Can not internationalize ToggleWrapper text #1929

@MatheusFFM

Description

@MatheusFFM

Describe the bug
Inside of the ToggleWrapper component:

  • packages/react/src/blocks/ToggleWrapper/ToggleWrapper.tsx
  • packages/core/src/blocks/ToggleWrapper/createToggleWrapper.ts

There is a magic text "Empty toggle. Click to add a block." that can not be internationalized by the dictionary.

To Reproduce

  1. Create a block that uses the ToggleWrapper, like the ToggleListItemBlock.
  2. Open the toggle, and, when empty, there will be a button with the text "Empty toggle. Click to add a block.". This text can not be changed, even with a complete dictionary param on the editor.

Misc

  • Node version: v22.17.0
  • Package manager: yarn 4.7.0
  • Browser: Chrome/138.0.0.0
  • I'm a sponsor and would appreciate if you could look into this sooner than later 💖

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions