mirror of
				https://github.com/MindWorkAI/AI-Studio.git
				synced 2025-10-31 03:20:21 +00:00 
			
		
		
		
	Added a no language plugin class
This commit is contained in:
		
							parent
							
								
									e2fc7619eb
								
							
						
					
					
						commit
						a8663e46b9
					
				| @ -0,0 +1,28 @@ | ||||
| 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 | ||||
| } | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user