Skip to content

Commit

Permalink
Fixed missing resource caching issue in ResourceManagerStringLocalizer
Browse files Browse the repository at this point in the history
  • Loading branch information
DamianEdwards committed May 7, 2015
1 parent 41fe215 commit ec8ede5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public IStringLocalizer WithCulture(CultureInfo culture)
/// <returns>The resource string, or <c>null</c> if none was found.</returns>
protected string GetStringSafely([NotNull] string name, [NotNull] CultureInfo culture)
{
var cacheKey = new MissingManifestCacheKey(name, culture);
var cacheKey = new MissingManifestCacheKey(name, culture ?? CultureInfo.CurrentUICulture);
if (_missingManifestCache.ContainsKey(cacheKey))
{
return null;
Expand Down

0 comments on commit ec8ede5

Please sign in to comment.