Skip to content

USF-3826#33

Merged
jaumecapdevila merged 4 commits intomainfrom
fix-lang
Mar 18, 2026
Merged

USF-3826#33
jaumecapdevila merged 4 commits intomainfrom
fix-lang

Conversation

@mcocapiza
Copy link

Summary

Fixes the Provider to merge user-provided langDefinitions with the drop-in's default definitions, enabling label/placeholder overrides via the initializer API.

Problem

The Provider passes only the bundled langDefinitions to UIProvider. User-provided values from config are never read or merged, so any custom label overrides passed through the initializer are silently ignored.

This affects all customers using the Template drop-in.

See USF-3826

Changes

  • Import config from '../api' and deepmerge from '@adobe-commerce/elsie/lib'
  • Read userLangDefinitions from config
  • Deep-merge user definitions with bundled defaults before passing to UIProvider

fnhipster
fnhipster previously approved these changes Mar 17, 2026
jaumecapdevila
jaumecapdevila previously approved these changes Mar 18, 2026
@jaumecapdevila jaumecapdevila merged commit df9d36c into main Mar 18, 2026
5 checks passed
@jaumecapdevila jaumecapdevila deleted the fix-lang branch March 18, 2026 09:06
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.

3 participants