In my Angular 6 solution, the urls have this structure:
/{language}/{app_section}/{object_id}/{view}?queryparams...
A language selector component is shared by all sections of the application, and is included in the template of one of the parent routes so that it appears in all the children routes.
When a user selects a new language, the component should replace only the {language} segment of the current route, leaving everything else unchanged, and navigate to the new route. It seems it should be straightforward to do, but I can't seem to find an easy way. Can anybody help?