diff --git a/.changeset/little-nails-notice.md b/.changeset/little-nails-notice.md new file mode 100644 index 000000000..8bed7d64e --- /dev/null +++ b/.changeset/little-nails-notice.md @@ -0,0 +1,5 @@ +--- +"@lingo.dev/_sdk": patch +--- + +Remove unused workflowId parameter from internal localizeChunk method diff --git a/packages/sdk/src/index.ts b/packages/sdk/src/index.ts index 24139cf7f..b140131a7 100644 --- a/packages/sdk/src/index.ts +++ b/packages/sdk/src/index.ts @@ -76,7 +76,6 @@ export class LingoDotDevEngine { const chunkedPayload = this.extractPayloadChunks(finalPayload); const processedPayloadChunks: Record[] = []; - const workflowId = createId(); for (let i = 0; i < chunkedPayload.length; i++) { const chunk = chunkedPayload[i]; const percentageCompleted = Math.round( @@ -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, @@ -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 @@ -124,7 +121,6 @@ export class LingoDotDevEngine { reference?: Z.infer; hints?: Z.infer; }, - workflowId: string, fast: boolean, filePath?: string, triggerType?: "cli" | "ci",