@verbaly/svelte 0.13.0 → 0.14.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 +8 -8
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -13,15 +13,15 @@
13
13
 
14
14
  Idiomatic Svelte stores (4 and 5) over the [Verbaly](https://github.com/AronSoto/verbaly) core — the `$` auto-subscription just works, re-rendering on every locale switch.
15
15
 
16
- ## Install
16
+ ## 🚀 Install
17
17
 
18
- ```bash
18
+ ```
19
19
  pnpm add @verbaly/svelte
20
20
  ```
21
21
 
22
- ## Usage
22
+ ## Usage
23
23
 
24
- ```svelte
24
+ ```
25
25
  <!-- +layout.svelte -->
26
26
  <script>
27
27
  import { provideVerbaly } from '@verbaly/svelte';
@@ -31,7 +31,7 @@ pnpm add @verbaly/svelte
31
31
  </script>
32
32
  ```
33
33
 
34
- ```svelte
34
+ ```
35
35
  <!-- Inbox.svelte -->
36
36
  <script>
37
37
  import { useT, useLocale } from '@verbaly/svelte';
@@ -49,7 +49,7 @@ pnpm add @verbaly/svelte
49
49
 
50
50
  No component tree? The store factories work with any instance:
51
51
 
52
- ```ts
52
+ ```
53
53
  import { createVerbaly } from 'verbaly';
54
54
  import { localeStore, tStore } from '@verbaly/svelte';
55
55
 
@@ -58,11 +58,11 @@ export const t = tStore(verbaly);
58
58
  export const locale = localeStore(verbaly);
59
59
  ```
60
60
 
61
- ## `<Trans>` — rich text
61
+ ## `<Trans>` — rich text
62
62
 
63
63
  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
64
 
65
- ```svelte
65
+ ```
66
66
  <script>
67
67
  import Trans from '@verbaly/svelte/Trans.svelte';
68
68
  </script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verbaly/svelte",
3
- "version": "0.13.0",
3
+ "version": "0.14.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.13.0"
48
+ "verbaly": "^0.14.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.13.0"
54
+ "verbaly": "0.14.0"
55
55
  },
56
56
  "scripts": {
57
57
  "build": "tsdown && node scripts/copy-svelte.mjs",