From b9cee843404f445e57c99fe13676656f86f3fb4c Mon Sep 17 00:00:00 2001 From: obiwycliffe <33378361+0biWycliffe@users.noreply.github.com> Date: Sun, 24 Feb 2019 12:43:39 +0300 Subject: [PATCH] fix: Add Swahili locale (#508) --- src/locale/sw.js | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 src/locale/sw.js diff --git a/src/locale/sw.js b/src/locale/sw.js new file mode 100644 index 000000000..b0534a620 --- /dev/null +++ b/src/locale/sw.js @@ -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