From 6d1b5e21fb92105a2b57e403826cf387ae5a0589 Mon Sep 17 00:00:00 2001 From: "Patrik J. Braun" Date: Mon, 31 Jul 2023 01:10:00 +0200 Subject: [PATCH] Add localize shim for MessagingConfig --- src/common/config/private/MessagingConfig.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/common/config/private/MessagingConfig.ts b/src/common/config/private/MessagingConfig.ts index bf23c68d..219c5eea 100644 --- a/src/common/config/private/MessagingConfig.ts +++ b/src/common/config/private/MessagingConfig.ts @@ -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,