Skip to content

Conversation

@anaghav2023
Copy link
Contributor

@anaghav2023 anaghav2023 commented Oct 28, 2025

Description

If we make changes to a content entry and re-add to existing job, it was adding it twice

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


Note

Adds Core:Button text to translation extraction/application and updates Smartling job updates to skip existing entries (and duplicate symbols), plus adjusts Smartling strings link; bumps versions.

  • Utils (@builder.io/utils):
    • Translation helpers: extract/apply Core:Button text like Text components.
    • Tests: add cases for buttons with plain and localized text.
    • Config: set tsconfig.json types to empty; bump version to 1.1.25.
  • Smartling Plugin:
    • Job updates: filter out content already in job; only process new entries and avoid duplicate symbols; compute counts against new set.
    • UI: change "View translation strings" URL to filter by content ID across jobs.
    • Dependencies/versions: pin @builder.io/utils to 1.1.25 and bump plugin to 0.0.23-9.

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

@changeset-bot
Copy link

changeset-bot bot commented Oct 28, 2025

⚠️ No Changeset found

Latest commit: 2894710

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 Oct 28, 2025

🤖 Nx Cloud AI Fix Eligible

An automatically generated fix could have helped fix failing tasks for this run, but Self-healing CI is disabled for this workspace. Visit workspace settings to enable it and get automatic fixes in future runs.

To disable these notifications, a workspace admin can disable them in workspace settings.


View your CI Pipeline Execution ↗ for commit 2894710

Command Status Duration Result
nx test @snippet/angular-17 ❌ Failed 4m 55s View ↗
nx test @snippet/angular-17-ssr ❌ Failed 4m 46s View ↗
nx test @snippet/svelte ❌ Failed 2m 57s View ↗
nx test @snippet/vue ❌ Failed 1m 33s View ↗
nx test @snippet/react ❌ Failed 1m 44s View ↗
nx test @e2e/nuxt ✅ Succeeded 9m 14s View ↗
nx test @e2e/qwik-city ✅ Succeeded 9m 23s View ↗
nx test @e2e/gen1-next15-app ✅ Succeeded 7m 41s View ↗
Additional runs (37) ✅ Succeeded ... View ↗

☁️ Nx Cloud last updated this comment at 2025-11-04 15:15:51 UTC

const existingEntryIds = new Set((latestDraft.data.entries || []).map((entry: any) => entry.content?.id));

// Filter out content that already exists in the job
const newContent = content.filter(c => !existingEntryIds.has(c.id));
Copy link
Contributor

Choose a reason for hiding this comment

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

question:
Curious Q: what happens when the smartling job is being processed and we update the content during that time ? Do we have to schedule new job ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That could cause issues, not handling that right now. It would be a new feature request.

};

const symbolCount = allContent.length - content.length;
const symbolCount = allContent.length - newContent.length;
Copy link
Contributor

Choose a reason for hiding this comment

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

question:
Won't allContent and newContent will always have same length here ?

Copy link
Contributor Author

@anaghav2023 anaghav2023 Oct 28, 2025

Choose a reason for hiding this comment

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

If you check the code above allContent is getting updated. We add symbols to it

cursor[bot]

This comment was marked as outdated.

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