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

Add localize shim for MessagingConfig

This commit is contained in:
Patrik J. Braun 2023-07-31 01:10:00 +02:00
parent b8802dbf9e
commit 6d1b5e21fb

View File

@ -3,7 +3,13 @@ import {SubConfigClass} from '../../../../node_modules/typeconfig/src/decorators
import {ConfigPriority, TAGS} from '../public/ClientConfig';
import {ConfigProperty} from '../../../../node_modules/typeconfig/src/decorators/property/ConfigPropoerty';
import {ServerConfig} from './PrivateConfig';
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 EmailMessagingType {
sendmail = 1,
SMTP = 2,