Support for English (United Arab Emirates) in Azure App Services or possibly VMs

Tony Schollum 11 Reputation points
2021-07-22T04:11:54.977+00:00

We have a customer in the UAE we would like to support.
They would like AED currency but English dates which are supported in the English (United Arab Emirates) locale.
It appears this locale is not yet available in Windows Server (other than v2004) which won't work for us in App Services or our current VM's.
Our application depends on the serving OS for it's available locales (System.Globalization.CultureInfo.GetCultures).
Perhaps we haven't followed best practice by depending on the underlying OS for this?

Developer technologies | .NET | .NET Runtime
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
9,011 questions
Windows for business | Windows Server | User experience | Other
Community Center | Not monitored
{count} votes

1 answer

Sort by: Most helpful
  1. Chun Liu 21 Reputation points
    2021-07-22T07:47:30.783+00:00

    You are right, according to this document, en-AE locale is only available on Windows 10/Server v2004 and later versions.

    So you might have 2 options here depending on where your application is deployed.

    1. If your application is deployed to VMs on which the OS is the older version of Windows, you can use this tool, Locale Builder 2.0, to build a custom locale for en-AE and install it on the VMs. You might not need to change your code in this way.
    2. If your application is deployed to App Service or other PaaS services on which you cannot deploy custom locales, you would want to consider moving your code to .NET 5. The globalization of .NET 5 uses ICU by default. You can use an app-local ICU which supports en-AE.

    Hope it helps. Thanks.

    4 people found this answer helpful.
    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.