Implement localization

This commit is contained in:
2025-01-12 00:17:19 +01:00
parent 2788afe822
commit d43e961184
16 changed files with 621 additions and 31 deletions

View File

@@ -14,10 +14,14 @@ export function GetAddons():Promise<main.AddonsResponse>;
export function GetGamePath():Promise<main.StringResponse>;
export function GetLocale():Promise<string>;
export function IsGamePathValid():Promise<main.BoolResponse>;
export function SelectDirectory():Promise<main.StringResponse>;
export function SetGamePath(arg1:string):Promise<main.StringResponse>;
export function SetLocale(arg1:string):Promise<void>;
export function UpdateAddon(arg1:string):Promise<main.BoolResponse>;

View File

@@ -26,6 +26,10 @@ export function GetGamePath() {
return window['go']['main']['App']['GetGamePath']();
}
export function GetLocale() {
return window['go']['main']['App']['GetLocale']();
}
export function IsGamePathValid() {
return window['go']['main']['App']['IsGamePathValid']();
}
@@ -38,6 +42,10 @@ export function SetGamePath(arg1) {
return window['go']['main']['App']['SetGamePath'](arg1);
}
export function SetLocale(arg1) {
return window['go']['main']['App']['SetLocale'](arg1);
}
export function UpdateAddon(arg1) {
return window['go']['main']['App']['UpdateAddon'](arg1);
}