I would like to output the two letter language code (f.e. en) of the current language in the freemaker template of the login theme.
I already tried ${locale.current}, but this only outputs the name of the current language and not the code.
I would like to output the two letter language code (f.e. en) of the current language in the freemaker template of the login theme.
I already tried ${locale.current}, but this only outputs the name of the current language and not the code.
If you have enabled Internationalization for themes use:
${locale.currentLanguageTag}
${locale.currentLanguageTag} => en
${locale.current} => English