Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions src/js/rangedate-picker.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
import fecha from 'fecha'

const defaultConfig = {}
const defaultI18n = 'ID'
const defaultI18n = 'EN'
const availableMonths = {
EN: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November',
'December'],
ID: ['Januari', 'Februari', 'Maret', 'April', 'Mei', 'Juni', 'Juli', 'Agustus', 'September', 'Oktober', 'November',
'Desember']
'Desember'],
PT: ['Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho', 'Julho', 'Augusto', 'Setembro', 'Outubro', 'Novembro',
'Dezembro']
}

const availableShortDays = {
EN: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
ID: ['Min', 'Sen', 'Sel', 'Rab', 'Kam', 'Jum', 'Sab']
ID: ['Min', 'Sen', 'Sel', 'Rab', 'Kam', 'Jum', 'Sab'],
PT: ['Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sab']
}

const presetRangeLabel = {
Expand All @@ -28,6 +31,13 @@ const presetRangeLabel = {
lastMonth: 'Bulan lalu',
lastSevenDays: '7 Hari Terakhir',
lastThirtyDays: '30 Hari Terakhir'
},
PT: {
today: 'Hoje',
thisMonth: 'Mês Atual',
lastMonth: 'Mês Anterior',
lastSevenDays: 'Últimos 7 dias',
lastThirtyDays: 'Últimos 30 dias'
}
}

Expand Down