Localization
All components are fully localized. In case of the select this covers button copy, rtl and more. You can see how each example shows up by clicking on the small flag icon or checking the examples below.
All settings can be manually overridden See what options the localization impacts →
Demo
Set localization to
mobiscroll.select('#my-select', {
locale: mobiscroll.locale
}); JSHTML
mobiscroll.setOptions({
theme: ' ',
themeVariant: ' '
});
mobiscroll.select('#demo', {
inputElement: document.getElementById('demo-input'),
display: 'bottom',
locale: mobiscroll.localeEs, // Sets the language of the component
});
<label>
Select
<input mbsc-input id="demo-input" placeholder="Please select..." data-dropdown="true" data-input-style="outline" data-label-style="stacked" />
</label>
<select id="demo">
<option value="1">Atlanta</option>
<option value="2">Berlin</option>
<option value="3">Boston</option>
<option value="4">Chicago</option>
<option value="5">London</option>
<option value="6">Los Angeles</option>
<option value="7">New York</option>
<option value="8">Paris</option>
<option value="9">San Francisco</option>
</select>