Skip to content

Commit b2f99ba

Browse files
committed
extra checks
1 parent 4544824 commit b2f99ba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/utils/src/translation-helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ export function applyTranslation(
317317

318318
if (blocks) {
319319
traverse(blocks).forEach(function (el) {
320-
if (el && el.id && el.component?.name === 'Symbol') {
320+
if (el && el.id && el.component?.name === 'Symbol' && !el.meta?.excludeFromTranslation) {
321321
const symbolInputs = Object.entries(el.component?.options?.symbol?.data) || [];
322322
if (symbolInputs.length) {
323323
const transformedMeta = {};

plugins/smartling/src/plugin.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ const initializeSmartlingPlugin = async () => {
534534
}
535535
const element = elements[0];
536536
const instructions = element.meta?.get('instructions');
537-
if (instructions) {
537+
if (instructions !== undefined) {
538538
const newInstructions = await appState.dialogs.prompt({
539539
placeholderText: 'Enter new string instructions for translation',
540540
defaultValue: instructions,

0 commit comments

Comments
 (0)