2025-03-22 20:12:14 +00:00
|
|
|
namespace AIStudio.Tools.PluginSystem;
|
|
|
|
|
|
|
|
public static class PluginTargetGroupExtensions
|
|
|
|
{
|
2025-05-04 12:59:30 +00:00
|
|
|
private static string TB(string fallbackEN) => I18N.I.T(fallbackEN, typeof(PluginTargetGroupExtensions).Namespace, nameof(PluginTargetGroupExtensions));
|
|
|
|
|
2025-03-22 20:12:14 +00:00
|
|
|
public static string Name(this PluginTargetGroup group) => group switch
|
|
|
|
{
|
2025-05-04 12:59:30 +00:00
|
|
|
PluginTargetGroup.NONE => TB("No target group"),
|
2025-03-22 20:12:14 +00:00
|
|
|
|
2025-05-04 12:59:30 +00:00
|
|
|
PluginTargetGroup.EVERYONE => TB("Everyone"),
|
|
|
|
PluginTargetGroup.CHILDREN => TB("Children"),
|
|
|
|
PluginTargetGroup.TEENAGERS => TB("Teenagers"),
|
|
|
|
PluginTargetGroup.STUDENTS => TB("Students"),
|
|
|
|
PluginTargetGroup.ADULTS => TB("Adults"),
|
2025-03-22 20:12:14 +00:00
|
|
|
|
2025-05-04 12:59:30 +00:00
|
|
|
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"),
|
2025-03-22 20:12:14 +00:00
|
|
|
|
2025-05-04 12:59:30 +00:00
|
|
|
_ => TB("Unknown target group"),
|
2025-03-22 20:12:14 +00:00
|
|
|
};
|
|
|
|
}
|