@wuchale/svelte 0.17.2 → 0.17.4

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/index.js CHANGED
@@ -68,6 +68,9 @@ const defaultArgs = {
68
68
  };
69
69
  const resolveLoaderPath = loaderPathResolver(import.meta.url, '../src/loaders', 'svelte.js');
70
70
  export function getDefaultLoaderPath(loader, bundle) {
71
+ if (loader === 'custom') {
72
+ return null;
73
+ }
71
74
  if (bundle) {
72
75
  return resolveLoaderPath('bundle');
73
76
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wuchale/svelte",
3
- "version": "0.17.2",
3
+ "version": "0.17.4",
4
4
  "description": "Protobuf-like i18n from plain code: Svelte adapter",
5
5
  "scripts": {
6
6
  "dev": "tsc --watch",
@@ -52,7 +52,7 @@
52
52
  "license": "MIT",
53
53
  "dependencies": {
54
54
  "svelte": "^5.37.0",
55
- "wuchale": "^0.18.1"
55
+ "wuchale": "^0.18.3"
56
56
  },
57
57
  "devDependencies": {
58
58
  "acorn": "^8.15.0",
@@ -1,9 +1,7 @@
1
- // This is just the default loader.
2
- // You can customize it however you want, it will not be overwritten once it exists and is not empty.
3
-
4
1
  import toRuntime from "wuchale/runtime"
2
+ import { locales } from '${DATA}'
5
3
 
6
- let locale = $state('en')
4
+ let locale = $state(locales[0])
7
5
 
8
6
  /**
9
7
  * @param {string} newLocale
@@ -1,6 +1,3 @@
1
- // This is just the default loader.
2
- // You can customize it however you want, it will not be overwritten once it exists and is not empty.
3
-
4
1
  import { loadCatalog, loadIDs } from '${PROXY}'
5
2
  import { registerLoaders, defaultCollection } from 'wuchale/load-utils'
6
3
 
@@ -1,6 +1,3 @@
1
- // This is just the default loader.
2
- // You can customize it however you want, it will not be overwritten once it exists and is not empty.
3
-
4
1
  import { loadCatalog, loadIDs } from '${PROXY_SYNC}'
5
2
  import { currentRuntime } from 'wuchale/load-utils/server'
6
3