Select2 field in Forminator form still gets translated
-
I have a website with Google Language Translator and a Forminator form. In ‘Additional CSS classes’ of the select field’s settings, I could add the ‘notranslate’ class which is then output in the classes of the container of the select field:
<div id=”select-7″ class=”forminator-col forminator-col-12 notranslate”>
<div class=”forminator-field”>
<label for=”forminator-form-938__field–select-7_635c0c96e8626-label” class=”forminator-label”>Data usage <span class=”forminator-required”>*</span>
</label><select id=”forminator-form-938__field–select-7_635c0c96e8626″ class=”forminator-select–field forminator-select2″ data-required=”1″ name=”select-7″ data-default-value=”” data-placeholder=”Please choose an option” data-search=”false”>
<option value=””>Please choose an option</option>
<option value=”All” data-calculation=”0″>All</option>
<option value=”Selected” data-calculation=”0″>Only selected manufacturers</option>
<option value=”None” data-calculation=”0″>None</option>
</select>
</div>
</div>`When clicking on the dropdown/select field, the options still get translated on the fly, but I do not want them to be translated. Any idea how I could stop GLT from translating the options of this field?
P.S. AFAIK, the select fields in Forminator are based on Select2.
- The topic ‘Select2 field in Forminator form still gets translated’ is closed to new replies.