@raclettejs/core 0.1.8 → 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,12 @@ 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
|
+
|
|
10
16
|
## [0.1.8] - 11.09.2025
|
|
11
17
|
|
|
12
18
|
### Changed
|
package/package.json
CHANGED
|
@@ -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
|
|
|
@@ -410,7 +410,8 @@ class I18nOrchestrator {
|
|
|
410
410
|
private async determineInitialLocale(
|
|
411
411
|
availableLocales: string[],
|
|
412
412
|
): Promise<string> {
|
|
413
|
-
const
|
|
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
|