feat: i18n
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -7,5 +7,6 @@ export {
|
||||
};
|
||||
|
||||
export {
|
||||
Language,
|
||||
WindowState
|
||||
} from "./models.js";
|
||||
|
||||
@@ -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 定义窗口状态
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user