From 9ac6ab481bc883dd4ecc02caab12c8b2fc218a42 Mon Sep 17 00:00:00 2001 From: michaeltoohig <34083701+michaeltoohig@users.noreply.github.com> Date: Sun, 19 Jan 2020 19:12:00 +1100 Subject: [PATCH] fix: Add Bislama Locale (bi) (#780) --- src/locale/bi.js | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 src/locale/bi.js diff --git a/src/locale/bi.js b/src/locale/bi.js new file mode 100644 index 000000000..7f6cbecba --- /dev/null +++ b/src/locale/bi.js @@ -0,0 +1,39 @@ +import dayjs from 'dayjs' + +const locale = { + name: 'bi', + weekdays: 'Sande_Mande_Tusde_Wenesde_Tosde_Fraede_Sarade'.split('_'), + months: 'Januari_Februari_Maj_Eprel_Mei_Jun_Julae_Okis_Septemba_Oktoba_Novemba_Disemba'.split('_'), + weekStart: 1, + weekdaysShort: 'San_Man_Tus_Wen_Tos_Frae_Sar'.split('_'), + monthsShort: 'Jan_Feb_Maj_Epr_Mai_Jun_Jul_Oki_Sep_Okt_Nov_Dis'.split('_'), + weekdaysMin: 'San_Ma_Tu_We_To_Fr_Sar'.split('_'), + ordinal: n => n, + formats: { + LT: 'h:mm A', + LTS: 'h:mm:ss A', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY h:mm A', + LLLL: 'dddd, D MMMM YYYY h:mm A' + }, + relativeTime: { + future: 'lo %s', + past: '%s bifo', + s: 'sam seken', + m: 'wan minit', + mm: '%d minit', + h: 'wan haoa', + hh: '%d haoa', + d: 'wan dei', + dd: '%d dei', + M: 'wan manis', + MM: '%d manis', + y: 'wan yia', + yy: '%d yia' + } +} + +dayjs.locale(locale, null, true) + +export default locale