SDK Reference - setLang
React native
Flutter
Swift
Kotlin
Set the lang that will be used to load the localized product titles and descriptions from IAPHUB.
If this parameter is not specified, IAPHUB will retrieve the localized title/description directly from Apple or Google.
Example
var isLangUpdated = await Iaphub.setLang("en");
React Native
Flutter
Swift
Kotlin
Parameters
StringISO language code of the user (e.g., en, fr, pt-BR)
Response
BooleanIndicates whether the language has been updated. Returns false if the provided language code is invalid.