fix(): Cart translation sync (#14327)

This commit is contained in:
Adrien de Peretti authored and GitHub committed 2025-12-17 10:07:17 +00:00
1 parent 21e3bdb8ae
commit 1743ed7f04
3 files changed
+7 -1

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
---
"@medusajs/core-flows": patch
---
fix(): Cart translation sync
@@ -84,7 +84,7 @@ export const updateCartItemsTranslationsStep = createStep(
try { try {
const isTranslationEnabled = FeatureFlag.isFeatureEnabled("translation") const isTranslationEnabled = FeatureFlag.isFeatureEnabled("translation")
if (!isTranslationEnabled || !data.locale) { if (!isTranslationEnabled) {
return new StepResponse(void 0, []) return new StepResponse(void 0, [])
} }
@@ -62,6 +62,7 @@ export function applyTranslationsToItems<
applyTranslation(itemAny, entity, key, translationKey) applyTranslation(itemAny, entity, key, translationKey)
} }
} }
itemAny.title = item.product_title ?? item.title
}) })
return item return item