Language Selector change label

I am using the Language Selector widget.  How do I change the label from en_US to EN?
1 answers

In the widgets properties there is a Caption selection option. There you can use a Expression in such a way that if currentobject/Code == ‘en_US’ then ‘EN’ else if currentobject/Code == ‘fr_FR’ then ‘FR’ else ‘EN’

can you give it a try?

P.S. Depending the number of languages you are supporting in the System.Language table, you may have to decide this Expression conditions.