Skip to content

Commit

Permalink
Merge pull request #193 from muhibbudins/master
Browse files Browse the repository at this point in the history
Add translation for Indonesian languange
  • Loading branch information
iamkun authored May 25, 2018
2 parents dfd8f40 + 4d6f37c commit d7ed7cb
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/locale/id.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import dayjs from 'dayjs'

const locale = {
name: 'id',
weekdays: 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'),
months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split('_'),
relativeTime: {
future: 'dalam %s',
past: 'yang lalu %s',
present: 'sekarang',
s: 'beberapa detik',
m: 'satu menit',
mm: '%d menit',
h: 'satu jam',
hh: '%d jam',
d: 'satu hari',
dd: '%d hari',
M: 'satu bulan',
MM: '%d bulan',
y: 'satu tahun',
yy: '%d tahun'
},
ordinal: n => `${n}.`
}

dayjs.locale(locale, null, true)

export default locale

0 comments on commit d7ed7cb

Please sign in to comment.