Simplify normalized entity by moving "default" under "translation"

Created on 24 December 2023, over 1 year ago
Updated 28 December 2023, over 1 year ago

Problem/Motivation

The structure of a normalized entity YAML is a little bit hard to read. Why is the default language filled under default while all other translations are under translations? What I'm missing here?

Proposed resolution

  • Move default section under translations keyed as LanguageInterface::LANGCODE_DEFAULT
  • Provide BC for YAMLs with current structure
  • Fire a deprecation error & log warning when importing YAMLs with old structure

Remaining tasks

None.

User interface changes

None.

API changes

None.

Data model changes

Normalized entity root default key is moved under translations as x-default

Feature request
Status

Closed: won't fix

Version

2.0

Component

Code

Created by

🇷🇴Romania claudiu.cristea Arad 🇷🇴

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

Comments & Activities

Production build 0.71.5 2024