Skip to content

Commit 5509514

Browse files
authored
Grid summary - culture updates (#1075)
1 parent 6e16e95 commit 5509514

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

blazorbootstrap/Components/Grid/Grid.razor.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ private RenderFragment ChildSelectionTemplate(int rowIndex, TItem rowData) =>
355355
private CultureInfo GetCultureInfo()
356356
{
357357
if (string.IsNullOrWhiteSpace(Locale))
358-
return CultureInfo.InvariantCulture;
358+
return CultureInfo.CurrentCulture;
359359

360360
try
361361
{
@@ -910,11 +910,11 @@ private void SetFilters(IEnumerable<FilterItem> filterItems)
910910
/// <summary>
911911
/// Gets or sets the locale.
912912
/// <para>
913-
/// Default value is 'en-US'.
913+
/// Default value is <see langword="null"/>.
914914
/// </para>
915915
/// </summary>
916916
[Parameter]
917-
public string? Locale { get; set; } = "en-US";
917+
public string? Locale { get; set; }
918918

919919
/// <summary>
920920
/// This event is triggered when the user clicks on the row.

0 commit comments

Comments
 (0)