UNPKG

angular-l10n

Version:

An Angular library to translate messages, dates and numbers

20 lines 691 B
/** * @fileoverview added by tsickle * @suppress {checkTypes,extraRequire,uselessCode} checked by tsc */ import { NgModule } from '@angular/core'; import { HTTP_INTERCEPTORS } from '@angular/common/http'; import { LocaleInterceptor } from '../models/locale-interceptor'; /** * Sets locale in 'Accept-Language' header on outgoing requests. */ export class LocaleInterceptorModule { } LocaleInterceptorModule.decorators = [ { type: NgModule, args: [{ providers: [ { provide: HTTP_INTERCEPTORS, useClass: LocaleInterceptor, multi: true } ] },] } ]; //# sourceMappingURL=locale-interceptor.module.js.map