|
|
|
@ -146,10 +146,7 @@ namespace NzbDrone.Core.Localization
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
using (var fs = File.OpenRead(resourcePath))
|
|
|
|
|
{
|
|
|
|
|
if (fs != null)
|
|
|
|
|
{
|
|
|
|
|
await using var fs = File.OpenRead(resourcePath);
|
|
|
|
|
var dict = await JsonSerializer.DeserializeAsync<Dictionary<string, string>>(fs);
|
|
|
|
|
|
|
|
|
|
foreach (var key in dict.Keys)
|
|
|
|
@ -157,12 +154,6 @@ namespace NzbDrone.Core.Localization
|
|
|
|
|
dictionary[key] = dict[key];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
_logger.Error("Missing translation/culture resource: {0}", resourcePath);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private static string GetResourceFilename(string culture)
|
|
|
|
|
{
|
|
|
|
|