We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 168e19d commit 707f55aCopy full SHA for 707f55a
1 file changed
src/components/BootstrapBlazor.UniverSheet/Components/UniverSheet.razor.cs
@@ -3,6 +3,7 @@
3
// Website: https://www.blazor.zone or https://argozhang.github.io/
4
5
using Microsoft.AspNetCore.Components;
6
+using System.Globalization;
7
8
namespace BootstrapBlazor.Components;
9
@@ -47,6 +48,16 @@ public partial class UniverSheet
47
48
49
private UniverSheetData? _lastData;
50
51
+ /// <summary>
52
+ /// <inheritdoc/>
53
+ /// </summary>
54
+ protected override void OnParametersSet()
55
+ {
56
+ base.OnParametersSet();
57
+
58
+ Lang ??= CultureInfo.CurrentUICulture.Name;
59
+ }
60
61
/// <summary>
62
/// <inheritdoc/>
63
/// </summary>
0 commit comments