mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-04-28 10:39:47 +00:00
Add IETFTag property to language plugin interface and implementation
This commit is contained in:
parent
ac731f6f78
commit
445fc579ac
@ -18,4 +18,9 @@ public interface ILanguagePlugin
|
|||||||
/// <param name="value">The desired text.</param>
|
/// <param name="value">The desired text.</param>
|
||||||
/// <returns>True if the key exists, false otherwise.</returns>
|
/// <returns>True if the key exists, false otherwise.</returns>
|
||||||
public bool TryGetText(string key, out string value);
|
public bool TryGetText(string key, out string value);
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the IETF tag of the language plugin.
|
||||||
|
/// </summary>
|
||||||
|
public string IETFTag { get; }
|
||||||
}
|
}
|
@ -127,4 +127,7 @@ public sealed class PluginLanguage : PluginBase, ILanguagePlugin
|
|||||||
message = string.Empty;
|
message = string.Empty;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
public string IETFTag => this.langCultureTag;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user