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 }), ] };