Skip to content

Commit f142082

Browse files
frozenziaiamkun
authored andcommitted
fix: Update Swedish and Finnish locales (#488)
* Add weekdaysShort, weekdaysMin, and monthsShort
1 parent c27697d commit f142082

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/locale/fi.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const locale = {
66
weekdaysShort: 'su_ma_ti_ke_to_pe_la'.split('_'), // There is no short form of weekdays in Finnish except this 2 letter format so it is used for both 'weekdaysShort' and 'weekdaysMin'
77
weekdaysMin: 'su_ma_ti_ke_to_pe_la'.split('_'),
88
months: 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split('_'), // Note month names are not capitalized in Finnish
9-
monthsShort: 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split('_'), // There is no short form of months in Finnish so just use the regular long form always
9+
monthsShort: 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split('_'),
1010
ordinal: n => `${n}.`,
1111
weekStart: 1,
1212
/*

src/locale/sv.js

+3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ import dayjs from 'dayjs'
33
const locale = {
44
name: 'sv',
55
weekdays: 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),
6+
weekdaysShort: 'sön_mån_tis_ons_tor_fre_lör'.split('_'),
7+
weekdaysMin: 'sö_må_ti_on_to_fr_lö'.split('_'),
68
months: 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split('_'),
9+
monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
710
weekStart: 1,
811
ordinal: (n) => {
912
const b = n % 10

0 commit comments

Comments
 (0)