Possible to hide a menu choice dynamically?

So that gave me an idea.
To make the dashboard multilingual according to a previously defined variable, you just have to use this method to hide the menus of the languages you don't want to see. It becomes quite simple.
1 Tab in English
1 Tab in French
1 Tab in German
etc... they are the same duplicated and translated.
and depending on the variable, we hide the desired Tabs dynamically.