Fixed missing resource caching issue in ResourceManagerStringLocalizer

This commit is contained in:
damianedwards 2015-05-07 10:32:59 -07:00
parent 41fe215027
commit ec8ede5d8a
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ namespace Microsoft.Framework.Localization
/// <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;