Skip to content

Commit c30b715

Browse files
Quenty31iamkun
authored andcommittedApr 2, 2019
fix: Add Occitan (oc-lnc) locale file (#551)
1 parent 222592d commit c30b715

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
 

‎src/locale/oc-lnc.js

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
import dayjs from 'dayjs'
2+
3+
const locale = {
4+
name: 'oc-lnc',
5+
weekdays: 'Dimenge_Diluns_Dimars_Dimècres_Dijòus_Divendres_Dissabte'.split('_'),
6+
weekdaysShort: 'Dg_Dl_Dm_Dc_Dj_Dv_Ds'.split('_'),
7+
months: 'Genièr_Febrièr_Març_Abrial_Mai_Junh_Julhet_Agost_Setembre_Octòbre_Novembre_Decembre'.split('_'),
8+
monthsShort: 'Gen_Feb_Març_Abr_Mai_Junh_Julh_Ago_Set_Oct_Nov_Dec'.split('_'),
9+
weekStart: 1,
10+
formats: {
11+
LT: 'H:mm',
12+
LTS: 'H:mm:ss',
13+
L: 'DD/MM/YYYY',
14+
LL: 'D MMMM [de] YYYY',
15+
LLL: 'D MMMM [de] YYYY [a] H:mm',
16+
LLLL: 'dddd D MMMM [de] YYYY [a] H:mm'
17+
},
18+
relativeTime: {
19+
future: 'en %s',
20+
past: 'fa %s',
21+
s: 'unas segondas',
22+
m: 'una minuta',
23+
mm: '%d minutas',
24+
h: 'una ora',
25+
hh: '%d oras',
26+
d: 'un jorn',
27+
dd: '%d jorns',
28+
M: 'un mes',
29+
MM: '%d meses',
30+
y: 'un an',
31+
yy: '%d ans'
32+
},
33+
ordinal: n => `${n}º`
34+
}
35+
36+
dayjs.locale(locale, null, true)
37+
38+
export default locale

0 commit comments

Comments
 (0)
Please sign in to comment.