[Feature request] Localize nested Address element values per site #19485
Unanswered
romainpoirier
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Problem
On a multilingual Craft CMS site, an Addresses field can be configured with the site translation method, but the values of its nested native Address element cannot be maintained independently per site.
This includes the native address attributes that editors see in the Address UI, such as:
This is useful when the same physical address needs language-specific presentation, such as an organization name, a localized/transliterated locality, or editorial address lines.
Current behavior
Addresses also support custom fields through the shared Address field layout. The request should define and document the expected behavior for those custom fields as well: they should either follow the selected shared/per-site Address mode, or clearly document any separate translation-method rules. The request does not assume that custom fields currently behave identically to native Address attributes.
Expected behavior
Please consider an explicit, backwards-compatible localization mode for Addresses that allows nested Address values to be localized per site when the owner and field are configured for it, while preserving the current shared-value behavior by default.
The implementation should preserve:
A possible UI could expose Shared and Per site modes, with clear rules for native fields and custom fields.
Documentation and source
Thank you for considering this for multilingual sites.
All reactions