question

TonySchollum-7162 avatar image
1 Vote"
TonySchollum-7162 asked ajkuma-MSFT edited

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

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?

windows-serverazure-webappsdotnet-runtimefasttrack-azure
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

chunliu avatar image
1 Vote"
chunliu answered chunliu edited

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.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.