UNPKG

angular-l10n

Version:

An Angular library to translate messages, dates and numbers

47 lines 1.45 kB
/** * @fileoverview added by tsickle * @suppress {checkTypes,extraRequire,uselessCode} checked by tsc */ import { NgModule } from '@angular/core'; import { L10nLoader, LocalizedRoutingLoader } from '../services/l10n-loader'; import { SearchService } from '../services/search.service'; import { LocalizedRouting } from '../models/localized-routing'; import { L10nJsonLdComponent } from '../components/l10n-json-ld.component'; /** * Provides dependencies & components for SEO by locales. */ export class LocaleSeoModule { /** * Use in AppModule: new instance of SearchService. * @return {?} */ static forRoot() { return { ngModule: LocaleSeoModule, providers: [ LocalizedRouting, SearchService, { provide: L10nLoader, useClass: LocalizedRoutingLoader } ] }; } /** * Use in feature modules with lazy loading: new instance of SearchService. * @return {?} */ static forChild() { return { ngModule: LocaleSeoModule, providers: [ SearchService ] }; } } LocaleSeoModule.decorators = [ { type: NgModule, args: [{ declarations: [L10nJsonLdComponent], exports: [L10nJsonLdComponent] },] } ]; //# sourceMappingURL=locale-seo.module.js.map