@raclettejs/core 0.1.7 → 0.1.9

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
@@ -7,6 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.1.9] - 11.09.2025
11
+
12
+ ### Feat
13
+
14
+ - language preference is now properly respected in all components
15
+
16
+ ## [0.1.8] - 11.09.2025
17
+
18
+ ### Changed
19
+
20
+ - language and theme toggle in user menu now always store preference in localstorage, not just in dev mode
21
+
10
22
  ## [0.1.7] - 11.09.2025
11
23
 
12
24
  ### Style
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raclettejs/core",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "description": "racletteJS core package",
5
5
  "repository": "https://gitlab.com/raclettejs/core",
6
6
  "author": "Pacifico Digital Explorations GmbH <info@raclettejs.com>",
@@ -9,7 +9,6 @@ const setupSpace = async (
9
9
  interactionLinks: InteractionLink[],
10
10
  projectConfig: ProjectConfiguration,
11
11
  ) => {
12
- const userLanguage = useLocalStorage<string>("user-language", null)
13
12
  const userTheme = useLocalStorage<string>("user-theme", null)
14
13
  let sessionTheme = userTheme.value
15
14
  // set compositions
@@ -48,7 +47,7 @@ const setupSpace = async (
48
47
  }
49
48
  await $store.dispatch({
50
49
  type: "ui/update",
51
- payload: { theme: sessionTheme},
50
+ payload: { theme: sessionTheme },
52
51
  })
53
52
  }
54
53
 
@@ -153,15 +153,11 @@ const isInDev = computed(
153
153
 
154
154
  const toggleTheme = () => {
155
155
  theme.value = theme.value === "light" ? "dark" : "light"
156
- if (isInDev.value) {
157
- userTheme.value = theme.value
158
- }
156
+ userTheme.value = theme.value
159
157
  }
160
158
 
161
159
  const storeLocale = () => {
162
- if (isInDev.value) {
163
- userLanguage.value = locale.value
164
- }
160
+ userLanguage.value = locale.value
165
161
  }
166
162
 
167
163
  const refreshQueries = () => {
@@ -410,7 +410,8 @@ class I18nOrchestrator {
410
410
  private async determineInitialLocale(
411
411
  availableLocales: string[],
412
412
  ): Promise<string> {
413
- const browserLocale = navigator.language
413
+ const userLanguage = localStorage.getItem("user-language")
414
+ const browserLocale = userLanguage || navigator.language
414
415
  let initialLocale = this.fallbackLocale
415
416
 
416
417
  // Use the same fallback logic as message loading