mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-04 18:29:40 +00:00
Improved I18N system (#445)
This commit is contained in:
1 parent
f8dbc186fb
commit
cfc2103b43
11 files changed
+109
-26
No files matched your search
@@ -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")
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user