1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-02 08:32:50 -05:00

set en-US as default current culture

This commit is contained in:
Kyle Spearrin
2019-07-11 15:03:17 -04:00
parent d61957d2de
commit 242e509b9d
10 changed files with 27 additions and 4 deletions

View File

@ -1,4 +1,5 @@
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Http;
@ -19,6 +20,11 @@ namespace Bit.Server
"/images/"
};
public Startup()
{
CultureInfo.DefaultThreadCurrentCulture = new CultureInfo("en-US");
}
public void ConfigureServices(IServiceCollection services)
{ }

View File

@ -3,6 +3,7 @@ using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Globalization;
using System.Net.Http;
namespace Bit.Setup
@ -13,6 +14,8 @@ namespace Bit.Setup
public static void Main(string[] args)
{
CultureInfo.DefaultThreadCurrentCulture = new CultureInfo("en-US");
_context = new Context
{
Args = args