Chap theme supports Polylang Language Switcher widget in all widget areas: Header, Menu, Sidebar and Footer. The widget must be displayed as dropdown. Chap will automatically add flags to the dropdown. In order to conserve space, in header widget area all text will be hidden.
Rendering the language switcher in a template
pll_the_languages function it’s possible to render the language switcher in a template file, how ever the theme filter that applies Semantic UI styles to the switcher is by default only called for widgets in widget areas.
How ever it’s possible to apply the filter function manually: