Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/little-nails-notice.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@lingo.dev/_sdk": patch
---

Remove unused workflowId parameter from internal localizeChunk method
4 changes: 0 additions & 4 deletions packages/sdk/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ export class LingoDotDevEngine {
const chunkedPayload = this.extractPayloadChunks(finalPayload);
const processedPayloadChunks: Record<string, string>[] = [];

const workflowId = createId();
for (let i = 0; i < chunkedPayload.length; i++) {
const chunk = chunkedPayload[i];
const percentageCompleted = Math.round(
Expand All @@ -87,7 +86,6 @@ export class LingoDotDevEngine {
finalParams.sourceLocale,
finalParams.targetLocale,
{ data: chunk, reference: params.reference, hints: params.hints },
workflowId,
params.fast || false,
params.filePath,
params.triggerType,
Expand All @@ -109,7 +107,6 @@ export class LingoDotDevEngine {
* @param sourceLocale - Source locale
* @param targetLocale - Target locale
* @param payload - Payload containing the chunk to be localized
* @param workflowId - Workflow ID for tracking
* @param fast - Whether to use fast mode
* @param filePath - Optional file path for metadata
* @param triggerType - Optional trigger type
Expand All @@ -124,7 +121,6 @@ export class LingoDotDevEngine {
reference?: Z.infer<typeof referenceSchema>;
hints?: Z.infer<typeof hintsSchema>;
},
workflowId: string,
fast: boolean,
filePath?: string,
triggerType?: "cli" | "ci",
Expand Down