import { AppRoutingModule } from './app-routing.module'
import { AppComponent } from './app.component'
import { CoreModule } from './core'
-import { HeaderComponent, SearchTypeaheadComponent } from './header'
+import { HeaderComponent, SearchTypeaheadComponent, SuggestionsComponent, SuggestionComponent } from './header'
import { LoginModule } from './login'
import { AvatarNotificationComponent, LanguageChooserComponent, MenuComponent } from './menu'
import { SharedModule } from './shared'
import { InstanceConfigWarningModalComponent } from '@app/modal/instance-config-warning-modal.component'
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({
MenuComponent,
LanguageChooserComponent,
+ QuickSettingsModalComponent,
AvatarNotificationComponent,
HeaderComponent,
SearchTypeaheadComponent,
+ SuggestionsComponent,
+ SuggestionComponent,
+ CustomModalComponent,
WelcomeModalComponent,
InstanceConfigWarningModalComponent
],
{
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 ]
},