ASP .NET Core i18n notes

ASP .NET Core i18n notes

Notes on internationalization in ASP .NET Core applications Oct 7, 2017


DotNet Core is basically a console app running on the host os.

On Windows the regional setting affects the CultureInfo.CurrentCulture value in a console app.

using System;
using System.Globalization;

namespace Mosaic
{
    class Program
    {
        static void Main(string[] args)
        {
            
            Console.WriteLine(CultureInfo.CurrentCulture);
            Console.ReadLine();
        }
    }
}

This will display en-US if your regional settings on Windows is set to English US.

PlaceholderThumbnail