1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-22 12:15:36 +01: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;
using System.Globalization;
using Bit.Core;
using Bit.Core.Identity;
using Bit.Core.Utilities;
@ -19,6 +20,7 @@ namespace Bit.Admin
{
public Startup(IHostingEnvironment env, IConfiguration configuration)
{
CultureInfo.DefaultThreadCurrentCulture = new CultureInfo("en-US");
Configuration = configuration;
Environment = env;
}

View File

@ -13,7 +13,7 @@ using Serilog.Events;
using Stripe;
using Bit.Core.Utilities;
using IdentityModel;
using Microsoft.AspNetCore.HttpOverrides;
using System.Globalization;
namespace Bit.Api
{
@ -21,6 +21,7 @@ namespace Bit.Api
{
public Startup(IHostingEnvironment env, IConfiguration configuration)
{
CultureInfo.DefaultThreadCurrentCulture = new CultureInfo("en-US");
Configuration = configuration;
Environment = env;
}

View File

@ -10,8 +10,8 @@ using Bit.Core.Utilities;
using Serilog.Events;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.DependencyInjection.Extensions;
using Bit.Core.Identity;
using Microsoft.AspNetCore.Routing;
using System.Globalization;
namespace Bit.Billing
{
@ -19,6 +19,7 @@ namespace Bit.Billing
{
public Startup(IConfiguration configuration)
{
CultureInfo.DefaultThreadCurrentCulture = new CultureInfo("en-US");
Configuration = configuration;
}

View File

@ -1,4 +1,5 @@
using Bit.Core;
using System.Globalization;
using Bit.Core;
using Bit.Core.Services;
using Bit.Core.Utilities;
using IdentityModel;
@ -15,6 +16,7 @@ namespace Bit.Events
{
public Startup(IHostingEnvironment env, IConfiguration configuration)
{
CultureInfo.DefaultThreadCurrentCulture = new CultureInfo("en-US");
Configuration = configuration;
Environment = env;
}

View File

@ -1,4 +1,5 @@
using Microsoft.AspNetCore.Builder;
using System.Globalization;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
@ -10,6 +11,7 @@ namespace Bit.EventsProcessor
{
public Startup(IHostingEnvironment env, IConfiguration configuration)
{
CultureInfo.DefaultThreadCurrentCulture = new CultureInfo("en-US");
Configuration = configuration;
Environment = env;
}

View File

@ -1,4 +1,5 @@
using System;
using System.Globalization;
using Bit.Core;
using Bit.Core.Utilities;
using Bit.Icons.Services;
@ -17,6 +18,7 @@ namespace Bit.Icons
{
public Startup(IConfiguration configuration)
{
CultureInfo.DefaultThreadCurrentCulture = new CultureInfo("en-US");
Configuration = configuration;
}

View File

@ -8,6 +8,7 @@ using Bit.Core;
using Bit.Core.Utilities;
using Serilog.Events;
using AspNetCoreRateLimit;
using System.Globalization;
namespace Bit.Identity
{
@ -15,6 +16,7 @@ namespace Bit.Identity
{
public Startup(IHostingEnvironment env, IConfiguration configuration)
{
CultureInfo.DefaultThreadCurrentCulture = new CultureInfo("en-US");
Configuration = configuration;
Environment = env;
}

View File

@ -1,4 +1,5 @@
using System.Collections.Generic;
using System.Globalization;
using Bit.Core;
using Bit.Core.Utilities;
using IdentityModel;
@ -17,6 +18,7 @@ namespace Bit.Notifications
{
public Startup(IHostingEnvironment env, IConfiguration configuration)
{
CultureInfo.DefaultThreadCurrentCulture = new CultureInfo("en-US");
Configuration = configuration;
Environment = env;
}

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