Localization
All components are fully localized. In case of the date picker this covers date and time format, 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
<Datepicker
locale={locale }
/>
JSXTSX
import { Datepicker, localeEs, setOptions } from '@mobiscroll/react';
setOptions({
theme: ' ',
themeVariant: ' '
});
function App() {
return (
<div>
<Datepicker controls={['date']} display="inline" locale={localeEs} />
</div>
);
}
export default App;
import { Datepicker, localeEs, setOptions } from '@mobiscroll/react';
import { FC } from 'react';
setOptions({
theme: ' ',
themeVariant: ' '
});
const App: FC = () => (
<Datepicker
controls={['date']}
display="inline"
locale={localeEs} // Sets the language of the component
/>
);
export default App;