From 0c2ce8736fd3159881449189e715f8dafab16d5a Mon Sep 17 00:00:00 2001 From: Vitalii Mikhailov Date: Sun, 2 Jun 2024 13:54:54 +0300 Subject: [PATCH] Fix --- .../src/lib/Utils.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Bannerlord.LauncherManager.Native.TypeScript/src/lib/Utils.ts b/src/Bannerlord.LauncherManager.Native.TypeScript/src/lib/Utils.ts index 353d850..e6487d3 100644 --- a/src/Bannerlord.LauncherManager.Native.TypeScript/src/lib/Utils.ts +++ b/src/Bannerlord.LauncherManager.Native.TypeScript/src/lib/Utils.ts @@ -22,15 +22,15 @@ export class Utils { return Utils.addon.getDependencyHint(module); } - public loadLocalization = (xml: string): void => { + public static loadLocalization = (xml: string): void => { Utils.initialize(); return Utils.addon.loadLocalization(xml); } - public setLanguage = (language: string): void => { + public static setLanguage = (language: string): void => { Utils.initialize(); return Utils.addon.setLanguage(language); } - public localizeString = (template: string, values: { [value: string]: string }): string => { + public static localizeString = (template: string, values: { [value: string]: string }): string => { Utils.initialize(); return Utils.addon.localizeString(template, values); }