feat: i18n

This commit is contained in:
2026-02-07 04:18:36 +08:00
parent d1dd75f7ab
commit 4b5d2b656b
17 changed files with 482 additions and 98 deletions

View File

@@ -25,6 +25,14 @@ export function GetID(): $CancellablePromise<string> {
return $Call.ByID(4240411568);
}
export function GetLanguage(): $CancellablePromise<$models.Language> {
return $Call.ByID(480133131);
}
export function GetLanguageByString(str: string): $CancellablePromise<$models.Language> {
return $Call.ByID(905794983, str);
}
export function GetSaveHistory(): $CancellablePromise<boolean> {
return $Call.ByID(2178923392);
}
@@ -72,6 +80,10 @@ export function SetHostName(hostName: string): $CancellablePromise<void> {
return $Call.ByID(1580131496, hostName);
}
export function SetLanguage(language: $models.Language): $CancellablePromise<void> {
return $Call.ByID(933959199, language);
}
export function SetSaveHistory(saveHistory: boolean): $CancellablePromise<void> {
return $Call.ByID(3779587628, saveHistory);
}

View File

@@ -7,5 +7,6 @@ export {
};
export {
Language,
WindowState
} from "./models.js";

View File

@@ -5,6 +5,16 @@
// @ts-ignore: Unused imports
import { Create as $Create } from "@wailsio/runtime";
export enum Language {
/**
* The Go zero value for the underlying type of the enum.
*/
$zero = "",
LanguageEnglish = "en",
LanguageChinese = "zh-Hans",
};
/**
* WindowState 定义窗口状态
*/