Change interface language programmatically

Hi I asked this in a different thread but they didn’t know how so thought maybe to ask here.
I know that the interface language can be changed by going to profile->language
The question is can I change the language by calling a service or some other way programmatically ?
The use case is I have two dashboards in two different languages, I have buttons I created for switching between them, but I’d also like the interface language to change when I click that button.
Anyone know if this is possible?
Thanks

I would also be very interested in this topic!
As for the missig replies it seems that it is not so easy? :frowning:

Maybe in the meantime some functionality has been added here?