From 08b8f42c25bc9068c423bb98ebe06d2f30457608 Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Thu, 1 May 2025 13:23:57 +0200 Subject: [PATCH] Fixed localization assistant file loading issue in the release app (#434) --- app/MindWork AI Studio/Assistants/I18N/AssistantI18N.razor.cs | 2 +- app/MindWork AI Studio/wwwroot/changelog/v0.9.42.md | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/MindWork AI Studio/Assistants/I18N/AssistantI18N.razor.cs b/app/MindWork AI Studio/Assistants/I18N/AssistantI18N.razor.cs index 93284c3f..9501c984 100644 --- a/app/MindWork AI Studio/Assistants/I18N/AssistantI18N.razor.cs +++ b/app/MindWork AI Studio/Assistants/I18N/AssistantI18N.razor.cs @@ -182,7 +182,7 @@ public partial class AssistantI18N : AssistantBaseCore var filePath = Path.Join(Environment.CurrentDirectory, "Assistants", "I18N"); var resourceFileProvider = new PhysicalFileProvider(filePath); #else - var resourceFileProvider = new ManifestEmbeddedFileProvider(Assembly.GetAssembly(type: typeof(Program))!, "Assistants.I18N"); + var resourceFileProvider = new ManifestEmbeddedFileProvider(Assembly.GetAssembly(type: typeof(Program))!, "Assistants/I18N"); #endif var file = resourceFileProvider.GetFileInfo("allTexts.lua"); diff --git a/app/MindWork AI Studio/wwwroot/changelog/v0.9.42.md b/app/MindWork AI Studio/wwwroot/changelog/v0.9.42.md index b90e2cf1..f472589e 100644 --- a/app/MindWork AI Studio/wwwroot/changelog/v0.9.42.md +++ b/app/MindWork AI Studio/wwwroot/changelog/v0.9.42.md @@ -1,3 +1,4 @@ # v0.9.42, build 217 (2025-05-xx xx:xx UTC) - Fixed an issue where empty lines in source code were being ignored by the Markdown renderer. Thanks My Nihongo for fixing this bug in the `MudBlazor.Markdown` repository. +- Fixed the localization assistant not being able to load the localization file when used in the release app. - Upgraded .NET dependencies. \ No newline at end of file