Skip to content

Commit

Permalink
fix: Add Occitan (oc-lnc) locale file (#551)
Browse files Browse the repository at this point in the history
  • Loading branch information
Quenty31 authored and iamkun committed Apr 2, 2019
1 parent 222592d commit c30b715
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions src/locale/oc-lnc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import dayjs from 'dayjs'

const locale = {
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('_'),
monthsShort: 'Gen_Feb_Març_Abr_Mai_Junh_Julh_Ago_Set_Oct_Nov_Dec'.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 jorns',
M: 'un mes',
MM: '%d meses',
y: 'un an',
yy: '%d ans'
},
ordinal: n => `${n}º`
}

dayjs.locale(locale, null, true)

export default locale

0 comments on commit c30b715

Please sign in to comment.