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

Add missing $localize #784

This commit is contained in:
Patrik J. Braun 2024-03-06 22:43:52 +01:00
parent 5d5be0604e
commit 3811fc3c99

View File

@ -2,6 +2,13 @@
import {ConfigProperty, SubConfigClass} from 'typeconfig/common';
import {ClientExtensionsConfig, ConfigPriority, TAGS} from '../../public/ClientConfig';
import {GenericConfigType} from 'typeconfig/src/GenericConfigType';
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;
}
@SubConfigClass<TAGS>({softReadonly: true})
export class ServerExtensionsEntryConfig {