Skip to content

Commit

Permalink
[FIX]formio : Language switcher does not work
Browse files Browse the repository at this point in the history
  • Loading branch information
ongood committed Dec 16, 2020
1 parent 47ec5d5 commit 802f906
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions formio/views/formio_public_templates.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ See LICENSE file for full licensing details. -->
<t t-if="len(languages) > 1">
<div class="formio_languages">
<t t-foreach="languages" t-as="lang">
<button class="btn btn-sm btn-default" t-attf-onclick="setLanguage('{{ lang.code }}')"><span t-field="lang.name"/></button>
<button class="btn btn-sm btn-default" t-attf-onclick="setLanguage('{{ lang.formio_ietf_code }}')"><span t-field="lang.name"/></button>
</t>
</div>
</t>
Expand Down Expand Up @@ -100,7 +100,7 @@ See LICENSE file for full licensing details. -->
<t t-if="len(languages) > 1">
<div class="formio_languages">
<t t-foreach="languages" t-as="lang">
<button class="btn btn-sm btn-default" t-attf-onclick="setLanguage('{{ lang.code }}')"><span t-field="lang.name"/></button>
<button class="btn btn-sm btn-default" t-attf-onclick="setLanguage('{{ lang.formio_ietf_code }}')"><span t-field="lang.name"/></button>
</t>
</div>
</t>
Expand Down

0 comments on commit 802f906

Please sign in to comment.