Skip to content

Localization: Restores region-specific cultures#20939

Merged
iOvergaard merged 4 commits intorelease/17.0from
v17/bugfix/localization-manifest-for-regions
Nov 24, 2025
Merged

Localization: Restores region-specific cultures#20939
iOvergaard merged 4 commits intorelease/17.0from
v17/bugfix/localization-manifest-for-regions

Conversation

@leekelleher
Copy link
Member

@leekelleher leekelleher commented Nov 24, 2025

Description

In order to be backwards-compatible and support v13 upgradability (to v17), this pull request restores the region-specific cultures (that existed in v13).

For background on the original change, please see pull request #19258.

These region-specific cultures have been added as extension manifests only, they do not have any localization entries; as they will fallback on their non-region-specific (base) language localization entries.

Note

To note, I have removed the weight property, since the default weight for a localization extension is already 100 .
Also, I have removed the uiCultures section from the Vietnamese localization, as they duplicated English (fallback).

How to test?

Go to the user detail screen, see the UI Culture dropdown field, does it contain options for each language with/without region?

This is to support backwards-compatibility and v13 upgradability.
since it duplicated the English fallback texts.
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR restores region-specific culture variants (e.g., cs-CZ, da-DK, de-DE) to ensure backwards compatibility with Umbraco v13 and support upgradability to v17. The region-specific cultures are added as extension manifests without localization files, falling back to their base language localizations.

Key Changes:

  • Added 25 region-specific culture manifest entries for languages that had region variants in v13
  • Removed the weight property from all localization manifests and consolidated the meta property formatting
  • Updated the uiCulture section in en.ts to include display names for all region-specific cultures
  • Removed the uiCulture section from vi.ts (likely centralized to en.ts)

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/Umbraco.Web.UI.Client/src/packages/core/localization/manifests.ts Added 25 region-specific culture manifests (without JS imports) and reformatted all entries to remove weight and consolidate meta properties
src/Umbraco.Web.UI.Client/src/assets/lang/en.ts Added localized display names for all region-specific cultures in the uiCulture section, improved some existing language names (Hebrew, Romanian), and reformatted some long strings
src/Umbraco.Web.UI.Client/src/assets/lang/vi.ts Removed the uiCulture section (centralized to English base localization)

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@iOvergaard iOvergaard merged commit 2b7efbe into release/17.0 Nov 24, 2025
24 checks passed
@iOvergaard iOvergaard deleted the v17/bugfix/localization-manifest-for-regions branch November 24, 2025 13:41
iOvergaard pushed a commit that referenced this pull request Nov 24, 2025
* Adds localization manifests for region-specific cultures

This is to support backwards-compatibility and v13 upgradability.

* Removed `uiCulture` from Vietnamese localizations

since it duplicated the English fallback texts.

* 'en' localization file formatting

* Update src/Umbraco.Web.UI.Client/src/assets/lang/en.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
leekelleher added a commit that referenced this pull request Nov 24, 2025
* Adds localization manifests for region-specific cultures

This is to support backwards-compatibility and v13 upgradability.

* Removed `uiCulture` from Vietnamese localizations

since it duplicated the English fallback texts.

* 'en' localization file formatting

* Update src/Umbraco.Web.UI.Client/src/assets/lang/en.ts



---------

Co-authored-by: Lee Kelleher <leekelleher@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@umbracocommunity
Copy link

This pull request has been mentioned on Umbraco community forum. There might be relevant details there:

https://forum.umbraco.com/t/umbraco-17-issues-culture-mismatch-in-umbraco-17-after-upgrade-from-umbraco-13/6787/2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants