Merge pull request #1629 from thecodingmachine/translator
Translator: i18n
This commit is contained in:
commit
2312d2e129
83 changed files with 1438 additions and 307 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