angular-hotel-manager/src/app/app.config.ts

14 lines
549 B
TypeScript
Raw Normal View History

2024-08-13 13:11:57 +02:00
import { ApplicationConfig, provideZoneChangeDetection } from '@angular/core';
import { provideRouter } from '@angular/router';
import localeDe from '@angular/common/locales/de';
import localeCn from '@angular/common/locales/zh-Hans';
2024-08-13 13:11:57 +02:00
import { routes } from './app.routes';
import { registerLocaleData } from '@angular/common';
2024-08-13 13:11:57 +02:00
registerLocaleData(localeDe, 'de-DE');
registerLocaleData(localeCn, 'cn-CN');
2024-08-13 13:11:57 +02:00
export const appConfig: ApplicationConfig = {
providers: [provideZoneChangeDetection({ eventCoalescing: true }), provideRouter(routes)]
};