2025-04-12 15:46:05 +00:00
|
|
|
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
|
|
|
|
|
2025-04-12 18:41:05 +00:00
|
|
|
public bool TryGetText(string key, out string value, bool logWarning = false)
|
2025-04-12 15:46:05 +00:00
|
|
|
{
|
|
|
|
value = string.Empty;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
public string this[string key] => string.Empty;
|
|
|
|
|
|
|
|
public string IETFTag => string.Empty;
|
|
|
|
|
|
|
|
public string LangName => string.Empty;
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
}
|