Skip to content

Commit 9344325

Browse files
authored
Update README.md
1 parent 56bf836 commit 9344325

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ trans('Welcome, :NAME!', { name: 'Francisco' }) // Bem-vindo FRANCISCO!
7979

8080
### `wTrans(message: string, replacements: {})`
8181

82-
The `wTrans()` same as `trans()` but returns a reactive obj with translated value.
83-
82+
The `wTrans()` same as `trans()` but returns a reactive obj with translated value,
83+
use it instead of `trans()` to watch any changes (language changes or lang files loaded) and set the new value.
8484
```jsx
8585
// lang/pt.json
8686
{
@@ -126,7 +126,8 @@ transChoice('{1} :count minute ago|[2,*] :count minutes ago', 10); // Há 10 min
126126

127127
### `wTransChoice(message: string, count: number, replacements: {})`
128128

129-
The `wTransChoice()` same as `transChoice()` but returns a reactive obj with translated value.
129+
The `wTransChoice()` same as `transChoice()` but returns a reactive obj with translated value,
130+
use it instead of `transChoice()` to watch any changes (language changes or lang files loaded) and set the new value.
130131

131132

132133
```jsx

0 commit comments

Comments
 (0)