import { Component } from '@angular/core' ; import { LocalizeRouterService } from 'localize-router' ; @ Component ( { selector : 'app-root' , templateUrl : './app.component.html' , styleUrls : [ './app.component.css' ] } ) export class AppComponent { constructor ( private localize ) { console . log ( 'ROUTES' , this . localize . parser . routes ) ; } changeLanguage ( lang ) { this . localize . changeLanguage ( lang ) ; } }