Files
AI-Studio/app/MindWork AI Studio/Settings/DataModel/LangBehaviorExtensions.cs
T

19 lines
617 B
C#
Raw Normal View History

2025-05-03 21:47:43 +02:00
using AIStudio.Tools.PluginSystem;
namespace AIStudio.Settings.DataModel;
public static class LangBehaviorExtensions
{
private static string TB(string fallbackEN) => I18N.I.T(fallbackEN, typeof(LangBehaviorExtensions).Namespace, nameof(LangBehaviorExtensions));
extension(LangBehavior langBehavior)
2025-05-03 21:47:43 +02:00
{
public string Name() => langBehavior switch
{
LangBehavior.AUTO => TB("Choose the language automatically, based on your system language."),
LangBehavior.MANUAL => TB("Choose the language manually."),
2025-05-03 21:47:43 +02:00
_ => TB("Unknown option")
};
}
2025-05-03 21:47:43 +02:00
}