File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -460,7 +460,7 @@ const initializeSmartlingPlugin = async () => {
460460 }
461461 const element = selectedElements [ 0 ] ;
462462 const isExcluded = element . meta ?. get ( transcludedMetaKey ) ;
463- return element . component ?. name === 'Text' && ! isExcluded ;
463+ return ! isExcluded ;
464464 } ,
465465 onClick ( elements ) {
466466 elements . forEach ( el => el . meta . set ( 'excludeFromTranslation' , true ) ) ;
@@ -476,7 +476,7 @@ const initializeSmartlingPlugin = async () => {
476476 }
477477 const element = selectedElements [ 0 ] ;
478478 const isExcluded = element . meta ?. get ( transcludedMetaKey ) ;
479- return element . component ?. name === 'Text' && isExcluded ;
479+ return isExcluded ;
480480 } ,
481481 onClick ( elements ) {
482482 elements . forEach ( el => el . meta . set ( 'excludeFromTranslation' , false ) ) ;
You can’t perform that action at this time.
0 commit comments