fix module template issues

This commit is contained in:
Shaun Walker
2021-06-17 12:12:19 -04:00
parent f330c4fcb6
commit 32c49f74d3
6 changed files with 15 additions and 17 deletions

View File

@ -12,7 +12,7 @@ namespace Microsoft.Extensions.Localization
public static string GetString(this IStringLocalizer localizer, string key, string value)
{
string localizedValue = localizer[key];
if (localizedValue == key) // not localized
if (localizedValue == key && !string.IsNullOrEmpty(value)) // not localized
{
localizedValue = value;
}