Skip to content

Language ID does not reflect actual language after default language change #561

@CapiauD

Description

@CapiauD

When the default language is changed in the system settings, the LanguageId is not updated to reflect the new default language. This causes a mismatch between the displayed language name and its underlying identifier, leading to confusion when querying or managing languages via SQL or the API.

Steps to reproduce
Navigate to Settings - Languages.
Change the default language (e.g. from English to Dutch Belgium).
Observe the language overview: the name reflects the new default, but the Language ID still shows the old value (ENU instead of NLB).
Run SELECT * FROM EcomLanguages - the ID mismatch is confirmed in the database.

Impact
Developers querying EcomLanguages by ID receive misleading results.
Manual SQL corrections are required to realign the data.
Risk of incorrect language being served to end users if logic relies on Language ID.

Proposed solution
When the default language is changed in the CMS settings, the system should either (a) update the LanguageId in EcomLanguages to match the newly selected default language, or (b) display a clear warning in the UI that the Language ID and the selected language name no longer correspond.

Image

Metadata

Metadata

Assignees

Labels

PlatformFor items related to the entire platform

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions