Hangfire.Dashboard.Management
Hangfire.Dashboard.Management copied to clipboard
The status column stilly shows the Chinese language on the Recurring job dashboard.
I try to set the SetCulture
to the en-US, but the status column still shows the Chinese.
Could someone tell me how to edit its?
Project: ASP.NET 5 MVC web application Environment: Win 10 Pro Complier: Visual Studio 2019 IIS: local IIS Express Hangfire version 1.7.24
services.AddHangfire(configuration => configuration
.SetDataCompatibilityLevel(CompatibilityLevel.Version_170)
.UseSimpleAssemblyNameTypeSerializer()
.UseRecommendedSerializerSettings()
.UseSqlServerStorage(Configuration.GetConnectionString("HangfireConnection"), new SqlServerStorageOptions
{
CommandBatchMaxTimeout = TimeSpan.FromMinutes(5),
SlidingInvisibilityTimeout = TimeSpan.FromMinutes(5),
QueuePollInterval = TimeSpan.Zero,
UseRecommendedIsolationLevel = true,
DisableGlobalLocks = true
})
.UseDashboardMetric(DashboardMetrics.ServerCount)
.UseDashboardMetric(DashboardMetrics.RecurringJobCount)
.UseDashboardMetric(DashboardMetrics.RetriesCount)
.UseDashboardMetric(DashboardMetrics.EnqueuedAndQueueCount)
.UseDashboardMetric(DashboardMetrics.ScheduledCount)
.UseDashboardMetric(DashboardMetrics.ProcessingCount)
.UseDashboardMetric(DashboardMetrics.SucceededCount)
.UseDashboardMetric(DashboardMetrics.FailedCount)
.UseDashboardMetric(DashboardMetrics.DeletedCount)
.UseDashboardMetric(DashboardMetrics.AwaitingCount)
.UseConsole()
.UseManagementPages(p=>p
.AddJobs(() => GetModuleTypes())
.SetCulture(new System.Globalization.CultureInfo("en-US"))
)
);
I just did a PR to solve it: https://github.com/mccj/Hangfire.Dashboard.Management/pull/18