Commit 56d0a47
fix(cli): guard against empty translations in PO loader push (#2000)
When a .po file section contains only obsolete entries or no
translations, Object.keys() on undefined csEntries throws a TypeError.
Add guards to skip sections with empty translations in the
currentSections.find() callback, matching the existing pattern used
in the outer map.
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 588d3d8 commit 56d0a47
File tree
2 files changed
+11
-0
lines changed- .changeset
- packages/cli/src/cli/loaders/po
2 files changed
+11
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
70 | 73 | | |
71 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
72 | 78 | | |
73 | 79 | | |
74 | 80 | | |
| |||
0 commit comments