This commit is contained in:
Tanya Fomina 2022-07-20 12:17:26 +08:00
commit c9defd949f
4 changed files with 13 additions and 9 deletions

View file

@ -194,9 +194,11 @@
"toolbar": {
"toolbox": {
"Add": "Добавить",
"Filter": "Поиск",
"Nothing found": "Ничего не найдено"
}
},
"popover": {
"Filter": "Поиск",
"Nothing found": "Ничего не найдено"
}
},

View file

@ -13,10 +13,12 @@
},
"toolbar": {
"toolbox": {
"Add": "",
"Filter": "",
"Nothing found": ""
"Add": ""
}
},
"popover": {
"Filter": "",
"Nothing found": ""
}
},
"toolNames": {

View file

@ -110,8 +110,8 @@ export default class BlockSettings extends Module<BlockSettingsNodes> {
this.popover = new Popover({
className: this.CSS.settings,
searchable: true,
filterLabel: I18n.ui(I18nInternalNS.ui.toolbar.toolbox, 'Filter'),
nothingFoundLabel: I18n.ui(I18nInternalNS.ui.toolbar.toolbox, 'Nothing found'),
filterLabel: I18n.ui(I18nInternalNS.ui.popover, 'Filter'),
nothingFoundLabel: I18n.ui(I18nInternalNS.ui.popover, 'Nothing found'),
items: this.prepareTunesItems(tunesItems),
customContent: this.nodes.renderedTunes,
api: this.Editor.API.methods,

View file

@ -407,8 +407,8 @@ export default class Toolbar extends Module<ToolbarNodes> {
api: this.Editor.API.methods,
tools: this.Editor.Tools.blockTools,
i18nLabels: {
filter: I18n.ui(I18nInternalNS.ui.toolbar.toolbox, 'Filter'),
nothingFound: I18n.ui(I18nInternalNS.ui.toolbar.toolbox, 'Nothing found'),
filter: I18n.ui(I18nInternalNS.ui.popover, 'Filter'),
nothingFound: I18n.ui(I18nInternalNS.ui.popover, 'Nothing found'),
},
});