diff --git a/app/MindWork AI Studio/Components/Settings/SettingsPanelApp.razor b/app/MindWork AI Studio/Components/Settings/SettingsPanelApp.razor index c54dca8f..97bd672d 100644 --- a/app/MindWork AI Studio/Components/Settings/SettingsPanelApp.razor +++ b/app/MindWork AI Studio/Components/Settings/SettingsPanelApp.razor @@ -6,11 +6,11 @@ @if (PreviewFeatures.PRE_PLUGINS_2025.IsEnabled(this.SettingsManager)) { - + @if (this.SettingsManager.ConfigurationData.App.LanguageBehavior is LangBehavior.MANUAL) { - + } } diff --git a/app/MindWork AI Studio/Components/Settings/SettingsPanelApp.razor.cs b/app/MindWork AI Studio/Components/Settings/SettingsPanelApp.razor.cs index f4b75bfe..07e69709 100644 --- a/app/MindWork AI Studio/Components/Settings/SettingsPanelApp.razor.cs +++ b/app/MindWork AI Studio/Components/Settings/SettingsPanelApp.razor.cs @@ -9,4 +9,16 @@ public partial class SettingsPanelApp : SettingsPanelBase this.SettingsManager.ConfigurationData.App.PreviewVisibility = previewVisibility; this.SettingsManager.ConfigurationData.App.EnabledPreviewFeatures = previewVisibility.FilterPreviewFeatures(this.SettingsManager.ConfigurationData.App.EnabledPreviewFeatures); } + + private async Task UpdateLangBehaviour(LangBehavior behavior) + { + this.SettingsManager.ConfigurationData.App.LanguageBehavior = behavior; + await this.MessageBus.SendMessage(this, Event.PLUGINS_RELOADED); + } + + private async Task UpdateManuallySelectedLanguage(Guid pluginId) + { + this.SettingsManager.ConfigurationData.App.LanguagePluginId = pluginId; + await this.MessageBus.SendMessage(this, Event.PLUGINS_RELOADED); + } } \ No newline at end of file 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 fc7281d7..9045b443 100644 --- a/app/MindWork AI Studio/wwwroot/changelog/v0.9.42.md +++ b/app/MindWork AI Studio/wwwroot/changelog/v0.9.42.md @@ -1,6 +1,7 @@ # v0.9.42, build 217 (2025-05-xx xx:xx UTC) - Improved the model selection for OpenAI by removing all `o1-pro` models. These models cannot be used right now, since OpenAI introduced a new API, which is not yet supported by MindWork AI Studio. - Improved the internal plugin maintenance so that removed resources are now removed from the file system. +- Improved the app settings to apply the chosen language immediately. - 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