mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-06-27 17:36:28 +00:00
32 lines
1.1 KiB
C#
32 lines
1.1 KiB
C#
using AIStudio.Tools.PluginSystem;
|
|
|
|
namespace AIStudio.Tools;
|
|
|
|
public static class AssistantCategoryExtensions
|
|
{
|
|
private static string TB(string fallbackEN) => I18N.I.T(fallbackEN, typeof(AssistantCategoryExtensions).Namespace, nameof(AssistantCategoryExtensions));
|
|
|
|
public static string Name(this AssistantCategory category) => category switch
|
|
{
|
|
AssistantCategory.AS_IS => TB("Select the assistant category"),
|
|
AssistantCategory.GENERAL => TB("General"),
|
|
AssistantCategory.SCIENTIFIC => TB("Scientific"),
|
|
AssistantCategory.BUSINESS => TB("Business"),
|
|
AssistantCategory.PRODUCTIVITY => TB("Productivity"),
|
|
AssistantCategory.DEVELOPMENT => TB("Software Development"),
|
|
AssistantCategory.LEARNING => TB("Learning"),
|
|
AssistantCategory.AI_STUDIO => TB("AI Studio Development"),
|
|
AssistantCategory.OTHER => TB("Other"),
|
|
|
|
_ => string.Empty,
|
|
};
|
|
|
|
public static string NameSelecting(this AssistantCategory category)
|
|
{
|
|
if(category is AssistantCategory.AS_IS)
|
|
return TB("Please select the assistant category");
|
|
|
|
return category.Name();
|
|
}
|
|
}
|