From fb35c47c702631a3967a64ef37879a97bb779084 Mon Sep 17 00:00:00 2001 From: Kevin Jump Date: Mon, 27 Jun 2022 12:29:27 +0100 Subject: [PATCH] Also read the plugin files using the content provider. (#12552) --- .../DependencyInjection/UmbracoBuilder.LocalizedText.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Umbraco.Web.BackOffice/DependencyInjection/UmbracoBuilder.LocalizedText.cs b/src/Umbraco.Web.BackOffice/DependencyInjection/UmbracoBuilder.LocalizedText.cs index 2d18905ee9..54e25240e0 100644 --- a/src/Umbraco.Web.BackOffice/DependencyInjection/UmbracoBuilder.LocalizedText.cs +++ b/src/Umbraco.Web.BackOffice/DependencyInjection/UmbracoBuilder.LocalizedText.cs @@ -37,6 +37,8 @@ namespace Umbraco.Extensions IFileProvider webFileProvider = webHostEnvironment.WebRootFileProvider; IFileProvider contentFileProvider = webHostEnvironment.ContentRootFileProvider; + IEnumerable localPluginFileSources = GetPluginLanguageFileSources(contentFileProvider, Cms.Core.Constants.SystemDirectories.AppPlugins, false); + // gets all langs files in /app_plugins real or virtual locations IEnumerable pluginLangFileSources = GetPluginLanguageFileSources(webFileProvider, Cms.Core.Constants.SystemDirectories.AppPlugins, false); @@ -50,7 +52,9 @@ namespace Umbraco.Extensions .SelectMany(x => x.GetFiles("*.user.xml", SearchOption.TopDirectoryOnly)) .Select(x => new LocalizedTextServiceSupplementaryFileSource(x, true)); - return pluginLangFileSources + return + localPluginFileSources + .Concat(pluginLangFileSources) .Concat(userLangFileSources); }