From f355235a836540d77880959fb1b614c87e9f7b3e Mon Sep 17 00:00:00 2001 From: David Furlong Date: Wed, 13 May 2020 04:52:25 +0200 Subject: [PATCH] fix: Add Kinyarwanda (rw) locale (#903) --- src/locale/rw.js | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 src/locale/rw.js diff --git a/src/locale/rw.js b/src/locale/rw.js new file mode 100644 index 00000000..316037e0 --- /dev/null +++ b/src/locale/rw.js @@ -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