@verbaly/vue 0.12.0 → 0.13.1
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/README.md +7 -7
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
|
|
14
14
|
Vue 3 composables for [Verbaly](https://github.com/AronSoto/verbaly) — a thin layer over the reactive core with per-component cleanup (`onScopeDispose`).
|
|
15
15
|
|
|
16
|
-
## Install
|
|
16
|
+
## 🚀 Install
|
|
17
17
|
|
|
18
|
-
```
|
|
18
|
+
```
|
|
19
19
|
pnpm add verbaly @verbaly/vue
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
-
```
|
|
22
|
+
```
|
|
23
23
|
// main.ts
|
|
24
24
|
import { verbalyPlugin } from '@verbaly/vue';
|
|
25
25
|
import { verbaly } from 'virtual:verbaly';
|
|
@@ -27,7 +27,7 @@ import { verbaly } from 'virtual:verbaly';
|
|
|
27
27
|
app.use(verbalyPlugin(verbaly));
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
```
|
|
30
|
+
```
|
|
31
31
|
<script setup>
|
|
32
32
|
import { useT, useLocale } from '@verbaly/vue';
|
|
33
33
|
const t = useT();
|
|
@@ -39,9 +39,9 @@ const locale = useLocale(); // writable: locale.value = 'en'
|
|
|
39
39
|
</template>
|
|
40
40
|
```
|
|
41
41
|
|
|
42
|
-
### Rich text — `<Trans>`
|
|
42
|
+
### ✨ Rich text — `<Trans>`
|
|
43
43
|
|
|
44
|
-
```
|
|
44
|
+
```
|
|
45
45
|
<script setup>
|
|
46
46
|
import { Trans } from '@verbaly/vue';
|
|
47
47
|
import { h } from 'vue';
|
|
@@ -55,7 +55,7 @@ const components = { terms: (c) => h('a', { href: '/terms' }, c) };
|
|
|
55
55
|
|
|
56
56
|
Named links without render functions — hrefs come from your code, never from messages (`javascript:` blocked):
|
|
57
57
|
|
|
58
|
-
```
|
|
58
|
+
```
|
|
59
59
|
<!-- message: 'Read the <docs>guide</docs>' -->
|
|
60
60
|
<Trans id="cta" :links="{ docs: { href: '/docs', target: '_blank', rel: 'noopener' } }" />
|
|
61
61
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@verbaly/vue",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.1",
|
|
4
4
|
"description": "Vue 3 bindings for Verbaly — composables over the reactive core.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"i18n",
|
|
@@ -48,12 +48,12 @@
|
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"vue": "^3.4.0",
|
|
51
|
-
"verbaly": "^0.
|
|
51
|
+
"verbaly": "^0.13.1"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"happy-dom": "^20.10.6",
|
|
55
55
|
"vue": "^3.5.39",
|
|
56
|
-
"verbaly": "0.
|
|
56
|
+
"verbaly": "0.13.1"
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
59
|
"build": "tsdown",
|