8
0
Pārlūkot izejas kodu

Internal: Fixed the t() usage.

Piotrek Koszuliński 7 gadi atpakaļ
vecāks
revīzija
9646803d19
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2 1
      packages/ckeditor5-autosave/src/autosave.js

+ 2 - 1
packages/ckeditor5-autosave/src/autosave.js

@@ -147,6 +147,7 @@ export default class Autosave extends Plugin {
 	init() {
 		const editor = this.editor;
 		const doc = editor.model.document;
+		const t = editor.t;
 
 		this._pendingActions = editor.plugins.get( PendingActions );
 
@@ -156,7 +157,7 @@ export default class Autosave extends Plugin {
 			}
 
 			if ( this.state == 'synchronized' ) {
-				this._action = this._pendingActions.add( this.editor.t( 'Saving changes' ) );
+				this._action = this._pendingActions.add( t( 'Saving changes' ) );
 				this.state = 'waiting';
 
 				this._debouncedSave();