mirror of
https://github.com/bpatrik/pigallery2.git
synced 2024-12-23 01:27:14 +02:00
Add missing $localize #784
This commit is contained in:
parent
5d5be0604e
commit
3811fc3c99
@ -2,6 +2,13 @@
|
|||||||
import {ConfigProperty, SubConfigClass} from 'typeconfig/common';
|
import {ConfigProperty, SubConfigClass} from 'typeconfig/common';
|
||||||
import {ClientExtensionsConfig, ConfigPriority, TAGS} from '../../public/ClientConfig';
|
import {ClientExtensionsConfig, ConfigPriority, TAGS} from '../../public/ClientConfig';
|
||||||
import {GenericConfigType} from 'typeconfig/src/GenericConfigType';
|
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})
|
@SubConfigClass<TAGS>({softReadonly: true})
|
||||||
export class ServerExtensionsEntryConfig {
|
export class ServerExtensionsEntryConfig {
|
||||||
|
Loading…
Reference in New Issue
Block a user