@verbaly/react 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 +4 -4
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -15,11 +15,11 @@ React hooks for [Verbaly](https://github.com/AronSoto/verbaly) — a thin layer
15
15
 
16
16
  ## 🚀 Install
17
17
 
18
- ```
18
+ ```bash
19
19
  pnpm add verbaly @verbaly/react
20
20
  ```
21
21
 
22
- ```
22
+ ```tsx
23
23
  import { VerbalyProvider, useT, useLocale } from '@verbaly/react';
24
24
  import { verbaly } from 'virtual:verbaly';
25
25
 
@@ -37,7 +37,7 @@ function Inbox() {
37
37
 
38
38
  Write the source text in place — the compiler extracts it (key, catalogs, props):
39
39
 
40
- ```
40
+ ```tsx
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
- ```
53
+ ```tsx
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.14.5",
3
+ "version": "0.15.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.14.5"
51
+ "verbaly": "^0.15.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.14.5"
59
+ "verbaly": "0.15.0"
60
60
  },
61
61
  "scripts": {
62
62
  "build": "tsdown",