mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-18 01:18:00 +00:00
Add more text content to the I18N system (#486)
This commit is contained in:
1 parent
e3c272b0c4
commit
1d31fd9a22
29 files changed
+2316
-278
No files matched your search
@@ -2,7 +2,19 @@ namespace AIStudio.Assistants.ERI;
|
||||
|
||||
public static class OperatingSystemExtensions
|
||||
{
|
||||
private static string TB(string fallbackEN) => Tools.PluginSystem.I18N.I.T(fallbackEN, typeof(OperatingSystemExtensions).Namespace, nameof(OperatingSystemExtensions));
|
||||
|
||||
public static string Name(this OperatingSystem os) => os switch
|
||||
{
|
||||
OperatingSystem.NONE => TB("No operating system specified"),
|
||||
|
||||
OperatingSystem.WINDOWS => TB("Windows"),
|
||||
OperatingSystem.LINUX => TB("Linux"),
|
||||
|
||||
_ => TB("Unknown operating system")
|
||||
};
|
||||
|
||||
public static string ToPrompt(this OperatingSystem os) => os switch
|
||||
{
|
||||
OperatingSystem.NONE => "No operating system specified",
|
||||
|
||||
|
||||
Reference in new issue
Block a user