X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fapp.module.ts;h=5a3b109da48bc34fd1d2e50b2b85d843cb81bb01;hb=9107d791e2eef9a1b24b0499dac8b9dbba8a792f;hp=55e929e78a64cc5e7e41d74ad37eb5f0c0223d34;hpb=d3217560a611b94f888ecf3de93b428a7521d4de;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/app.module.ts b/client/src/app/app.module.ts index 55e929e78..5a3b109da 100644 --- a/client/src/app/app.module.ts +++ b/client/src/app/app.module.ts @@ -20,6 +20,7 @@ import { InstanceConfigWarningModalComponent } from '@app/modal/instance-config- import { buildFileLocale, getCompleteLocale, isDefaultLocale } from '@shared/models' import { APP_BASE_HREF } from '@angular/common' import { QuickSettingsModalComponent } from '@app/modal/quick-settings-modal.component' +import { CustomModalComponent } from '@app/modal/custom-modal.component' export function metaFactory (serverService: ServerService): MetaLoader { return new MetaStaticLoader({ @@ -47,6 +48,7 @@ export function metaFactory (serverService: ServerService): MetaLoader { SuggestionsComponent, SuggestionComponent, + CustomModalComponent, WelcomeModalComponent, InstanceConfigWarningModalComponent ], @@ -81,12 +83,12 @@ export function metaFactory (serverService: ServerService): MetaLoader { { provide: TRANSLATIONS, useFactory: (locale: string) => { - // Default locale, nothing to translate + // Default locale, nothing to translate const completeLocale = getCompleteLocale(locale) if (isDefaultLocale(completeLocale)) return '' const fileLocale = buildFileLocale(locale) - return require(`raw-loader!../locale/angular.${fileLocale}.xlf`) + return require(`raw-loader!../locale/angular.${fileLocale}.xlf`).default }, deps: [ LOCALE_ID ] },