Skip to content

Commit

Permalink
Declare global loaded_localizations
Browse files Browse the repository at this point in the history
Fixes the error:

  src/app-localization.js:1108:9 - error TS2339: Property 'loaded_localizations' does not exist on type 'Window & typeof globalThis'.
  
  1108  window.loaded_localizations = function loaded_localizations(language, mapping) {
               ~~~~~~~~~~~~~~~~~~~~
  • Loading branch information
1j01 committed May 10, 2024
1 parent f24ad7d commit 806cca3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/globals.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,7 @@ interface Window {

// app-localization.js
available_languages: string[];
loaded_localizations: (language: string, mapping: Record<string, string>) => void; // JSONP callback in the localization files
// msgbox.js
showMessageBox: (options: MessageBoxOptions) => Promise<string>;
defaultMessageBoxTitle: string;
Expand Down

0 comments on commit 806cca3

Please sign in to comment.