Skip to content

Conversation

@midhunadarvin
Copy link
Contributor

@midhunadarvin midhunadarvin commented Feb 4, 2026

…ude blocks, edit/add/delete string instructions (#4218)"

This reverts commit 8bcaa92.

Description

Add a short description of what changes you made, why you made them, and any other context that you think might be helpful for someone to better understand what is contained in this pull request. This sort of information is useful for people reviewing the code, as well as anyone from the future trying to understand why changes were made or why a bug started happening.

Screenshot
If relevant, add a screenshot or two of the changes you made.


Note

Medium Risk
Changes affect translation string extraction/application and remove Smartling editor actions, which can alter what content gets sent for translation and what controls users have in the UI; behavior changes should be verified on real content with nested excluded blocks and symbols.

Overview
Reverts prior Smartling/translation changes by downgrading package versions (@builder.io/utils to 1.1.27, Smartling plugin to 0.0.23-11, and Smartling’s @builder.io/utils dependency), updating lockfiles accordingly.

In translation-helpers, removes the “excluded block depth” traversal logic; exclusion now only checks el.meta.excludeFromTranslation on the Text/Core:Button element itself (and no longer gates Symbol or localizedTextInputs processing), with Jest snapshots updated to match the new extraction behavior.

In the Smartling plugin, removes the enableVisualContextCapture setting, limits “Exclude/Include from future translations” context menu actions to Text components, and removes the context menu actions for adding/editing/deleting per-string translation instructions.

Written by Cursor Bugbot for commit 0d1bbff. This will update automatically on new commits. Configure here.

…ude blocks, edit/add/delete string instructions (#4218)"

This reverts commit 8bcaa92.
@changeset-bot
Copy link

changeset-bot bot commented Feb 4, 2026

⚠️ No Changeset found

Latest commit: 0d1bbff

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@nx-cloud
Copy link

nx-cloud bot commented Feb 4, 2026

View your CI Pipeline Execution ↗ for commit 0d1bbff

Command Status Duration Result
nx test @builder.io/sdks ✅ Succeeded 12s View ↗
nx build @builder.io/sdk ✅ Succeeded 12s View ↗
nx typecheck @builder.io/sdks ✅ Succeeded 6s View ↗
nx test @builder.io/sdk ✅ Succeeded 5s View ↗

☁️ Nx Cloud last updated this comment at 2026-02-04 10:41:52 UTC

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 4 potential issues.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

}
}

if (el && el.id && el.component?.name === 'Symbol'&& !isExcluded) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nested blocks ignore parent's translation exclusion setting

High Severity

The hierarchical excludedDepth tracking for translation exclusion was removed. Previously, when a parent block was marked with excludeFromTranslation, all its children would automatically be excluded. Now children only check their own meta.excludeFromTranslation property, ignoring the parent's exclusion setting. This causes nested elements to be incorrectly sent for translation even when their container is explicitly excluded.

Additional Locations (1)

Fix in Cursor Fix in Web

}

if (el && el.id && el.component?.name === 'Symbol'&& !isExcluded) {
if (el && el.id && el.component?.name === 'Symbol') {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Symbol and custom components ignore exclusion entirely

Medium Severity

The excludeFromTranslation check was completely removed from Symbol components and custom components with localizedTextInputs. These component types will now always be included in translation regardless of any exclusion setting, unlike Text and Core:Button components which still check for exclusion.

Additional Locations (1)

Fix in Cursor Fix in Web

},
}
`;

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test snapshot mismatch for button translation extraction

Medium Severity

The snapshot removes expected entries for blocks.button-localized-text-id#text and blocks.button-plain-text-id#text, but the actual code in translation-helpers.ts still contains Core:Button handling logic that extracts button text. The test data includes button components that will be extracted by the code, causing the snapshot test to fail.

Fix in Cursor Fix in Web

},
"dependencies": {
"@builder.io/utils": "1.1.29",
"@builder.io/utils": "1.1.26",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dependency version mismatch between package.json and lockfile

Medium Severity

The @builder.io/utils dependency version in package.json is 1.1.26 but the package-lock.json locks to 1.1.25-2. These versions don't match, and neither corresponds to the actual utils package version (1.1.27). This inconsistency can cause unpredictable build behavior depending on whether npm uses the lockfile or resolves fresh.

Additional Locations (1)

Fix in Cursor Fix in Web

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants