mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-04-28 15:59:48 +00:00
28 lines
629 B
C#
28 lines
629 B
C#
using Lua;
|
|
|
|
namespace AIStudio.Tools.PluginSystem;
|
|
|
|
public sealed class NoPluginLanguage : PluginBase, ILanguagePlugin
|
|
{
|
|
public static readonly NoPluginLanguage INSTANCE = new();
|
|
|
|
private NoPluginLanguage() : base(true, LuaState.Create(), PluginType.LANGUAGE, string.Empty)
|
|
{
|
|
}
|
|
|
|
#region Implementation of ILanguagePlugin
|
|
|
|
public bool TryGetText(string key, out string value)
|
|
{
|
|
value = string.Empty;
|
|
return true;
|
|
}
|
|
|
|
public string this[string key] => string.Empty;
|
|
|
|
public string IETFTag => string.Empty;
|
|
|
|
public string LangName => string.Empty;
|
|
|
|
#endregion
|
|
} |