Skip to content

Commit

Permalink
chore: update sw locale
Browse files Browse the repository at this point in the history
  • Loading branch information
splashwizard committed Feb 24, 2019
1 parent 7d5c776 commit 4bfbced
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 63 deletions.
2 changes: 1 addition & 1 deletion build/esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ const localeDir = path.join(process.env.PWD, 'esm/locale');
await promisify(fs.writeFile)(filePath, result, 'utf8')
})
} catch (e) {
console.error(e)
console.error(e) // eslint-disable-line no-console
}
})()
49 changes: 26 additions & 23 deletions src/locale/sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,35 @@ 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('_'),
weekdays: 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split('_'),
weekdaysShort: 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'),
weekdaysMin: 'J2_J3_J4_J5_Al_Ij_J1'.split('_'),
months: 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split('_'),
monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'),
weekStart: 1,
ordinal: n => `${n}.`,
ordinal: n => n,
relativeTime: {
future: '%s baadaye',
past: 'tokea %s',
s: 'hivi punde',
m: 'dakika moja',
mm: 'dakika %d',
h: 'saa limoja',
hh: 'masaa %d',
d: 'siku moja',
dd: 'masiku %d',
M: 'mwezi mmoja',
MM: 'miezi %d',
y: 'mwaka mmoja',
yy: 'miaka %d'
},
formats: {
LT: 'H:mm',
LTS: 'H:mm:ss',
LT: 'HH:mm',
LTS: 'HH: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'
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY HH:mm',
LLLL: 'dddd, D MMMM YYYY HH:mm'
}
}

Expand Down
39 changes: 0 additions & 39 deletions src/locale/swa.js

This file was deleted.

0 comments on commit 4bfbced

Please sign in to comment.