This is sort of bad idea to implement, since you need to build several routes for each language. Generally i would recommend you to configure routes with languages. For example,
www.somewebsite.com/en/dashboard
and if its a differencet language then it should be,
www.somewebsite.com/es/dashboard.
However if you really want to build with different language routes then you have to do,
Create a new path : { path: ':lang/dashboard', component: dashboardComponent }
this.route.params.subscribe(params => {
translate.use(params['lang']);
switch (params['lang']) {
case 'en':
location.replace(`index.html#/${params['lang']}/dashboard`)
break;
case 'fr':
location.replace(`index.html#/${params['lang']}/anasayfa`);
break;
}
})