|
1
|
{"slug":"/references/helper-steps/getTranslatedLineItemsStep","title":"getTranslatedLineItemsStep - Helper Steps API Reference","frontmatter":{"slug":"/references/helper-steps/getTranslatedLineItemsStep","sidebar_label":"getTranslatedLineItemsStep"},"toc":[{"title":"Input","id":"gettranslatedlineitemsstep-input","level":2},{"title":"Output","id":"gettranslatedlineitemsstep-output","level":2}],"blocks":[{"kind":"markdown","html":"This documentation provides a reference to the `getTranslatedLineItemsStep` step. It belongs to the `@medusajs/medusa/core-flows` package."},{"kind":"markdown","html":"```ts title=\"src/workflows/my-workflow.ts\"\nimport { createWorkflow } from \"@medusajs/framework/workflows-sdk\"\nimport { getTranslatedLineItemsStep } from \"@medusajs/medusa/core-flows\"\n\nconst myWorkflow = createWorkflow(\n \"my-workflow\",\n () => {\n const data = getTranslatedLineItemsStep({\n \"items\": \"{value}\",\n \"variants\": [\n \"{value}\"\n ],\n \"locale\": \"{value}\"\n })\n }\n)\n```"},{"kind":"heading","level":2,"text":"Input","id":"gettranslatedlineitemsstep-input"},{"kind":"typeList","sectionTitle":"getTranslatedLineItemsStep","openedLevel":1,"types":[{"name":"GetTranslatedLineItemsStepInput","type":"[GetTranslatedLineItemsStepInput](/references/helper_steps/interfaces/helper_steps.GetTranslatedLineItemsStepInput)<T>","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]}]},{"kind":"heading","level":2,"text":"Output","id":"gettranslatedlineitemsstep-output"},{"kind":"typeList","sectionTitle":"getTranslatedLineItemsStep","openedLevel":1,"types":[{"name":"T[]","type":"T[]","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]}]}]} |