Commit 7490077
authored
fix[plugin][smartling]: ENG-10907 smartling fixes (#4208)
## Description
Fixes in this PR:
1. Add a "View job in smartling" button on the job menu
2. Fix the webhook not updating when re-loading the plugin
3. Fix the content api query issue
4. Fix the nested symbol data not going for translation
**Loom**
https://www.loom.com/share/f8b2a75c4e234bbdbae3008f8a345ed0
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Adds a Smartling job view action, updates webhooks when URLs change,
fixes content picker query, includes nested symbols in translation jobs,
and improves localized value extraction in utils.
>
> - **Smartling Plugin**:
> - **Job UI**: Add "View job in smartling" action that opens the job in
Smartling using `projectId:translationJobUid`.
> - **Webhooks**: Update model webhook whenever the URL differs from the
template.
> - **Content Picker**: Query updated to `published or draft` for job
selection.
> - **Translation Jobs**:
> - Update existing jobs to include recursively discovered nested
`Symbol` references and avoid duplicates.
> - New jobs also recursively include nested symbols during creation.
> - **Utils** (`packages/utils/src/translation-helpers.ts`):
> - When encountering `@builder.io/core:LocalizedValue`, store string
values directly and recurse into arrays/objects to collect nested
localized values.
> - **Dependencies**:
> - Bump `@builder.io/utils` to `1.1.26` and
`@builder.io/plugin-smartling` to `0.0.23-11`.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
35ce193. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent 1304e3e commit 7490077
File tree
7 files changed
+218
-123
lines changed- packages/utils
- src
- plugins/smartling
- src
7 files changed
+218
-123
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
66 | 83 | | |
67 | 84 | | |
68 | 85 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
| 128 | + | |
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
216 | | - | |
| 216 | + | |
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
220 | | - | |
221 | | - | |
| 220 | + | |
| 221 | + | |
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
| |||
649 | 649 | | |
650 | 650 | | |
651 | 651 | | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
652 | 707 | | |
653 | 708 | | |
654 | 709 | | |
| |||
873 | 928 | | |
874 | 929 | | |
875 | 930 | | |
876 | | - | |
877 | | - | |
878 | | - | |
879 | | - | |
880 | | - | |
881 | | - | |
882 | | - | |
| 931 | + | |
883 | 932 | | |
884 | 933 | | |
885 | 934 | | |
| |||
0 commit comments