Open AndyZotya opened 1 year ago
This code working: rome(rome_d, { weekStart: 1, initialValue: '2023-04-11 00:00', time: false, weekdayFormat: ['Нд','Пн','Вт','ср','Чт','Пт','Сб'] });
But this don't rome(rome_d, { weekStart: 1, initialValue: '2023-04-11 00:00', time: false, weekdayFormat: ['Нд','Пн','Вт','ср','Чт','Пт','Сб'], monthFormat: ['Січень','Лютий','Березень','Квітень','Травень','Червень','Липень','Серпень','Вересень','Жовтень','Листопад','Грудень'] });
You can basically do something like this:
let moment = require('moment')
import rome from '@bevacqua/rome/dist/rome.js'
import '@bevacqua/rome/dist/rome.css'
let locale = document.body.dataset.locale
moment.locale(locale)
rome.use(moment)
const datePicker = rome(element, { time: false })
Note that I did not package the code as a component for demonstration purpose. You can adjust it to your setup.
I still don't understand how to localize a calendar. Could you provide an example?