Merge pull request #1629 from thecodingmachine/translator

Translator: i18n
This commit is contained in:
Alexis Faizeau 2022-01-25 09:48:48 +01:00 committed by GitHub
commit 2312d2e129
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
83 changed files with 1438 additions and 307 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
```