angular-l10n
Version:
An Angular library to translate messages, dates and numbers
24 lines • 866 B
JavaScript
/**
* @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.
*/
var LocaleInterceptorModule = /** @class */ (function () {
function LocaleInterceptorModule() {
}
LocaleInterceptorModule.decorators = [
{ type: NgModule, args: [{
providers: [
{ provide: HTTP_INTERCEPTORS, useClass: LocaleInterceptor, multi: true }
]
},] }
];
return LocaleInterceptorModule;
}());
export { LocaleInterceptorModule };
//# sourceMappingURL=locale-interceptor.module.js.map