-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Update Polish (pl) , Hungarian (hr) and Lithuanian (lt) localiza…
…tion (#1045)
- Loading branch information
1 parent
0f20c3a
commit 638fd39
Showing
6 changed files
with
101 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import moment from 'moment' | ||
import dayjs from '../../src' | ||
import '../../src/locale/hr' | ||
|
||
it('Format month with locale function', () => { | ||
for (let i = 0; i <= 7; i += 1) { | ||
const dayjsUK = dayjs().locale('hr').add(i, 'day') | ||
const momentUK = moment().locale('hr').add(i, 'day') | ||
const testFormat1 = 'DD MMMM YYYY MMM' | ||
const testFormat2 = 'dddd, MMMM D YYYY' | ||
const testFormat3 = 'MMMM' | ||
const testFormat4 = 'MMM' | ||
expect(dayjsUK.format(testFormat1)).toEqual(momentUK.format(testFormat1)) | ||
expect(dayjsUK.format(testFormat2)).toEqual(momentUK.format(testFormat2)) | ||
expect(dayjsUK.format(testFormat3)).toEqual(momentUK.format(testFormat3)) | ||
expect(dayjsUK.format(testFormat4)).toEqual(momentUK.format(testFormat4)) | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import moment from 'moment' | ||
import dayjs from '../../src' | ||
import '../../src/locale/lt' | ||
|
||
it('Format month with locale function', () => { | ||
for (let i = 0; i <= 7; i += 1) { | ||
const dayjsUK = dayjs().locale('lt').add(i, 'day') | ||
const momentUK = moment().locale('lt').add(i, 'day') | ||
const testFormat1 = 'DD MMMM YYYY MMM' | ||
const testFormat2 = 'dddd, MMMM D YYYY' | ||
const testFormat3 = 'MMMM' | ||
const testFormat4 = 'MMM' | ||
expect(dayjsUK.format(testFormat1)).toEqual(momentUK.format(testFormat1)) | ||
expect(dayjsUK.format(testFormat2)).toEqual(momentUK.format(testFormat2)) | ||
expect(dayjsUK.format(testFormat3)).toEqual(momentUK.format(testFormat3)) | ||
expect(dayjsUK.format(testFormat4)).toEqual(momentUK.format(testFormat4)) | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters