Language Switcher
Use the language_links tag pair to create a language switcher. Set up languages in Transcribe first.
Drop-down
On EE3+, include the CSRF token in a POST form. Keep the select element outside the repeating languages pair:
<form action="{exp:transcribe:action_url}" method="post">
<input type="hidden" name="csrf_token" value="{csrf_token}">
{exp:transcribe:language_links}
<label for="transcribe-language">Language</label>
<select id="transcribe-language" name="lang">
{languages}
<option value="{abbreviation}"{if current} selected="selected"{/if}>{name}</option>
{/languages}
</select>
{/exp:transcribe:language_links}
<button type="submit">Change language</button>
</form>
Links list
{exp:transcribe:language_links}
<ul>
{languages}
<li><a href="{link}"{if current} aria-current="true"{/if}>{name}</a></li>
{/languages}
</ul>
{/exp:transcribe:language_links}
If switching produces a restricted-character error, check the site's permitted_uri_chars configuration. Preserve the existing allowed characters when adding = and &.
Trailing Slash
To remove the trailing slash from the redirect after a language change, add this setting to system/user/config/config.php:
$config['transcribe_trim_trailing_slash'] = 'yes';
See the Tag Reference for filtering and ordering options.