Add translator documentation
This commit is contained in:
parent
8a2767ef40
commit
77f8426788
3 changed files with 180 additions and 4 deletions
|
@ -36,6 +36,23 @@ WA.onInit().then(() => {
|
|||
})
|
||||
```
|
||||
|
||||
### Get the player language
|
||||
|
||||
```
|
||||
WA.player.language: string;
|
||||
```
|
||||
|
||||
The current language of player is available from the `WA.player.language` property.
|
||||
|
||||
{.alert.alert-info}
|
||||
You need to wait for the end of the initialization before accessing `WA.player.language`
|
||||
|
||||
```typescript
|
||||
WA.onInit().then(() => {
|
||||
console.log('Player language: ', WA.player.language);
|
||||
})
|
||||
```
|
||||
|
||||
### Get the tags of the player
|
||||
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue