fix(): Cart translation sync (#14327)

This commit is contained in:
Adrien de Peretti
2025-12-17 11:07:17 +01:00
committed by GitHub
parent 21e3bdb8ae
commit 1743ed7f04
3 changed files with 7 additions and 1 deletions

View File

@@ -84,7 +84,7 @@ export const updateCartItemsTranslationsStep = createStep(
try {
const isTranslationEnabled = FeatureFlag.isFeatureEnabled("translation")
if (!isTranslationEnabled || !data.locale) {
if (!isTranslationEnabled) {
return new StepResponse(void 0, [])
}

View File

@@ -62,6 +62,7 @@ export function applyTranslationsToItems<
applyTranslation(itemAny, entity, key, translationKey)
}
}
itemAny.title = item.product_title ?? item.title
})
return item