App service globalization culture="lv-lv"

Lauris 1 Reputation point
2021-07-29T10:45:57.613+00:00

Hi,

I recently migrated web app from premise to Azure App service. Today users reported that there is issue with currency label accross all site. After troubleshooting - I found out that if I set culture for application to "lv-lv" in web.config, like this:
<globalization uiCulture="lv" culture="lv-lv" requestEncoding="utf-8" responseEncoding="utf-8" />

Then OLD Latvia's currency "Lats" or "Ls" is displayed as currency.
The correct currency is "Euro".

How to solve this?

Best regards,
Lauris

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,635 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Grmacjon-MSFT 19,001 Reputation points
    2021-08-04T00:24:15.613+00:00

    Hello @Lauris ,

    We apologize deeply for the delay in response.

    If you're using ASP.NET 4.6, please try this in your web.config :

    <configuration>  
        <system.web>  
            <globalization uiCulture="lv" culture="lv-LV" />  
        </system.web>  
    </configuration>  
    

    or a second option would be to specify a handler in the Global.asax file which would set the Culture and UI Culture for each request:

     protected void Application_BeginRequest()  
        {  
            Thread.CurrentThread.CurrentCulture = new CultureInfo("lv");  
            Thread.CurrentThread.CurrentUICulture = new CultureInfo("lv");  
        }  
    

    If your app is running on ASP.NET 5 please read this documentation.

    Hope that helps. Please let us know if you have further questions.

    Thanks,
    Grace


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.