Switching between 2 functions

Switching between 2 functions

Hi Everyone,
I wish you a great new year in 2021.
I am on the subject how to switch between 2 functions via a button or combined element.
I am gonna use that switching functionality b/w languages English and German.
I already created functions for language change for both languages and now looking for a script or function
which I can toggle b/w those languages. I am planning to have a button or combined element and this combined element is going to run a script
and the script will first switch the current language and then will stop and wait until next time the same button is clicked.
Could you please recommend me sthg to start with ?

thank you

This is a migrated post! Originally posted on 02.01.2021 by user volkanon. Please be aware that information can be outdated.