mirror of
				https://github.com/MindWorkAI/AI-Studio.git
				synced 2025-11-04 07:40:21 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			26 lines
		
	
	
		
			871 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			871 B
		
	
	
	
		
			C#
		
	
	
	
	
	
namespace AIStudio.Assistants.ERI;
 | 
						|
 | 
						|
public static class OperatingSystemExtensions
 | 
						|
{
 | 
						|
    private static string TB(string fallbackEN) => Tools.PluginSystem.I18N.I.T(fallbackEN, typeof(OperatingSystemExtensions).Namespace, nameof(OperatingSystemExtensions));
 | 
						|
    
 | 
						|
    public static string Name(this OperatingSystem os) => os switch
 | 
						|
    {
 | 
						|
        OperatingSystem.NONE => TB("No operating system specified"),
 | 
						|
        
 | 
						|
        OperatingSystem.WINDOWS => TB("Windows"),
 | 
						|
        OperatingSystem.LINUX => TB("Linux"),
 | 
						|
        
 | 
						|
        _ => TB("Unknown operating system")
 | 
						|
    };
 | 
						|
    
 | 
						|
    public static string ToPrompt(this OperatingSystem os) => os switch
 | 
						|
    {
 | 
						|
        OperatingSystem.NONE => "No operating system specified",
 | 
						|
        
 | 
						|
        OperatingSystem.WINDOWS => "Windows",
 | 
						|
        OperatingSystem.LINUX => "Linux",
 | 
						|
        
 | 
						|
        _ => "Unknown operating system"
 | 
						|
    };
 | 
						|
} |