@verbaly/svelte 0.14.5 → 0.15.0

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.
Files changed (2) hide show
  1. package/README.md +6 -5
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -15,13 +15,13 @@ Idiomatic Svelte stores (4 and 5) over the [Verbaly](https://github.com/AronSoto
15
15
 
16
16
  ## 🚀 Install
17
17
 
18
- ```
18
+ ```bash
19
19
  pnpm add @verbaly/svelte
20
20
  ```
21
21
 
22
22
  ## ⚡ Usage
23
23
 
24
- ```
24
+ ```html
25
25
  <!-- +layout.svelte -->
26
26
  <script>
27
27
  import { provideVerbaly } from '@verbaly/svelte';
@@ -31,7 +31,8 @@ pnpm add @verbaly/svelte
31
31
  </script>
32
32
  ```
33
33
 
34
- ```
34
+ <!-- prettier-ignore -->
35
+ ```html
35
36
  <!-- Inbox.svelte -->
36
37
  <script>
37
38
  import { useT, useLocale } from '@verbaly/svelte';
@@ -49,7 +50,7 @@ pnpm add @verbaly/svelte
49
50
 
50
51
  No component tree? The store factories work with any instance:
51
52
 
52
- ```
53
+ ```ts
53
54
  import { createVerbaly } from 'verbaly';
54
55
  import { localeStore, tStore } from '@verbaly/svelte';
55
56
 
@@ -62,7 +63,7 @@ export const locale = localeStore(verbaly);
62
63
 
63
64
  Messages with tags (`'The <em>build</em> gate'`) render as real elements — same phrasing-tag whitelist as `data-verbaly-rich`, unknown tags unwrap to inert text, XSS-safe:
64
65
 
65
- ```
66
+ ```html
66
67
  <script>
67
68
  import Trans from '@verbaly/svelte/Trans.svelte';
68
69
  </script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verbaly/svelte",
3
- "version": "0.14.5",
3
+ "version": "0.15.0",
4
4
  "description": "Svelte bindings for Verbaly — stores over the reactive core.",
5
5
  "keywords": [
6
6
  "i18n",
@@ -45,13 +45,13 @@
45
45
  },
46
46
  "peerDependencies": {
47
47
  "svelte": "^4.0.0 || ^5.0.0",
48
- "verbaly": "^0.14.5"
48
+ "verbaly": "^0.15.0"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@sveltejs/vite-plugin-svelte": "^7.2.0",
52
52
  "happy-dom": "^20.10.6",
53
53
  "svelte": "^5.56.4",
54
- "verbaly": "0.14.5"
54
+ "verbaly": "0.15.0"
55
55
  },
56
56
  "scripts": {
57
57
  "build": "tsdown && node scripts/copy-svelte.mjs",