editor.js icon indicating copy to clipboard operation
editor.js copied to clipboard

Docs: wrong example for convertTo i18n

Open xXNickznXx opened this issue 1 year ago • 4 comments

Steps to reproduce

  1. Open https://stackblitz.com/edit/nickzn-editorjs?file=src%2Fmain.ts
  2. Mark "text"
  3. Hover over "convertTo" inlinetool
  4. The tooltip displays "Convert to"

Expected behavior

It should display "cccc"

Editor.js version

2.30.x On 2.29.1 it worked.

Plugins you use with their versions

  • @editorjs/header: 2.8.7

xXNickznXx avatar Oct 08 '24 10:10 xXNickznXx

it was fixed in 2.30.2. Update to the latest version and check again please

neSpecc avatar Oct 08 '24 10:10 neSpecc

@neSpecc just look at the stackblitz, im using 2.30.6 there

xXNickznXx avatar Oct 08 '24 10:10 xXNickznXx

Tokens location has been changed.

Use following paths:

i18n: {
  messages: {
    ui: {
      // for block tunes menu
      popover: {
        "Convert to": "Конвертировать в",
      }
    },
    tools: {
      // for inline toolbar hint
      convertTo: {
        "Convert to": "Конвертировать в",
      }
    },
  }
}

neSpecc avatar Oct 08 '24 10:10 neSpecc

That works, thanks!

xXNickznXx avatar Oct 08 '24 11:10 xXNickznXx

Resolved by https://github.com/codex-team/editorjs.io/pull/23

neSpecc avatar Sep 15 '25 17:09 neSpecc