mirror of
https://github.com/codex-team/editor.js
synced 2026-03-18 08:29:52 +01:00
Fix toolbox item label translation
This commit is contained in:
parent
8bf4dcde9f
commit
44760ec435
1 changed files with 3 additions and 1 deletions
|
|
@ -6,6 +6,8 @@ import ToolsCollection from '../tools/collection';
|
|||
import { API } from '../../../types';
|
||||
import EventsDispatcher from '../utils/events';
|
||||
import Popover, { PopoverEvent } from '../utils/popover';
|
||||
import I18n from '../i18n';
|
||||
import { I18nInternalNS } from '../i18n/namespace-internal';
|
||||
|
||||
/**
|
||||
* @todo the first Tab on the Block — focus Plus Button, the second — focus Block Tunes Toggler, the third — focus next Block
|
||||
|
|
@ -133,7 +135,7 @@ export default class Toolbox extends EventsDispatcher<ToolboxEvent> {
|
|||
items: this.toolsToBeDisplayed.map(tool => {
|
||||
return {
|
||||
icon: tool.toolbox.icon,
|
||||
label: tool.toolbox.title,
|
||||
label: I18n.t(I18nInternalNS.toolNames, tool.toolbox.title),
|
||||
name: tool.name,
|
||||
onClick: (item): void => {
|
||||
this.toolButtonActivated(tool.name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue