triiiceratops 0.9.7 → 0.9.8
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/dist/chunks/{TriiiceratopsViewer-CVbWWD1o.js → TriiiceratopsViewer-C5AKP6W4.js} +3385 -4242
- package/dist/chunks/{openseadragon-H3QhDkLJ.js → openseadragon-BOsWwPVT.js} +1 -1
- package/dist/state/i18n.svelte.d.ts +1 -1
- package/dist/state/i18n.svelte.js +9 -11
- package/dist/triiiceratops-bundle.js +2008 -2865
- package/dist/triiiceratops-element-image.js +139 -126
- package/dist/triiiceratops-element.js +1 -1
- package/package.json +1 -1
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
import * as messages from '../paraglide/messages.js';
|
|
2
2
|
import { getLocale, setLocale as baseSetLocale, overwriteSetLocale, } from '../paraglide/runtime.js';
|
|
3
|
-
|
|
4
|
-
//
|
|
3
|
+
// For SSR compatibility, we use a simple variable instead of $state()
|
|
4
|
+
// The consumer's app will handle reactivity at a higher level if needed
|
|
5
|
+
let currentLocale = getLocale();
|
|
6
|
+
// Wrap setLocale to track locale changes
|
|
5
7
|
overwriteSetLocale((newLocale, options) => {
|
|
6
8
|
baseSetLocale(newLocale, options);
|
|
7
|
-
|
|
9
|
+
currentLocale = getLocale();
|
|
8
10
|
});
|
|
9
11
|
export const language = {
|
|
10
12
|
get current() {
|
|
11
|
-
return
|
|
13
|
+
return currentLocale;
|
|
12
14
|
},
|
|
13
15
|
};
|
|
14
|
-
export
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
tag;
|
|
18
|
-
return Reflect.get(target, prop, receiver);
|
|
19
|
-
},
|
|
20
|
-
});
|
|
16
|
+
// Re-export messages directly for SSR compatibility
|
|
17
|
+
// The proxy pattern with $state doesn't work during SSR
|
|
18
|
+
export { messages as m };
|