Skip to content

fix(plugin-ecommerce): preserve user i18n overrides in plugin namespace#16527

Open
nehaaprasaad wants to merge 1 commit intopayloadcms:mainfrom
nehaaprasaad:fix/plg-overwrit-ecom-namesp
Open

fix(plugin-ecommerce): preserve user i18n overrides in plugin namespace#16527
nehaaprasaad wants to merge 1 commit intopayloadcms:mainfrom
nehaaprasaad:fix/plg-overwrit-ecom-namesp

Conversation

@nehaaprasaad
Copy link
Copy Markdown

What?

  • Fix plugin-ecommerce i18n merging so user-provided translations under plugin-ecommerce are not overwritten during plugin config build.

Why?

  • Users cannot override plugin labels (for example cart) via top-level i18n.translations, because plugin defaults were being reassigned afterward.

How?

  • Keep the existing deep merge, then merge plugin-ecommerce locale defaults with existing locale values using deepMergeSimple(defaults, existing) so user values win on conflicts.

fix : #16502

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: plugin-ecommerce overwrites user i18n overrides in plugin-ecommerce namespace

1 participant