@@ -36,9 +36,8 @@ export class WcStylingComponent implements OnDestroy, OnInit {
3636 if ( file . size > 10048576 ) {
3737 //10MB
3838 this . toastr . error (
39- $localize `File
40- ${ file . name } could not be processed ` ,
41- $localize `File is too big` ,
39+ $localize `File ` + file . name + $localize ` could not be processed.` ,
40+ $localize `File is too big.` ,
4241 { timeOut : 2000 } ,
4342 ) ;
4443
@@ -55,15 +54,14 @@ export class WcStylingComponent implements OnDestroy, OnInit {
5554 ) ;
5655 this . updateStyle ( ) ;
5756 this . toastr . success (
58- $localize `File ` + file . name + $localize ` processed. ` ,
57+ $localize `File ` + file . name + $localize ` processed.` ,
5958 $localize `Great!` ,
6059 { timeOut : 10000 } ,
6160 ) ;
6261 } )
6362 . catch ( ( err ) => {
6463 this . toastr . error (
65- $localize `Font
66- ${ file . name } could not be processed ` ,
64+ $localize `File ` + file . name + $localize ` could not be processed.` ,
6765 err ,
6866 { timeOut : 2000 } ,
6967 ) ;
@@ -75,9 +73,8 @@ export class WcStylingComponent implements OnDestroy, OnInit {
7573 if ( file . size > 1048576 ) {
7674 //1MB
7775 this . toastr . error (
78- $localize `File
79- ${ file . name } could not be processed ` ,
80- $localize `File is too big` ,
76+ $localize `File ` + file . name + $localize ` could not be processed.` ,
77+ $localize `File is too big.` ,
8178 { timeOut : 2000 } ,
8279 ) ;
8380
@@ -93,15 +90,15 @@ export class WcStylingComponent implements OnDestroy, OnInit {
9390 this . toastr . success (
9491 $localize `File ` +
9592 file . name +
96- $localize ` processed. Content added to the text box.` ,
93+ $localize ` processed.` +
94+ $localize ` Content loaded in the text box.` ,
9795 $localize `Great!` ,
9896 { timeOut : 10000 } ,
9997 ) ;
10098 } )
10199 . catch ( ( err ) => {
102100 this . toastr . error (
103- $localize `File
104- ${ file . name } could not be processed ` ,
101+ $localize `File ` + file . name + $localize ` could not be processed.` ,
105102 err ,
106103 { timeOut : 2000 } ,
107104 ) ;
0 commit comments