added hebrew translations (#1724)

first day of week in datepicker is locale specific now
This commit is contained in:
Kevin Papst
2020-05-24 13:58:13 +02:00
committed by GitHub
parent e2a4998341
commit 91736e89cc
29 changed files with 2235 additions and 17 deletions

View File

@@ -11,6 +11,7 @@
import jQuery from 'jquery';
import KimaiPlugin from '../KimaiPlugin';
import moment from "moment";
export default class KimaiDatePicker extends KimaiPlugin {
@@ -35,7 +36,7 @@ export default class KimaiDatePicker extends KimaiPlugin {
autoUpdateInput: false,
locale: {
format: localeFormat,
firstDay: 1,
firstDay: moment().startOf('week').format('d'),
applyLabel: TRANSLATE.get('confirm'),
cancelLabel: TRANSLATE.get('cancel'),
customRangeLabel: TRANSLATE.get('customRange'),

View File

@@ -50,7 +50,7 @@ export default class KimaiDateRangePicker extends KimaiPlugin {
locale: {
separator: separator,
format: localeFormat,
firstDay: 1,
firstDay: moment().startOf('week').format('d'),
applyLabel: TRANSLATE.get('confirm'),
cancelLabel: TRANSLATE.get('cancel'),
customRangeLabel: TRANSLATE.get('customRange'),

View File

@@ -38,7 +38,7 @@ export default class KimaiDateTimePicker extends KimaiPlugin {
autoUpdateInput: false,
locale: {
format: localeFormat,
firstDay: 1,
firstDay: moment().startOf('week').format('d'),
applyLabel: TRANSLATE.get('confirm'),
cancelLabel: TRANSLATE.get('cancel'),
customRangeLabel: TRANSLATE.get('customRange'),