XF 2.1 How can I show x language

wakon5544

Active member


How can I show x language

I made a few attempts, but is there such a thing?

Code:
<xf:if is="$language_id == 1">

  English

<xf:else />

  Türkiye

</xf:if>
 
Solution
If you want the visitor's selected language, use $xf.visitor.language_id. If you want the currently displayed language (usually but not necessarily the same), use $xf.language.id.
If you want the visitor's selected language, use $xf.visitor.language_id. If you want the currently displayed language (usually but not necessarily the same), use $xf.language.id.
 
Last edited:
Solution
Top Bottom