@verbaly/react 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 +6 -6
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -13,13 +13,13 @@
13
13
 
14
14
  React hooks for [Verbaly](https://github.com/AronSoto/verbaly) — a thin layer (React 18/19) over the reactive core via `useSyncExternalStore`.
15
15
 
16
- ## Install
16
+ ## 🚀 Install
17
17
 
18
- ```bash
18
+ ```
19
19
  pnpm add verbaly @verbaly/react
20
20
  ```
21
21
 
22
- ```tsx
22
+ ```
23
23
  import { VerbalyProvider, useT, useLocale } from '@verbaly/react';
24
24
  import { verbaly } from 'virtual:verbaly';
25
25
 
@@ -33,11 +33,11 @@ function Inbox() {
33
33
  }
34
34
  ```
35
35
 
36
- ### Rich text — `<Trans>`
36
+ ### Rich text — `<Trans>`
37
37
 
38
38
  Write the source text in place — the compiler extracts it (key, catalogs, props):
39
39
 
40
- ```tsx
40
+ ```
41
41
  import { Trans } from '@verbaly/react';
42
42
 
43
43
  // you write:
@@ -50,7 +50,7 @@ Runtime-first still works — pass `id` (+ `values`/`components`) yourself and n
50
50
 
51
51
  Named links without custom components — hrefs come from your code, never from messages (`javascript:` blocked):
52
52
 
53
- ```tsx
53
+ ```
54
54
  // message: 'Read the <docs>guide</docs>'
55
55
  <Trans id="cta" links={{ docs: { href: '/docs', target: '_blank', rel: 'noopener' } }} />
56
56
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verbaly/react",
3
- "version": "0.13.0",
3
+ "version": "0.14.0",
4
4
  "description": "React bindings for Verbaly — hooks over the reactive core.",
5
5
  "keywords": [
6
6
  "i18n",
@@ -48,7 +48,7 @@
48
48
  },
49
49
  "peerDependencies": {
50
50
  "react": "^18.0.0 || ^19.0.0",
51
- "verbaly": "^0.13.0"
51
+ "verbaly": "^0.14.0"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@types/react": "^19.2.17",
@@ -56,7 +56,7 @@
56
56
  "happy-dom": "^20.10.6",
57
57
  "react": "^19.2.7",
58
58
  "react-dom": "^19.2.7",
59
- "verbaly": "0.13.0"
59
+ "verbaly": "0.14.0"
60
60
  },
61
61
  "scripts": {
62
62
  "build": "tsdown",