Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add translation for Indonesian languange #193

Merged
merged 5 commits into from
May 25, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ coverage

# build
locale/
!src/locale/
plugin/
dayjs.min.js

Expand Down
43 changes: 43 additions & 0 deletions src/locale/id.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import dayjs from 'dayjs'

const locale = {
name: 'id',
MS: 'milidetik',
S: 'detik',
MIN: 'menit',
H: 'jam',
D: 'hari',
W: 'minggu',
M: 'bulan',
Q: 'kuartal',
Y: 'tahun',
DATE: 'tanggal',
weekdays: 'Minggu_Senin_Selasa_Rabu_Kamis_Jum\'at_Sabtu'.split('_'),
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be Jumat ? I don't know, just feel weird

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm okey i'll fix it

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',
ss: '%d detik',
min: 'satu menit',
mins: '%d menit',
h: 'satu jam',
hh: '%d jam',
d: 'satu hari',
dd: '%d hari',
w: 'satu minggu',
ww: '%d minggu',
m: 'satu bulan',
mm: '%d bulan',
q: 'seperempat',
qq: '%d kuartal',
y: 'satu tahun',
yy: '%d tahun'
},
ordinal: n => `${n}.`
}

dayjs.locale(locale, null, true)

export default locale