@awes-io/ui 2.94.0 → 2.94.1

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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.94.1](https://github.com/awes-io/client/compare/@awes-io/ui@2.94.0...@awes-io/ui@2.94.1) (2024-02-12)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **aw-calendar-weekdays:** support long and short locales in translation ([d9e5b08](https://github.com/awes-io/client/commit/d9e5b088e2ae95858c1fedca1cd05613a4bdafea))
12
+
13
+
14
+
15
+
16
+
6
17
  # [2.94.0](https://github.com/awes-io/client/compare/@awes-io/ui@2.93.1...@awes-io/ui@2.94.0) (2024-02-07)
7
18
 
8
19
 
@@ -31,13 +31,22 @@ export default {
31
31
  )
32
32
  : firstDay
33
33
 
34
- const namesArray = Array.isArray(weekdayNames)
35
- ? weekdayNames
36
- : pathOr(
37
- _config.weekdaysShort,
38
- ['Ls', parent.$i18n.locale, 'weekdaysMin'],
39
- parent.$dayjs
40
- )
34
+ let namesArray = weekdayNames
35
+
36
+ if (!Array.isArray(namesArray)) {
37
+ const locale = parent.$i18n.locale.toLowerCase()
38
+ const shortLocale = locale.substr(0, 2)
39
+
40
+ namesArray = pathOr(
41
+ pathOr(
42
+ _config.weekdaysShort,
43
+ ['Ls', shortLocale, 'weekdaysMin'],
44
+ parent.$dayjs
45
+ ),
46
+ ['Ls', locale, 'weekdaysMin'],
47
+ parent.$dayjs
48
+ )
49
+ }
41
50
 
42
51
  const sortedNames = namesArray
43
52
  .slice(firstDay)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awes-io/ui",
3
- "version": "2.94.0",
3
+ "version": "2.94.1",
4
4
  "description": "User Interface (UI) components",
5
5
  "keywords": [
6
6
  "ui",
@@ -114,5 +114,5 @@
114
114
  "rollup-plugin-visualizer": "^2.6.0",
115
115
  "rollup-plugin-vue": "^5.0.1"
116
116
  },
117
- "gitHead": "e89427eeea7b836568dccea9f19a525abd85b1d1"
117
+ "gitHead": "83f5cd91ba1e5447dcabd88201f143a656fffc27"
118
118
  }