From 58e539e7dc1c931d8de417afc8ef2e6750d76e33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Quent=C3=AD?= <33203663+Quenty31@users.noreply.github.com> Date: Sun, 31 Mar 2019 20:23:51 +0200 Subject: [PATCH 1/6] Adds Occitan locale file In its general / central dialect --- src/locale/oc.js | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 src/locale/oc.js diff --git a/src/locale/oc.js b/src/locale/oc.js new file mode 100644 index 000000000..7ae733a31 --- /dev/null +++ b/src/locale/oc.js @@ -0,0 +1,36 @@ +import dayjs from 'dayjs' + +const locale = { + name: 'ca', + weekdays: 'Dimenge_Diluns_Dimars_Dimècres_Dijòus_Divendres_Dissabte'.split('_'), + months: 'Genièr_Febrièr_Març_Abrial_Mai_Junh_Julhet_Agost_Setembre_Octòbre_Novembre_Decembre'.split('_'), + weekStart: 1, + formats: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM [de] YYYY', + LLL: 'D MMMM [de] YYYY [a] H:mm', + LLLL: 'dddd D MMMM [de] YYYY [a] H:mm' + }, + relativeTime: { + future: 'en %s', + past: 'fa %s', + s: 'unas segondas', + m: 'una minuta', + mm: '%d minutas', + h: 'una ora', + hh: '%d oras', + d: 'un jorn', + dd: '%d jorn', + M: 'un mes', + MM: '%d meses', + y: 'un an', + yy: '%d ans' + }, + ordinal: n => `${n}º` +} + +dayjs.locale(locale, null, true) + +export default locale From 5732b27164101e5d7c6175668459a326582e8348 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Quent=C3=AD?= <33203663+Quenty31@users.noreply.github.com> Date: Sun, 31 Mar 2019 20:30:13 +0200 Subject: [PATCH 2/6] Update oc.js --- src/locale/oc.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/locale/oc.js b/src/locale/oc.js index 7ae733a31..469c37a4c 100644 --- a/src/locale/oc.js +++ b/src/locale/oc.js @@ -3,7 +3,9 @@ import dayjs from 'dayjs' const locale = { name: 'ca', weekdays: 'Dimenge_Diluns_Dimars_Dimècres_Dijòus_Divendres_Dissabte'.split('_'), + weekdaysShort: 'Dg_Dl_Dm_Dc_Dj_Dv_Ds'.split('_'), months: 'Genièr_Febrièr_Març_Abrial_Mai_Junh_Julhet_Agost_Setembre_Octòbre_Novembre_Decembre'.split('_'), + monthsShort: 'Gen_Feb_Març_Abr_Mai_Junh_Julh_Ago_Set_Oct_Nov_Dec'.split('_'), weekStart: 1, formats: { LT: 'H:mm', From 9a581be55fe07b0e610e6bdac7ff3b07dfc2b154 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Quent=C3=AD?= <33203663+Quenty31@users.noreply.github.com> Date: Mon, 1 Apr 2019 07:39:05 +0200 Subject: [PATCH 3/6] Update oc.js --- src/locale/oc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/locale/oc.js b/src/locale/oc.js index 469c37a4c..768b7db84 100644 --- a/src/locale/oc.js +++ b/src/locale/oc.js @@ -1,7 +1,7 @@ import dayjs from 'dayjs' const locale = { - name: 'ca', + name: 'oc', weekdays: 'Dimenge_Diluns_Dimars_Dimècres_Dijòus_Divendres_Dissabte'.split('_'), weekdaysShort: 'Dg_Dl_Dm_Dc_Dj_Dv_Ds'.split('_'), months: 'Genièr_Febrièr_Març_Abrial_Mai_Junh_Julhet_Agost_Setembre_Octòbre_Novembre_Decembre'.split('_'), From e0dc25e694bd93d485912761401dcdb7066e769b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Quent=C3=AD?= <33203663+Quenty31@users.noreply.github.com> Date: Mon, 1 Apr 2019 07:51:43 +0200 Subject: [PATCH 4/6] Rename oc.js to oc-lnc.js --- src/locale/{oc.js => oc-lnc.js} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename src/locale/{oc.js => oc-lnc.js} (100%) diff --git a/src/locale/oc.js b/src/locale/oc-lnc.js similarity index 100% rename from src/locale/oc.js rename to src/locale/oc-lnc.js From 0bc6536164ebe0bcbdfea4232b4fc6e0473fb88b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Quent=C3=AD?= <33203663+Quenty31@users.noreply.github.com> Date: Mon, 1 Apr 2019 19:37:45 +0200 Subject: [PATCH 5/6] Update oc-lnc.js --- src/locale/oc-lnc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/locale/oc-lnc.js b/src/locale/oc-lnc.js index 768b7db84..feebc9336 100644 --- a/src/locale/oc-lnc.js +++ b/src/locale/oc-lnc.js @@ -1,7 +1,7 @@ import dayjs from 'dayjs' const locale = { - name: 'oc', + name: 'oc-lnc', weekdays: 'Dimenge_Diluns_Dimars_Dimècres_Dijòus_Divendres_Dissabte'.split('_'), weekdaysShort: 'Dg_Dl_Dm_Dc_Dj_Dv_Ds'.split('_'), months: 'Genièr_Febrièr_Març_Abrial_Mai_Junh_Julhet_Agost_Setembre_Octòbre_Novembre_Decembre'.split('_'), From 74ec1d35cc53520b378c65a854f5a8303340b79b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Quent=C3=AD?= <33203663+Quenty31@users.noreply.github.com> Date: Mon, 1 Apr 2019 19:44:10 +0200 Subject: [PATCH 6/6] Update oc-lnc.js --- src/locale/oc-lnc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/locale/oc-lnc.js b/src/locale/oc-lnc.js index feebc9336..8e7ec7146 100644 --- a/src/locale/oc-lnc.js +++ b/src/locale/oc-lnc.js @@ -24,7 +24,7 @@ const locale = { h: 'una ora', hh: '%d oras', d: 'un jorn', - dd: '%d jorn', + dd: '%d jorns', M: 'un mes', MM: '%d meses', y: 'un an',