From 680a3041f4b648d99bbc38957a22f6294aaf6a90 Mon Sep 17 00:00:00 2001 From: "Patrik J. Braun" Date: Sun, 1 Jan 2023 23:29:13 +0100 Subject: [PATCH] Adding $localize declare #569 --- src/common/config/private/PrivateConfig.ts | 3 +++ src/common/config/public/ClientConfig.ts | 2 ++ 2 files changed, 5 insertions(+) diff --git a/src/common/config/private/PrivateConfig.ts b/src/common/config/private/PrivateConfig.ts index 84ae1306..e97a960e 100644 --- a/src/common/config/private/PrivateConfig.ts +++ b/src/common/config/private/PrivateConfig.ts @@ -31,12 +31,15 @@ import {SearchQueryDTO, SearchQueryTypes, TextSearch,} from '../../entities/Sear import {SortingMethods} from '../../entities/SortingMethods'; import {UserRoles} from '../../entities/UserDTO'; +declare let $localize: (s: TemplateStringsArray) => string; + if (typeof $localize === 'undefined') { // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore global.$localize = (s) => s; } + export enum DatabaseType { memory = 1, mysql = 2, diff --git a/src/common/config/public/ClientConfig.ts b/src/common/config/public/ClientConfig.ts index 6ad4de0c..dc723f2b 100644 --- a/src/common/config/public/ClientConfig.ts +++ b/src/common/config/public/ClientConfig.ts @@ -5,6 +5,7 @@ import {UserRoles} from '../../entities/UserDTO'; import {ConfigProperty, SubConfigClass} from 'typeconfig/common'; import {SearchQueryDTO} from '../../entities/SearchQueryDTO'; +declare let $localize: (s: TemplateStringsArray) => string; if (typeof $localize === 'undefined') { // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore @@ -12,6 +13,7 @@ if (typeof $localize === 'undefined') { } + export enum MapProviders { OpenStreetMap = 1, Mapbox = 2,