mirror of
https://github.com/codex-team/editor.js
synced 2026-03-16 23:55:49 +01:00
i18n
This commit is contained in:
parent
8807d5eb7e
commit
c9defd949f
4 changed files with 13 additions and 9 deletions
|
|
@ -194,9 +194,11 @@
|
|||
"toolbar": {
|
||||
"toolbox": {
|
||||
"Add": "Добавить",
|
||||
"Filter": "Поиск",
|
||||
"Nothing found": "Ничего не найдено"
|
||||
}
|
||||
},
|
||||
"popover": {
|
||||
"Filter": "Поиск",
|
||||
"Nothing found": "Ничего не найдено"
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
|||
|
|
@ -13,10 +13,12 @@
|
|||
},
|
||||
"toolbar": {
|
||||
"toolbox": {
|
||||
"Add": "",
|
||||
"Filter": "",
|
||||
"Nothing found": ""
|
||||
"Add": ""
|
||||
}
|
||||
},
|
||||
"popover": {
|
||||
"Filter": "",
|
||||
"Nothing found": ""
|
||||
}
|
||||
},
|
||||
"toolNames": {
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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'),
|
||||
},
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue