Add translator documentation

This commit is contained in:
Nolway 2021-12-08 20:12:18 +01:00 committed by Alexis Faizeau
parent 8a2767ef40
commit 77f8426788
3 changed files with 180 additions and 4 deletions

View file

@ -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
```