feat: add ads localize (#4113)
* add prop adLanguage; add docs * add native code ios&android for adLanguage props * add missing function to adsLoader and imafactory * Update docs/pages/component/ads.md Language correction Co-authored-by: Olivier Bouillet <62574056+freeboub@users.noreply.github.com> --------- Co-authored-by: Guy <guyha@reshet.tv> Co-authored-by: Olivier Bouillet <62574056+freeboub@users.noreply.github.com>
This commit is contained in:
@@ -23,3 +23,16 @@ Example:
|
||||
onReceiveAdEvent={event => console.log(event)}
|
||||
...
|
||||
```
|
||||
|
||||
### Localization
|
||||
To change the language of the IMA SDK, you need to pass `adLanguage` prop to `Video` component. List of supported languages, you can find [here](https://developers.google.com/interactive-media-ads/docs/sdks/android/client-side/localization#locale-codes)
|
||||
|
||||
By default, ios will use system language and android will use `en`
|
||||
|
||||
Example:
|
||||
|
||||
```jsx
|
||||
...
|
||||
adLanguage="fr"
|
||||
...
|
||||
```
|
||||
|
Reference in New Issue
Block a user