Skip to content

Commit

Permalink
Localize datepicker #876 (#877)
Browse files Browse the repository at this point in the history
  • Loading branch information
OmTheTurtle authored Oct 9, 2021
1 parent cd51d74 commit 97a048e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions public/js/picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const options = {
/* eslint-disable-next-line @typescript-eslint/naming-convention */
time_24hr: true,
disableMobile: 'true',
'locale': 'hu',
}

const pickerStart = flatpickr('#pickerStart', {
Expand Down
3 changes: 2 additions & 1 deletion views/group/new.pug
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ block scripts
script const description = decodeURIComponent(!{JSON.stringify(encodeURIComponent(description))})
if tags
script const tags = decodeURIComponent(!{JSON.stringify(encodeURIComponent(tags))})
script(src="https://cdn.jsdelivr.net/npm/flatpickr")
script(src="https://cdn.jsdelivr.net/npm/[email protected]/dist/flatpickr.min.js")
script(src="https://cdn.jsdelivr.net/npm/[email protected]/dist/l10n/hu.js")
script(src="https://cdn.jsdelivr.net/npm/@yaireo/[email protected]/dist/tagify.min.js")
script(src="https://unpkg.com/[email protected]/dist/easymde.min.js")
script(src='https://cdn.jsdelivr.net/npm/[email protected]/main.min.js')
Expand Down

0 comments on commit 97a048e

Please sign in to comment.