Skip to content

Commit 698feea

Browse files
authored
Merge pull request #201 from chihabhajji/patch-1
Globalized and abbreviated month names in dashboard
2 parents 92d2232 + 5e51cdd commit 698feea

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Client/Pages/Personal/Dashboard.razor.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using FSH.BlazorWebAssembly.Client.Infrastructure.ApiClient;
1+
using System.Globalization;
2+
using FSH.BlazorWebAssembly.Client.Infrastructure.ApiClient;
23
using FSH.BlazorWebAssembly.Client.Infrastructure.Notifications;
34
using FSH.BlazorWebAssembly.Client.Shared;
45
using FSH.WebApi.Shared.Notifications;
@@ -23,7 +24,7 @@ public partial class Dashboard
2324
[Inject]
2425
private ICourier Courier { get; set; } = default!;
2526

26-
private readonly string[] _dataEnterBarChartXAxisLabels = { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" };
27+
private readonly string[] _dataEnterBarChartXAxisLabels = DateTimeFormatInfo.CurrentInfo.AbbreviatedMonthNames;
2728
private readonly List<MudBlazor.ChartSeries> _dataEnterBarChartSeries = new();
2829
private bool _loaded;
2930

@@ -59,4 +60,4 @@ private async Task LoadDataAsync()
5960
}
6061
}
6162
}
62-
}
63+
}

0 commit comments

Comments
 (0)