Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Fix: Made Edit block string translatable.
Browse files Browse the repository at this point in the history
  • Loading branch information
ma2ciek committed Oct 5, 2018
1 parent 35d1ced commit a842366
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lang/contexts.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"Rich Text Editor, %0": "Title of the CKEditor5 editor.",
"Rich Text Editor": "Title of the CKEditor5 editor."
"Rich Text Editor": "Title of the CKEditor5 editor.",
"Edit block": "Label of the block toolbar icon (a block toolbar is displayed next to each paragraph, heading, list item, etc. and contains e.g. block formatting options)"
}
3 changes: 2 additions & 1 deletion src/toolbar/block/blocktoolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,11 @@ export default class BlockToolbar extends Plugin {
*/
_createButtonView() {
const editor = this.editor;
const t = editor.t;
const buttonView = new BlockButtonView( editor.locale );

buttonView.set( {
label: editor.t( 'Edit block' ),
label: t( 'Edit block' ),
icon: iconPilcrow,
withText: false
} );
Expand Down

0 comments on commit a842366

Please sign in to comment.