You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
836 B
24 lines
836 B
import { ApplicationConfig, isDevMode } from '@angular/core';
|
|
import { provideRouter, withComponentInputBinding } from '@angular/router';
|
|
|
|
import { routes } from './app.routes';
|
|
import { provideHttpClient } from '@angular/common/http';
|
|
import { TranslocoHttpLoader } from './transloco-loader';
|
|
import { provideTransloco } from '@jsverse/transloco';
|
|
|
|
export const appConfig: ApplicationConfig = {
|
|
providers: [
|
|
provideRouter(routes, withComponentInputBinding()), provideHttpClient(), provideTransloco({
|
|
config: {
|
|
availableLangs: ['en', 'fr', 'ru'],
|
|
defaultLang: 'en',
|
|
// Remove this option if your application doesn't support changing language in runtime.
|
|
reRenderOnLangChange: true,
|
|
prodMode: !isDevMode(),
|
|
},
|
|
loader: TranslocoHttpLoader
|
|
}),
|
|
]
|
|
};
|
|
|