triiiceratops 0.9.7 → 0.9.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/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 -2
- package/dist/state/i18n.svelte.js +8 -12
- 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,16 @@
|
|
|
1
|
-
|
|
1
|
+
// Re-export messages directly from paraglide
|
|
2
|
+
// The 'm' export is provided by paraglide's messages.js
|
|
3
|
+
export { m } from '../paraglide/messages.js';
|
|
2
4
|
import { getLocale, setLocale as baseSetLocale, overwriteSetLocale, } from '../paraglide/runtime.js';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
+
// For SSR compatibility, we use a simple variable instead of $state()
|
|
6
|
+
let currentLocale = getLocale();
|
|
7
|
+
// Wrap setLocale to track locale changes
|
|
5
8
|
overwriteSetLocale((newLocale, options) => {
|
|
6
9
|
baseSetLocale(newLocale, options);
|
|
7
|
-
|
|
10
|
+
currentLocale = getLocale();
|
|
8
11
|
});
|
|
9
12
|
export const language = {
|
|
10
13
|
get current() {
|
|
11
|
-
return
|
|
14
|
+
return currentLocale;
|
|
12
15
|
},
|
|
13
16
|
};
|
|
14
|
-
export const m = new Proxy(messages, {
|
|
15
|
-
get(target, prop, receiver) {
|
|
16
|
-
// Register dependency by accessing the signal
|
|
17
|
-
tag;
|
|
18
|
-
return Reflect.get(target, prop, receiver);
|
|
19
|
-
},
|
|
20
|
-
});
|