mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-02-05 22:29:07 +00:00
22 lines
800 B
C#
22 lines
800 B
C#
namespace AIStudio.Tools;
|
|
|
|
public static class CommonLanguageExtensions
|
|
{
|
|
public static string Name(this CommonLanguages language) => language switch
|
|
{
|
|
CommonLanguages.AS_IS => "Do not change the language",
|
|
|
|
CommonLanguages.EN_US => "English (US)",
|
|
CommonLanguages.EN_GB => "English (UK)",
|
|
CommonLanguages.ZH_CN => "Chinese (Simplified)",
|
|
CommonLanguages.HI_IN => "Hindi (India)",
|
|
CommonLanguages.ES_ES => "Spanish (Spain)",
|
|
CommonLanguages.FR_FR => "French (France)",
|
|
CommonLanguages.DE_DE => "German (Germany)",
|
|
CommonLanguages.DE_AT => "German (Austria)",
|
|
CommonLanguages.DE_CH => "German (Switzerland)",
|
|
CommonLanguages.JA_JP => "Japanese (Japan)",
|
|
|
|
_ => "Other",
|
|
};
|
|
} |