Skip to content

Commit 538c40c

Browse files
author
Federico Mazzanti
committed
defaultValue set optionalMerge branch 'master' of https://github.com/fmazzant/Localization
2 parents 2de8fdf + 071e0ab commit 538c40c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Localization.Mvc/Localization.Mvc.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<NeutralLanguage>en</NeutralLanguage>
1414
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
1515
<PackageId>Mafe.Localization.Mvc</PackageId>
16-
<Version>1.0.2</Version>
16+
<Version>1.0.3</Version>
1717
</PropertyGroup>
1818

1919
<ItemGroup>

src/Localization.Mvc/Rendering/HtmlHelperLabelExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public static IHtmlContent TranslateLabelFor<TModel, TResult>(this IHtmlHelper<T
9696
/// an System.Collections.Generic.IDictionary`2 instance containing the HTML attributes.
9797
/// </param>
9898
/// <returns>A new Microsoft.AspNetCore.Html.IHtmlContent containing the <label> element.</returns>
99-
public static IHtmlContent TranslateLabel<TModel>(this IHtmlHelper<TModel> htmlHelper, string expression, string resourceKey, string defaultValue, object htmlAttributes = null)
99+
public static IHtmlContent TranslateLabel<TModel>(this IHtmlHelper<TModel> htmlHelper, string expression, string resourceKey, string defaultValue = null, object htmlAttributes = null)
100100
{
101101
var labelText = LocalizationManager.Translate(resourceKey, defaultValue ?? resourceKey);
102102
return htmlHelper.Label(expression, labelText, htmlAttributes);

0 commit comments

Comments
 (0)