From d133ba0d9a3d9575792b853f7137af8d94a1342d Mon Sep 17 00:00:00 2001 From: pete-harris-sf Date: Sun, 10 Feb 2019 12:58:44 +0800 Subject: [PATCH 1/4] Create my.js suggestion for Bahasa Melayu (Malaysia) locale --- src/locale/my.js | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 src/locale/my.js diff --git a/src/locale/my.js b/src/locale/my.js new file mode 100644 index 000000000..6ae13cffb --- /dev/null +++ b/src/locale/my.js @@ -0,0 +1,36 @@ +import dayjs from 'dayjs' + +const locale = { + name: 'id', + weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'), + months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'), + weekStart: 1, + 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' + }, + relativeTime: { + future: 'dalam %s', + past: '%s yang lepas', + s: 'beberapa saat', + m: 'seminit', + mm: '%d minit', + h: 'sejam', + hh: '%d jam', + d: 'sehari', + dd: '%d hari', + M: 'sebulan', + MM: '%d bulan', + y: 'setahun', + yy: '%d tahun' + }, + ordinal: n => `${n}.` +} + +dayjs.locale(locale, null, true) + +export default locale From 06c60dbe7331bb410b2ca4db9f17b267399fd4c9 Mon Sep 17 00:00:00 2001 From: pete-harris-sf Date: Mon, 11 Feb 2019 10:58:26 +0800 Subject: [PATCH 2/4] Updated name locale --- src/locale/my.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/locale/my.js b/src/locale/my.js index 6ae13cffb..0347bfa18 100644 --- a/src/locale/my.js +++ b/src/locale/my.js @@ -1,7 +1,7 @@ import dayjs from 'dayjs' const locale = { - name: 'id', + name: 'my', weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'), months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'), weekStart: 1, From 6a881a67bec45a2fa263f2b01c6050a890d29bd8 Mon Sep 17 00:00:00 2001 From: Pete Arif Date: Mon, 11 Feb 2019 11:11:05 +0800 Subject: [PATCH 3/4] Update my.js --- src/locale/my.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/locale/my.js b/src/locale/my.js index 0347bfa18..740b95b32 100644 --- a/src/locale/my.js +++ b/src/locale/my.js @@ -1,7 +1,7 @@ import dayjs from 'dayjs' const locale = { - name: 'my', + name: 'ms', weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'), months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'), weekStart: 1, From 62a5b9636208c1318130864e5796c3ab40c6ff0d Mon Sep 17 00:00:00 2001 From: Pete Arif Date: Mon, 11 Feb 2019 11:12:58 +0800 Subject: [PATCH 4/4] Rename my.js to ms.js --- src/locale/{my.js => ms.js} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename src/locale/{my.js => ms.js} (100%) diff --git a/src/locale/my.js b/src/locale/ms.js similarity index 100% rename from src/locale/my.js rename to src/locale/ms.js