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.
@@ -1,4 +1,4 @@
1
- import { M as De } from "./TriiiceratopsViewer-CVbWWD1o.js";
1
+ import { M as De } from "./TriiiceratopsViewer-C5AKP6W4.js";
2
2
  function Fe(oe, F) {
3
3
  for (var e = 0; e < F.length; e++) {
4
4
  const t = F[e];
@@ -1,5 +1,4 @@
1
- import * as messages from '../paraglide/messages.js';
1
+ export { m } from '../paraglide/messages.js';
2
2
  export declare const language: {
3
3
  readonly current: "en" | "de";
4
4
  };
5
- export declare const m: typeof messages;
@@ -1,20 +1,16 @@
1
- import * as messages from '../paraglide/messages.js';
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
- let tag = $state(getLocale());
4
- // Wrap setLocale to update our reactive state when locale changes
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
- tag = getLocale();
10
+ currentLocale = getLocale();
8
11
  });
9
12
  export const language = {
10
13
  get current() {
11
- return tag;
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
- });