From 34b9903b15daa9520b558d52e5e0530d4d28a456 Mon Sep 17 00:00:00 2001 From: hishamco Date: Mon, 19 Oct 2020 12:16:35 +0300 Subject: [PATCH] Localize ActionLink --- Oqtane.Client/Modules/Controls/ActionLink.razor | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Oqtane.Client/Modules/Controls/ActionLink.razor b/Oqtane.Client/Modules/Controls/ActionLink.razor index a4bcba0f..da02221c 100644 --- a/Oqtane.Client/Modules/Controls/ActionLink.razor +++ b/Oqtane.Client/Modules/Controls/ActionLink.razor @@ -1,5 +1,5 @@ -@namespace Oqtane.Modules.Controls -@inherits ModuleControlBase +@namespace Oqtane.Modules.Controls +@inherits LocalizableComponent @inject IUserService UserService @if (_authorized) @@ -56,6 +56,8 @@ protected override void OnParametersSet() { + base.OnParametersSet(); + _text = Action; if (!string.IsNullOrEmpty(Text)) { @@ -93,6 +95,7 @@ } + _text = Localize(nameof(Text)); _url = EditUrl(Action, _parameters); _authorized = IsAuthorized(); }