Skip to content

Commit da6f0c8

Browse files
authored
fix(cli): always push to target locales (#969)
Even if there are no localizable changes, there might be changes in unlocalizable keys or other meta data that needs to be reflected in target locales.
1 parent 894f3da commit da6f0c8

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.changeset/tidy-hats-explode.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"lingo.dev": patch
3+
---
4+
5+
run: always push to target locales

packages/cli/src/cli/cmd/run/execute.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,10 @@ function createWorkerTask(args: {
187187
.value();
188188

189189
if (!Object.keys(processableData).length) {
190+
await args.ioLimiter(async () => {
191+
// re-push in case some of the unlocalizable / meta data changed
192+
await bucketLoader.push(assignedTask.targetLocale, targetData);
193+
});
190194
return { status: "skipped" } satisfies CmdRunTaskResult;
191195
}
192196

0 commit comments

Comments
 (0)