Created
April 10, 2020 01:37
-
-
Save kutanov/7663a9c1afad35a76d95464c38886d3a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { NgModule } from '@angular/core'; | |
import { CommonModule } from '@angular/common'; | |
import { HomeComponent } from './home.component'; | |
import { RouterModule } from '@angular/router'; | |
import { TranslocoRootModule } from '../transloco-root.module'; | |
import { TranslocoLocaleModule } from '@ngneat/transloco-locale'; | |
@NgModule({ | |
declarations: [ | |
HomeComponent | |
], | |
imports: [ | |
CommonModule, | |
RouterModule.forChild([{ path: '', component: HomeComponent }]), | |
TranslocoRootModule, | |
TranslocoLocaleModule.init({ | |
langToLocaleMapping: { | |
en: 'en-US', | |
ru: 'ru-RU' | |
}}) | |
], | |
exports: [HomeComponent] | |
}) | |
export class HomeModule { } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment