Add column_groups to the Address field type

Created on 10 December 2020, over 3 years ago
Updated 17 January 2024, 5 months ago

Problem/Motivation

The address field type has many columns and the field translatability is either all of them or none of them. For example, there are many use cases in which the country code or postal code does not need to be translated. Only, the street name or city name if bilingual.

The Drupal content translation system provides the possibility to make translatable only certain columns in the field (see ImageItem for example and the column_groups in the annotation). Adding the column_groups to the definition makes each individual columns togglable on the content translation settings form.

Steps to reproduce

Making an address field transltable doesn't allow to specify which columns yes and which no.

Proposed resolution

Each column receives its own configuration for translatability.

User interface changes

Each column receives its own configuration for translatability and a checkbox to control this on the content translation settings form.

API changes

None.

Data model changes

None.

Feature request
Status

Fixed

Version

2.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024