Skip to content

Default UseLegacyPrimaryLanguageOverride to false #13704

Closed

Description

@Youssef1313

What would you like to be added

I think we can take this breaking change for Uno 5

@jeromelaban Do you agree?

cc @nickrandolph

Why is this needed

No response

For which platform

No response

Anything else we need to know?

No response

Activity

  1. added
    kind/enhancement
    triage/untriaged
    difficulty/tbd
    on Sep 20, 2023
  2. added
    difficulty/starter 🚀
    kind/breaking-change 💥
    and removed
    triage/untriaged
    difficulty/tbd
    on Oct 23, 2023
  3. changed the title [-]Default `UseLegacyPrimaryLanguageOverride` to `false` in Uno 5[/-] [+]Default `UseLegacyPrimaryLanguageOverride` to `false`[/+] on Jul 21, 2025
  4. MartinZikmund commented on Nov 8, 2026

    @MartinZikmund
    Member

    This was done in #23905, which removed UseLegacyPrimaryLanguageOverride altogether, so setting PrimaryLanguageOverride now always behaves as if the flag were false: the setter no longer changes the culture, and the override applies on the next app start (

    public static string? PrimaryLanguageOverride
    {
    get => _primaryLanguageOverride;
    set
    {
    value ??= string.Empty;
    if (_primaryLanguageOverride != value)
    {
    typeof(ApplicationLanguages).Log().LogDebug($"PLO: {_primaryLanguageOverride} -> {value}");
    _primaryLanguageOverride = value;
    // Only the language list follows immediately; the culture is applied on the next app start, as on WinUI.
    ApplyLanguages();
    #if !IS_UNIT_TESTS
    ApplicationData.Current.LocalSettings.Values[PrimaryLanguageOverrideSettingKey] = _primaryLanguageOverride;
    #endif
    }
    }
    }
    ). The change is on master and ships in 7.0, and the migration guide covers apps that relied on the immediate culture swap. If you still see a problem with this behaviour, please open a new issue.

    This was checked as part of an AI-assisted backlog review by reading the code, not by running it. If it looks wrong, please reply and we will take another look.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    difficulty/starter 🚀kind/breaking-change 💥kind/enhancementno-repro

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions