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));
|
|
|
|
|
|
2026-11-04 10:46:18 +01:00
|
|
|
extension(LangBehavior langBehavior)
|
2025-05-03 21:47:43 +02:00
|
|
|
{
|
2026-11-04 10:46:18 +01: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
|
|
|
|
2026-11-04 10:46:18 +01:00
|
|
|
_ => TB("Unknown option")
|
|
|
|
|
};
|
|
|
|
|
}
|
2025-05-03 21:47:43 +02:00
|
|
|
}
|