@verbaly/vue 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.
- package/README.md +11 -11
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -15,11 +15,11 @@ Vue 3 composables for [Verbaly](https://github.com/AronSoto/verbaly) — a thin
|
|
|
15
15
|
|
|
16
16
|
## 🚀 Install
|
|
17
17
|
|
|
18
|
-
```
|
|
18
|
+
```bash
|
|
19
19
|
pnpm add verbaly @verbaly/vue
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
-
```
|
|
22
|
+
```ts
|
|
23
23
|
// main.ts
|
|
24
24
|
import { verbalyPlugin } from '@verbaly/vue';
|
|
25
25
|
import { verbaly } from 'virtual:verbaly';
|
|
@@ -27,11 +27,11 @@ import { verbaly } from 'virtual:verbaly';
|
|
|
27
27
|
app.use(verbalyPlugin(verbaly));
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
```
|
|
30
|
+
```html
|
|
31
31
|
<script setup>
|
|
32
|
-
import { useT, useLocale } from '@verbaly/vue';
|
|
33
|
-
const t = useT();
|
|
34
|
-
const locale = useLocale(); // writable: locale.value = 'en'
|
|
32
|
+
import { useT, useLocale } from '@verbaly/vue';
|
|
33
|
+
const t = useT();
|
|
34
|
+
const locale = useLocale(); // writable: locale.value = 'en'
|
|
35
35
|
</script>
|
|
36
36
|
|
|
37
37
|
<template>
|
|
@@ -41,11 +41,11 @@ const locale = useLocale(); // writable: locale.value = 'en'
|
|
|
41
41
|
|
|
42
42
|
### ✨ Rich text — `<Trans>`
|
|
43
43
|
|
|
44
|
-
```
|
|
44
|
+
```html
|
|
45
45
|
<script setup>
|
|
46
|
-
import { Trans } from '@verbaly/vue';
|
|
47
|
-
import { h } from 'vue';
|
|
48
|
-
const components = { terms: (c) => h('a', { href: '/terms' }, c) };
|
|
46
|
+
import { Trans } from '@verbaly/vue';
|
|
47
|
+
import { h } from 'vue';
|
|
48
|
+
const components = { terms: (c) => h('a', { href: '/terms' }, c) };
|
|
49
49
|
</script>
|
|
50
50
|
|
|
51
51
|
<template>
|
|
@@ -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
|
+
```html
|
|
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.15.0",
|
|
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.15.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"happy-dom": "^20.10.6",
|
|
55
55
|
"vue": "^3.5.39",
|
|
56
|
-
"verbaly": "0.
|
|
56
|
+
"verbaly": "0.15.0"
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
59
|
"build": "tsdown",
|