Skip to content

Commit ee29448

Browse files
committed
minor
1 parent 9f092eb commit ee29448

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/smartling/src/plugin.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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));

0 commit comments

Comments
 (0)