Refactor LocalizableComponent

This commit is contained in:
hishamco
2020-12-08 16:37:55 +03:00
parent d953587e4b
commit df1d646083
6 changed files with 33 additions and 56 deletions

View File

@ -95,11 +95,7 @@
}
if (IsLocalizable)
{
_text = Localize(nameof(Text), _text);
}
_text = Localize(nameof(Text), _text);
_url = EditUrl(Action, _parameters);
_authorized = IsAuthorized();
}