From 526469f5e7aaeeb69541fec28b16fccb80b5e654 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peer=20Sch=C3=BCtt?= <20603780+peerschuett@users.noreply.github.com> Date: Thu, 8 May 2025 15:47:10 +0200 Subject: [PATCH] Forgot this --- .../Components/ConfigurationProviderSelection.razor.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/MindWork AI Studio/Components/ConfigurationProviderSelection.razor.cs b/app/MindWork AI Studio/Components/ConfigurationProviderSelection.razor.cs index 3d06590f..28298f75 100644 --- a/app/MindWork AI Studio/Components/ConfigurationProviderSelection.razor.cs +++ b/app/MindWork AI Studio/Components/ConfigurationProviderSelection.razor.cs @@ -2,13 +2,15 @@ using System.Diagnostics.CodeAnalysis; using AIStudio.Provider; using AIStudio.Settings; - +using AIStudio.Tools.PluginSystem; using Microsoft.AspNetCore.Components; namespace AIStudio.Components; public partial class ConfigurationProviderSelection : MSGComponentBase { + private static string TB(string fallbackEN) => I18N.I.T(fallbackEN, typeof(ConfigurationProviderSelection).Namespace, nameof(ConfigurationProviderSelection)); + [Parameter] public Func SelectedValue { get; set; } = () => string.Empty; @@ -25,7 +27,7 @@ public partial class ConfigurationProviderSelection : MSGComponentBase public Func Disabled { get; set; } = () => false; [Parameter] - public Func HelpText { get; set; } = () => "Select a provider that is preselected."; + public Func HelpText { get; set; } = () => TB("Select a provider that is preselected."); [Parameter] public Tools.Components Component { get; set; } = Tools.Components.NONE;