import { BrowserModule } from '@angular/platform-browser'; | |
import { NgModule } from '@angular/core'; | |
import { AppRoutingModule } from './app-routing.module'; | |
import { AppComponent } from './app.component'; | |
import { HttpClientModule } from '@angular/common/http'; | |
import { TranslocoRootModule } from './transloco-root.module'; | |
import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; | |
import { TranslocoLocaleModule } from '@ngneat/transloco-locale'; | |
@NgModule({ | |
declarations: [ | |
AppComponent | |
], | |
imports: [ | |
BrowserModule, | |
AppRoutingModule, | |
HttpClientModule, | |
TranslocoRootModule, | |
BrowserAnimationsModule, | |
TranslocoLocaleModule.init({ | |
langToLocaleMapping: { | |
en: 'en-US', | |
ru: 'ru-RU' | |
}}) | |
], | |
providers: [], | |
bootstrap: [AppComponent] | |
}) | |
export class AppModule { } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment