Hangfire.Dashboard.Management icon indicating copy to clipboard operation
Hangfire.Dashboard.Management copied to clipboard

The status column stilly shows the Chinese language on the Recurring job dashboard.

Open deadislove opened this issue 3 years ago • 1 comments

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"))                    
                    )                    
                );

image

deadislove avatar Jul 06 '21 09:07 deadislove

I just did a PR to solve it: https://github.com/mccj/Hangfire.Dashboard.Management/pull/18

agausachs avatar May 26 '22 16:05 agausachs