Custom Language
Android
The multi-language of the widget is configured by reading the Locale property of the context environment.
The logic is implemented within the SDK;
Configuration config = context.getResources().getConfiguration();
Locale configLocale = config.locale;If you want to set multiple languages, please configure the Locale property of Context;
iOS
The current language can be set through PromoContentManager
/// set locale
/// - Parameter locale: locale
- (void)setLocale:(NSString *)localeExample:
let marketingConfig = PromoGlobalConfig()
marketingConfig.envType = .dev
PromoContentManager.shared().setup(marketingConfig)
// language
// If you want to switch languages, you can configure your language. The default is to follow the system
// eg: "en-US","zh-HK","th-TH","ko-KR","in-ID"
PromoContentManager.shared().setLocale("LANGUAGE_CODE")