mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-05 02:07:21 +00:00
30 lines
1.2 KiB
C#
30 lines
1.2 KiB
C#
namespace AIStudio.Tools.PluginSystem;
|
|
|
|
public static class PluginTargetGroupExtensions
|
|
{
|
|
private static string TB(string fallbackEN) => I18N.I.T(fallbackEN, typeof(PluginTargetGroupExtensions).Namespace, nameof(PluginTargetGroupExtensions));
|
|
|
|
extension(PluginTargetGroup group)
|
|
{
|
|
public string Name => group switch
|
|
{
|
|
PluginTargetGroup.NONE => TB("No target group"),
|
|
|
|
PluginTargetGroup.EVERYONE => TB("Everyone"),
|
|
PluginTargetGroup.CHILDREN => TB("Children"),
|
|
PluginTargetGroup.TEENAGERS => TB("Teenagers"),
|
|
PluginTargetGroup.STUDENTS => TB("Students"),
|
|
PluginTargetGroup.ADULTS => TB("Adults"),
|
|
|
|
PluginTargetGroup.INDUSTRIAL_WORKERS => TB("Industrial workers"),
|
|
PluginTargetGroup.OFFICE_WORKERS => TB("Office workers"),
|
|
PluginTargetGroup.BUSINESS_PROFESSIONALS => TB("Business professionals"),
|
|
PluginTargetGroup.SOFTWARE_DEVELOPERS => TB("Software developers"),
|
|
PluginTargetGroup.SCIENTISTS => TB("Scientists"),
|
|
PluginTargetGroup.TEACHERS => TB("Teachers"),
|
|
PluginTargetGroup.ARTISTS => TB("Artists"),
|
|
|
|
_ => TB("Unknown target group"),
|
|
};
|
|
}
|
|
} |