Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/locale/sv-fi.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ const locale = {
return `[${n}${o}]`
},
formats: {
LT: 'HH.mm',
LTS: 'HH.mm.ss',
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD.MM.YYYY',
LL: 'D. MMMM YYYY',
LLL: 'D. MMMM YYYY, [kl.] HH.mm',
LLLL: 'dddd, D. MMMM YYYY, [kl.] HH.mm',
LLL: 'D. MMMM YYYY, [kl.] HH:mm',
LLLL: 'dddd, D. MMMM YYYY, [kl.] HH:mm',
l: 'D.M.YYYY',
ll: 'D. MMM YYYY',
lll: 'D. MMM YYYY, [kl.] HH.mm',
llll: 'ddd, D. MMM YYYY, [kl.] HH.mm'
lll: 'D. MMM YYYY, [kl.] HH:mm',
llll: 'ddd, D. MMM YYYY, [kl.] HH:mm'
},
relativeTime: {
future: 'om %s',
Expand Down
12 changes: 6 additions & 6 deletions test/locale/sv-fi.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ dayjs.extend(localizedFormat)
it('Finland Swedish locale', () => {
// time
expect(dayjs('2019-02-01 12:34:56').locale('sv-fi').format('LT'))
.toBe('12.34')
.toBe('12:34')
expect(dayjs('2019-02-01 23:45:56').locale('sv-fi').format('LTS'))
.toBe('23.45.56')
.toBe('23:45:56')

// date
expect(dayjs('2019-02-01').locale('sv-fi').format('L'))
Expand All @@ -24,12 +24,12 @@ it('Finland Swedish locale', () => {

// date and time
expect(dayjs('2019-03-01 12:30').locale('sv-fi').format('LLL'))
.toBe('1. mars 2019, kl. 12.30')
.toBe('1. mars 2019, kl. 12:30')
expect(dayjs('2021-06-12 17:30').locale('sv-fi').format('LLLL'))
.toBe('lördag, 12. juni 2021, kl. 17.30')
.toBe('lördag, 12. juni 2021, kl. 17:30')
// short
expect(dayjs('2019-03-01 12:30').locale('sv-fi').format('lll'))
.toBe('1. mar 2019, kl. 12.30')
.toBe('1. mar 2019, kl. 12:30')
expect(dayjs('2021-06-01 17:30').locale('sv-fi').format('llll'))
.toBe('tis, 1. jun 2021, kl. 17.30')
.toBe('tis, 1. jun 2021, kl. 17:30')
})
Loading