Skip to content

Commit b2642e2

Browse files
fix: Add Haitian Creole (ht) and Spanish Puerto Rico (es-pr) locale configs (#958)
1 parent 14ab808 commit b2642e2

File tree

2 files changed

+81
-0
lines changed

2 files changed

+81
-0
lines changed

src/locale/es-pr.js

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
// Spanish (Puerto Rico) [es-PR]
2+
import dayjs from 'dayjs'
3+
4+
const locale = {
5+
name: 'es-pr',
6+
monthsShort: 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
7+
weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
8+
weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
9+
weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
10+
months: 'Enero_Febrero_Marzo_Abril_Mayo_Junio_Julio_Agosto_Septiembre_Octubre_Noviembre_Diciembre'.split('_'),
11+
weekStart: 1,
12+
formats: {
13+
LT: 'h:mm A',
14+
LTS: 'h:mm:ss A',
15+
L: 'MM/DD/YYYY',
16+
LL: 'D [de] MMMM [de] YYYY',
17+
LLL: 'D [de] MMMM [de] YYYY h:mm A',
18+
LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A'
19+
},
20+
relativeTime: {
21+
future: 'en %s',
22+
past: 'hace %s',
23+
s: 'unos segundos',
24+
m: 'un minuto',
25+
mm: '%d minutos',
26+
h: 'una hora',
27+
hh: '%d horas',
28+
d: 'un día',
29+
dd: '%d días',
30+
M: 'un mes',
31+
MM: '%d meses',
32+
y: 'un año',
33+
yy: '%d años'
34+
},
35+
ordinal: n => `${n}º`
36+
}
37+
38+
dayjs.locale(locale, null, true)
39+
40+
export default locale
41+

src/locale/ht.js

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
// Haitian Creole (Haiti) [ht]
2+
import dayjs from 'dayjs'
3+
4+
const locale = {
5+
name: 'ht',
6+
weekdays: 'dimanch_lendi_madi_mèkredi_jedi_vandredi_samdi'.split('_'),
7+
months: 'janvye_fevriye_mas_avril_me_jen_jiyè_out_septanm_oktòb_novanm_desanm'.split('_'),
8+
weekdaysShort: 'dim._len._mad._mèk._jed._van._sam.'.split('_'),
9+
monthsShort: 'jan._fev._mas_avr._me_jen_jiyè._out_sept._okt._nov._des.'.split('_'),
10+
weekdaysMin: 'di_le_ma_mè_je_va_sa'.split('_'),
11+
ordinal: n => n,
12+
formats: {
13+
LT: 'HH:mm',
14+
LTS: 'HH:mm:ss',
15+
L: 'DD/MM/YYYY',
16+
LL: 'D MMMM YYYY',
17+
LLL: 'D MMMM YYYY HH:mm',
18+
LLLL: 'dddd D MMMM YYYY HH:mm'
19+
},
20+
relativeTime: {
21+
future: 'nan %s',
22+
past: 'sa gen %s',
23+
s: 'kèk segond',
24+
m: 'yon minit',
25+
mm: '%d minit',
26+
h: 'inèdtan',
27+
hh: '%d zè',
28+
d: 'yon jou',
29+
dd: '%d jou',
30+
M: 'yon mwa',
31+
MM: '%d mwa',
32+
y: 'yon ane',
33+
yy: '%d ane'
34+
}
35+
}
36+
37+
dayjs.locale(locale, null, true)
38+
39+
export default locale
40+

0 commit comments

Comments
 (0)