@awes-io/ui 2.97.1 → 2.97.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.
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.97.2](https://github.com/awes-io/client/compare/@awes-io/ui@2.97.1...@awes-io/ui@2.97.2) (2024-02-19)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * hotfix app language detection ([7267884](https://github.com/awes-io/client/commit/7267884cddd4ded7831e5fc6653f860158df0eb2))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [2.97.1](https://github.com/awes-io/client/compare/@awes-io/ui@2.97.0...@awes-io/ui@2.97.1) (2024-02-19)
7
18
 
8
19
 
@@ -119,6 +119,11 @@ export default async ({ app, $axios }) => {
119
119
  if (app.i18n.locale !== saved) {
120
120
  app.i18n.locale = saved
121
121
  }
122
+ } else if (saved && localeCodes.some((code) => code.startsWith(saved))) {
123
+ const extendedLocale = localeCodes.find((code) => code.startsWith(saved))
124
+ if (app.i18n.locale !== extendedLocale) {
125
+ app.i18n.locale = extendedLocale
126
+ }
122
127
  } else if (_browserLang) {
123
128
  app.i18n.locale = _browserLang
124
129
  JsCookie.set(langCookie, _browserLang, { sameSite: 'lax', expires: 365 })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awes-io/ui",
3
- "version": "2.97.1",
3
+ "version": "2.97.2",
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": "4d4f517ba81e113637c290eb086c17aa5f9125dc"
117
+ "gitHead": "e3953c7a4469b7d3453cd10aefa789153700b4bc"
118
118
  }