Skip to content

Commit

Permalink
fix: Add Kinyarwanda (rw) locale (#903)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfurlong authored May 13, 2020
1 parent 8035c8a commit f355235
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions src/locale/rw.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
// Kinyarwanda (Rwanda) [rw]
import dayjs from 'dayjs'

const locale = {
name: 'rw',
weekdays: 'Ku Cyumweru_Kuwa Mbere_Kuwa Kabiri_Kuwa Gatatu_Kuwa Kane_Kuwa Gatanu_Kuwa Gatandatu'.split('_'),
months: 'Mutarama_Gashyantare_Werurwe_Mata_Gicurasi_Kamena_Nyakanga_Kanama_Nzeri_Ukwakira_Ugushyingo_Ukuboza'.split('_'),
relativeTime: {
future: 'mu %s',
past: '%s',
s: 'amasegonda',
m: 'Umunota',
mm: '%d iminota',
h: 'isaha',
hh: '%d amasaha',
d: 'Umunsi',
dd: '%d iminsi',
M: 'ukwezi',
MM: '%d amezi',
y: 'umwaka',
yy: '%d imyaka'
},
formats: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY HH:mm',
LLLL: 'dddd, D MMMM YYYY HH:mm'
},
ordinal: n => n
}

dayjs.locale(locale, null, true)

export default locale

0 comments on commit f355235

Please sign in to comment.