triiiceratops 0.9.8 → 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,7 +1,8 @@
|
|
|
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
5
|
// 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
6
|
let currentLocale = getLocale();
|
|
6
7
|
// Wrap setLocale to track locale changes
|
|
7
8
|
overwriteSetLocale((newLocale, options) => {
|
|
@@ -13,6 +14,3 @@ export const language = {
|
|
|
13
14
|
return currentLocale;
|
|
14
15
|
},
|
|
15
16
|
};
|
|
16
|
-
// Re-export messages directly for SSR compatibility
|
|
17
|
-
// The proxy pattern with $state doesn't work during SSR
|
|
18
|
-
export { messages as m };
|