diff --git a/app/MindWork AI Studio/Components/ChatTemplateSelection.razor b/app/MindWork AI Studio/Components/ChatTemplateSelection.razor
index 1f12f235..edfb9b41 100644
--- a/app/MindWork AI Studio/Components/ChatTemplateSelection.razor
+++ b/app/MindWork AI Studio/Components/ChatTemplateSelection.razor
@@ -7,7 +7,7 @@
@if (this.CurrentChatTemplate != ChatTemplate.NO_CHAT_TEMPLATE)
{
- @this.CurrentChatTemplate.Name
+ @this.CurrentChatTemplate.GetSafeName()
}
else
diff --git a/app/MindWork AI Studio/Components/ProfileSelection.razor b/app/MindWork AI Studio/Components/ProfileSelection.razor
index cab52e9b..02105589 100644
--- a/app/MindWork AI Studio/Components/ProfileSelection.razor
+++ b/app/MindWork AI Studio/Components/ProfileSelection.razor
@@ -6,7 +6,7 @@
@if (this.CurrentProfile != Profile.NO_PROFILE)
{
- @this.CurrentProfile.Name
+ @this.CurrentProfile.GetSafeName()
}
else
@@ -15,12 +15,12 @@
}
-
+
@foreach (var profile in this.SettingsManager.ConfigurationData.Profiles.GetAllProfiles())
{
-
- @profile.Name
+
+ @profile.GetSafeName()
}
diff --git a/app/MindWork AI Studio/Pages/Settings.razor b/app/MindWork AI Studio/Pages/Settings.razor
index da1f837d..7931453f 100644
--- a/app/MindWork AI Studio/Pages/Settings.razor
+++ b/app/MindWork AI Studio/Pages/Settings.razor
@@ -12,18 +12,18 @@
@if (PreviewFeatures.PRE_RAG_2024.IsEnabled(this.SettingsManager))
{
-
+
}
-
+
@if (PreviewFeatures.PRE_RAG_2024.IsEnabled(this.SettingsManager))
{
-
-
+
+
}
-
+
\ No newline at end of file
diff --git a/app/MindWork AI Studio/Settings/Profile.cs b/app/MindWork AI Studio/Settings/Profile.cs
index 0436beb5..9d0eddfd 100644
--- a/app/MindWork AI Studio/Settings/Profile.cs
+++ b/app/MindWork AI Studio/Settings/Profile.cs
@@ -22,7 +22,7 @@ public record Profile(
public static readonly Profile NO_PROFILE = new()
{
- Name = TB("Use no profile"),
+ Name = TB("Use no profile"), // Cannot be localized due to being a static readonly field
NeedToKnow = string.Empty,
Actions = string.Empty,
Id = Guid.Empty.ToString(),
@@ -39,6 +39,23 @@ public record Profile(
#endregion
+ ///
+ /// Gets the name of this profile. If it is the NO_PROFILE, it returns a localized string.
+ ///
+ ///
+ /// Why not using the Name property directly? Because the Name property of NO_PROFILE cannot be
+ /// localized because it is a static readonly field. So we need this method to return a localized
+ /// string instead.
+ ///
+ /// The name of this profile.
+ public string GetSafeName()
+ {
+ if(this == NO_PROFILE)
+ return TB("Use no profile");
+
+ return this.Name;
+ }
+
public string ToSystemPrompt()
{
if(this.Num == uint.MaxValue)
diff --git a/app/MindWork AI Studio/wwwroot/changelog/v26.1.1.md b/app/MindWork AI Studio/wwwroot/changelog/v26.1.1.md
index a1b23c7d..4edc4e48 100644
--- a/app/MindWork AI Studio/wwwroot/changelog/v26.1.1.md
+++ b/app/MindWork AI Studio/wwwroot/changelog/v26.1.1.md
@@ -2,4 +2,5 @@
- Added the option to attach files, including images, to chat templates. You can also define templates with file attachments through a configuration plugin. These file attachments aren’t copied—they’re re-read every time. That means the AI will pick up any updates you make to those files.
- Added the option to use source code files in chats and document analysis. This supports software development workflows.
- Added a preview feature that lets you record your own voice in preparation for the transcription feature. The feature remains in development and appears only when the preview feature is enabled.
-- Improved the app versioning. Starting in 2026, each version number includes the year, followed by the month. The last digit shows the release number for that month. For example, version `26.1.1` is the first release in January 2026.
\ No newline at end of file
+- Improved the app versioning. Starting in 2026, each version number includes the year, followed by the month. The last digit shows the release number for that month. For example, version `26.1.1` is the first release in January 2026.
+- Fixed a bug in the profile selection where the "Use no profile" entry could not be localized, causing English text to appear in languages such as German. This behavior has now been fixed.