How to disable Localization in Windows.

Vaibhav Methuku 80 Reputation points
2024-06-11T10:08:29.73+00:00

Hello Team,

Currently my application configured with the different resx files. So when ever any change in the language in the device it automatically updates with the respective language. I want restrict that. On changes the language, changes should not reflect.

Operating system tested : Windows.

Thanks
Vaibhav Methuku.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,829 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Miguel Gonçalves 961 Reputation points
    2024-06-11T10:45:30.85+00:00

    HI,

    You can disable in windows (search for location). You can prevent automatic language updates based on the device’s language settings. Keep in mind that this will only apply to apps listed in the “Choose apps that can use your location” section.

    Other apps, such as browsers or desktop programs, may still determine your location using your IP address and other basic information


  2. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 34,556 Reputation points Microsoft Vendor
    2024-06-13T09:08:54.68+00:00

    Hello,

    There is a Platforms\Windows\Package.appxmanifest file of your MAUI project, you can edit the Resource to support English only. (Or other language)

    <Resources>
        <Resource Language="en-US"/>
    </Resources>
    

    For more details, please refer to Localization - .NET MAUI | Microsoft Learn

    Best Regards,

    Wenyan Zhang


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.