From 445fc579acc5b261c0812adf80173b290723ad6b Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Sat, 12 Apr 2025 11:05:06 +0200 Subject: [PATCH] Add IETFTag property to language plugin interface and implementation --- app/MindWork AI Studio/Tools/PluginSystem/ILanguagePlugin.cs | 5 +++++ app/MindWork AI Studio/Tools/PluginSystem/PluginLanguage.cs | 3 +++ 2 files changed, 8 insertions(+) diff --git a/app/MindWork AI Studio/Tools/PluginSystem/ILanguagePlugin.cs b/app/MindWork AI Studio/Tools/PluginSystem/ILanguagePlugin.cs index a33bf3f5..5d6191e9 100644 --- a/app/MindWork AI Studio/Tools/PluginSystem/ILanguagePlugin.cs +++ b/app/MindWork AI Studio/Tools/PluginSystem/ILanguagePlugin.cs @@ -18,4 +18,9 @@ public interface ILanguagePlugin /// The desired text. /// True if the key exists, false otherwise. public bool TryGetText(string key, out string value); + + /// + /// Gets the IETF tag of the language plugin. + /// + public string IETFTag { get; } } \ No newline at end of file diff --git a/app/MindWork AI Studio/Tools/PluginSystem/PluginLanguage.cs b/app/MindWork AI Studio/Tools/PluginSystem/PluginLanguage.cs index 384d81eb..39a60759 100644 --- a/app/MindWork AI Studio/Tools/PluginSystem/PluginLanguage.cs +++ b/app/MindWork AI Studio/Tools/PluginSystem/PluginLanguage.cs @@ -127,4 +127,7 @@ public sealed class PluginLanguage : PluginBase, ILanguagePlugin message = string.Empty; return true; } + + /// + public string IETFTag => this.langCultureTag; } \ No newline at end of file