Explorar o código

Used transtion service for pending action message.

Oskar Wróbel %!s(int64=7) %!d(string=hai) anos
pai
achega
09c368f13b
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      packages/ckeditor5-upload/src/filerepository.js

+ 3 - 1
packages/ckeditor5-upload/src/filerepository.js

@@ -234,10 +234,12 @@ export default class FileRepository extends Plugin {
 	 */
 	_updatePendingAction() {
 		const pendingActions = this.editor.plugins.get( PendingActions );
-		const getMessage = value => `Upload in progress ${ parseInt( value ) }%.`;
 
 		if ( this.loaders.length ) {
 			if ( !this._pendingAction ) {
+				const t = this.editor.t;
+				const getMessage = value => `${ t( 'Upload in progress' ) } ${ parseInt( value ) }%.`;
+
 				this._pendingAction = pendingActions.add( getMessage( this.uploadedPercent ) );
 				this._pendingAction.bind( 'message' ).to( this, 'uploadedPercent', getMessage );
 			}