Skip to content

Commit

Permalink
pluginLangFileSources includes the localPluginFileSources
Browse files Browse the repository at this point in the history
  • Loading branch information
elit0451 committed Oct 14, 2022
1 parent 4b62c59 commit 712810e
Showing 1 changed file with 1 addition and 4 deletions.
Expand Up @@ -37,8 +37,6 @@ private static IUmbracoBuilder AddSupplemenataryLocalizedTextFileSources(this IU
IFileProvider webFileProvider = webHostEnvironment.WebRootFileProvider;
IFileProvider contentFileProvider = webHostEnvironment.ContentRootFileProvider;

IEnumerable<LocalizedTextServiceSupplementaryFileSource> localPluginFileSources = GetPluginLanguageFileSources(contentFileProvider, Cms.Core.Constants.SystemDirectories.AppPlugins, false);

// gets all langs files in /app_plugins real or virtual locations
IEnumerable<LocalizedTextServiceSupplementaryFileSource> pluginLangFileSources = GetPluginLanguageFileSources(webFileProvider, Cms.Core.Constants.SystemDirectories.AppPlugins, false);

Expand All @@ -53,8 +51,7 @@ private static IUmbracoBuilder AddSupplemenataryLocalizedTextFileSources(this IU
.Select(x => new LocalizedTextServiceSupplementaryFileSource(x, true));

return
localPluginFileSources
.Concat(pluginLangFileSources)
pluginLangFileSources
.Concat(userLangFileSources);
}

Expand Down

0 comments on commit 712810e

Please sign in to comment.