still diving in your code, the following statements seems not to be of any use:
var assemblyLocation = Path.GetDirectoryName(assembly.Location);
// Get all directories named like a specific culture.
var dirs = Directory.GetDirectories(assemblyLocation, "??-??").ToList();
// Get all directories named like a culture.
(found in ResxLocalizationProviderBase, Lines 361-366)
is never used after having been assigned all Directories matching Culture Names:
// Get the list of all cultures.
var cultures = CultureInfo.GetCultures(CultureTypes.AllCultures);
foreach (var c in cultures)
var dir = Path.Combine(assemblyLocation, c.Name);
if (Directory.Exists(dir) && Directory.GetFiles(dir, "*.resources.dll").Length > 0)
Thanks for reviewing.