Skip to content

Instantly share code, notes, and snippets.

@kutanov
Created April 10, 2020 01:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kutanov/7663a9c1afad35a76d95464c38886d3a to your computer and use it in GitHub Desktop.
Save kutanov/7663a9c1afad35a76d95464c38886d3a to your computer and use it in GitHub Desktop.
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