Skip to content

Commit

Permalink
improving StringLocalizer's GetString method
Browse files Browse the repository at this point in the history
  • Loading branch information
salaros committed Jul 17, 2018
1 parent 4ad99d7 commit f041803
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/StringLocalizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public string this[string str]
{
try
{
return resourceManager.GetString(str);
return resourceManager.GetString(str) ?? str;
}
catch
{
Expand Down

0 comments on commit f041803

Please sign in to comment.