Skip to content

Commit

Permalink
Localize option text
Browse files Browse the repository at this point in the history
  • Loading branch information
wakuflair committed Oct 31, 2020
1 parent 97ec1d6 commit e53e15d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
@using EasyAbp.Abp.SettingUi
@using EasyAbp.Abp.SettingUi.Localization
@using Microsoft.AspNetCore.Mvc.Localization
@model EasyAbp.Abp.SettingUi.Web.Pages.Components.SettingHtmlInfo
@inject IHtmlLocalizer<SettingUiResource> L

@{
string optionStr;
Expand All @@ -21,6 +24,6 @@
@foreach (var option in optionStr.Split(SettingUiConst.OptionsSeparator))
{
string selected = option == Model.Value ? "selected" : "";
<!option value="@option" @selected>@option</!option>
<!option value="@option" @selected>@L[option].Value</!option>
}
</select>

0 comments on commit e53e15d

Please sign in to comment.