Change Language
Use the following to change the TyrAds SDK language and update its internal locale settings:
TyrSDKPlugin.Instance.SetLanguage("en");
Parameters:
languageCode
(string): A string representing the desired language code (e.g., "en" for English, "es" for Spanish). This should be a valid ISO 639-1 language code. Supported languages: English (en), Spanish (es), Indonesian (id), Japanese (ja), Korean (ko), Chinese Simplified (zh-Hans-CN).
Notes:
By default, the TyrAds SDK uses the device’s system language.
This method saves the selected language in shared preferences so it persists across sessions.
Ensure your app and the TyrAds SDK support the provided language code; otherwise, English will be used.
Last updated