mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-08-21 09:52:56 +00:00
Add localization to lang behavior options
This commit is contained in:
parent
4e67ea482a
commit
8832c2fc75
@ -0,0 +1,16 @@
|
|||||||
|
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));
|
||||||
|
|
||||||
|
public static string Name(this LangBehavior langBehavior) => langBehavior switch
|
||||||
|
{
|
||||||
|
LangBehavior.AUTO => TB("Choose the language automatically, based on your system language."),
|
||||||
|
LangBehavior.MANUAL => TB("Choose the language manually."),
|
||||||
|
|
||||||
|
_ => TB("Unknown option")
|
||||||
|
};
|
||||||
|
}
|
@ -1,12 +0,0 @@
|
|||||||
namespace AIStudio.Settings.DataModel;
|
|
||||||
|
|
||||||
public static class LangBehaviorExtensions
|
|
||||||
{
|
|
||||||
public static string Name(this LangBehavior langBehavior) => langBehavior switch
|
|
||||||
{
|
|
||||||
LangBehavior.AUTO => "Choose the language automatically, based on your system language.",
|
|
||||||
LangBehavior.MANUAL => "Choose the language manually.",
|
|
||||||
|
|
||||||
_ => "Unknown option"
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user