Skip to content

Commit

Permalink
fix: Add Swahili locale (#508)
Browse files Browse the repository at this point in the history
  • Loading branch information
ObiWycliffe authored and iamkun committed Feb 24, 2019
1 parent 9815467 commit b9cee84
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions src/locale/sw.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import dayjs from 'dayjs'

const locale = {
name: 'sw',
weekdays: 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijuma_Jumamosi'.split('_'),
months: 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Octoba_Novemba_Disemba'.split('_'),
weekStart: 1,
ordinal: n => `${n}.`,
formats: {
LT: 'H:mm',
LTS: 'H:mm:ss',
L: 'DD.MM.YYYY',
LL: 'D. MMMM YYYY',
LLL: 'D. MMMM YYYY H:mm',
LLLL: 'dddd D. MMMM YYYY H:mm'
},
relativeTime: {
future: 'Ujao %s',
past: 'Uliopita %s',
s: 'sekunde',
m: 'dakika',
mm: '%d madakika',
h: 'saa',
hh: '%d masaa',
d: 'siku',
dd: '%d masiku',
M: 'mwezi',
MM: '%d miezi',
y: 'mwaka',
yy: '%d miaka'
}
}

dayjs.locale(locale, null, true)

export default locale

0 comments on commit b9cee84

Please sign in to comment.