I have a multi-select drop down question. Everything works as it should, but our QC people realized that the text showing up in the drop down is in English only.
Working Code
<script>
$(document).ready(function(){
// Settings
var searchable = false;
var closeDropdownOnSelection = true;
var hideInputElements = false;
var closedDropdownSymbol = 'â–¼';
var openedDropdownSymbol = 'â–²';
var placeholderDropdownText = 'Type to search';
var noResultsDropdownText = 'No results found';
var closedDropdownText = function(selectedItems) {
// Good preset for checkboxes: shows "X options selected" if an item is selected, or "Select options."
var numberOfSelectedItems = selectedItems.length;
switch (numberOfSelectedItems) {
case 0:
return 'Select Route(s)';
break;
case 1:
return '1 option selected';
break;
default:
return numberOfSelectedItems + ' options selected';
break;
}
}
I am interested in the return whosn on lines 17 and 20. We have translated text for those, bu tI'm not sure how to incorporate it. I have tried the following
return '<div class="language" data-language="1">
Select Route(s)
</div>
<div class="language" data-language="2">
Something other than English
</div>';
break;
but when I test it, the question does not appear. We need to replicate this for a total of eight (8) langauges. I'm pretty sure it's a simple oversight on my part cause I no know how to code.
Can you please help