@aarhus-university/au-lib-react-components 12.2.0 → 12.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/lib/dates.ts +2 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "sideEffects": true,
3
3
  "name": "@aarhus-university/au-lib-react-components",
4
- "version": "12.2.0",
4
+ "version": "12.2.2",
5
5
  "description": "Library for shared React components for various applications on au.dk",
6
6
  "scripts": {
7
7
  "test": "jest",
@@ -76,7 +76,7 @@
76
76
  "dependencies": {
77
77
  "@aarhus-university/au-designsystem-delphinus": "1.3.3",
78
78
  "@aarhus-university/au-designsystem-delphinus-dev": "0.7.0",
79
- "@aarhus-university/types": "1.0.1",
79
+ "@aarhus-university/types": "1.1.0",
80
80
  "@reduxjs/toolkit": "^1.9.5",
81
81
  "@tinymce/tinymce-react": "^4.3.2",
82
82
  "@types/google.analytics": "^0.0.42",
package/src/lib/dates.ts CHANGED
@@ -3,11 +3,13 @@ import 'dayjs/locale/da';
3
3
  import isoWeek from 'dayjs/plugin/isoWeek';
4
4
  import weekday from 'dayjs/plugin/weekday';
5
5
  import advancedFormat from 'dayjs/plugin/advancedFormat';
6
+ import localizedFormat from 'dayjs/plugin/localizedFormat';
6
7
  import updateLocale from 'dayjs/plugin/updateLocale';
7
8
 
8
9
  dayjs.extend(isoWeek);
9
10
  dayjs.extend(weekday);
10
11
  dayjs.extend(advancedFormat);
12
+ dayjs.extend(localizedFormat);
11
13
  dayjs.extend(updateLocale);
12
14
 
13
15
  dayjs.updateLocale('da', {