1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00

Adding $localize declare #569

This commit is contained in:
Patrik J. Braun 2023-01-01 23:29:13 +01:00
parent dc6407251f
commit 680a3041f4
2 changed files with 5 additions and 0 deletions

View File

@ -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,

View File

@ -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,