diff --git a/app/MindWork AI Studio/Tools/PluginSystem/ILanguagePlugin.cs b/app/MindWork AI Studio/Tools/PluginSystem/ILanguagePlugin.cs index 36b61985..4f214d68 100644 --- a/app/MindWork AI Studio/Tools/PluginSystem/ILanguagePlugin.cs +++ b/app/MindWork AI Studio/Tools/PluginSystem/ILanguagePlugin.cs @@ -20,15 +20,6 @@ public interface ILanguagePlugin /// True if the key exists, false otherwise. public bool TryGetText(string key, out string value, bool logWarning = false); - /// - /// Gets the text from the language plugin. - /// - /// - /// When the key does not exist, the value will be an empty string. - /// - /// The key to use to get the text. - public string this[string key] { get; } - /// /// Gets the IETF tag of the language plugin. /// diff --git a/app/MindWork AI Studio/Tools/PluginSystem/NoPluginLanguage.cs b/app/MindWork AI Studio/Tools/PluginSystem/NoPluginLanguage.cs index 7a0ddd9e..26d35849 100644 --- a/app/MindWork AI Studio/Tools/PluginSystem/NoPluginLanguage.cs +++ b/app/MindWork AI Studio/Tools/PluginSystem/NoPluginLanguage.cs @@ -18,8 +18,6 @@ public sealed class NoPluginLanguage : PluginBase, ILanguagePlugin return true; } - public string this[string key] => string.Empty; - public string IETFTag => string.Empty; public string LangName => string.Empty; diff --git a/app/MindWork AI Studio/Tools/PluginSystem/PluginLanguage.cs b/app/MindWork AI Studio/Tools/PluginSystem/PluginLanguage.cs index 0b726ad0..1c201a11 100644 --- a/app/MindWork AI Studio/Tools/PluginSystem/PluginLanguage.cs +++ b/app/MindWork AI Studio/Tools/PluginSystem/PluginLanguage.cs @@ -159,9 +159,6 @@ public sealed class PluginLanguage : PluginBase, ILanguagePlugin value = string.Empty; return false; } - - /// - public string this[string key] => this.TryGetText(key, out var value) ? value : "string.Empty"; /// public string IETFTag => this.langCultureTag;