Angular: configure default QueryParamsHandling
问题 I've built an angular 9 app, and added localization with @ngx-translate. I've configured my app so that it takes the lang query parameter and changes the locale accordingly. @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.scss'] }) export class AppComponent implements OnInit, OnDestroy { constructor(private route: ActivatedRoute, private translateService: TranslateService) { this.translateService.setDefaultLang('en'); this.route