|
|
@ -46,11 +46,6 @@ namespace Volo.Abp.Localization |
|
|
|
|
|
|
|
|
private StringLocalizerCacheItem CreateStringLocalizerCacheItem(LocalizationResource resource) |
|
|
private StringLocalizerCacheItem CreateStringLocalizerCacheItem(LocalizationResource resource) |
|
|
{ |
|
|
{ |
|
|
using (var scope = _serviceProvider.CreateScope()) |
|
|
|
|
|
{ |
|
|
|
|
|
resource.FillDictionaries(scope.ServiceProvider); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (!resource.RegisteredToUpdate) |
|
|
if (!resource.RegisteredToUpdate) |
|
|
{ |
|
|
{ |
|
|
resource.RegisteredToUpdate = true; |
|
|
resource.RegisteredToUpdate = true; |
|
|
@ -64,6 +59,11 @@ namespace Volo.Abp.Localization |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
using (var scope = _serviceProvider.CreateScope()) |
|
|
|
|
|
{ |
|
|
|
|
|
resource.FillDictionaries(scope.ServiceProvider); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
return new StringLocalizerCacheItem( |
|
|
return new StringLocalizerCacheItem( |
|
|
new AbpDictionaryBasedStringLocalizer( |
|
|
new AbpDictionaryBasedStringLocalizer( |
|
|
resource, |
|
|
resource, |
|
|
|