diff --git a/Oqtane.Client/Modules/Controls/Section.razor b/Oqtane.Client/Modules/Controls/Section.razor index 02fab969..573a536b 100644 --- a/Oqtane.Client/Modules/Controls/Section.razor +++ b/Oqtane.Client/Modules/Controls/Section.razor @@ -1,5 +1,5 @@ -@namespace Oqtane.Modules.Controls -@inherits ModuleControlBase +@namespace Oqtane.Modules.Controls +@inherits LocalizableComponent
@@ -41,4 +41,16 @@ _heading = (!string.IsNullOrEmpty(Heading)) ? Heading : Name; _expanded = (!string.IsNullOrEmpty(Expanded)) ? Expanded : "false"; } + + protected override void OnParametersSet() + { + base.OnParametersSet(); + + if (IsLocalizable) + { + _heading = !string.IsNullOrEmpty(Heading) + ? Localize(nameof(Heading)) + : Localize(nameof(Name)); + } + } }