App-level Language Setting (React Native)
Use API on JS/TS side
Call API on JS/TS side
import FireworkSDK from 'react-native-firework-sdk';
// You should pass language code to this API, such as "en", "ar" and "pt-BR".
FireworkSDK.getInstance().changeAppLanguage('ar');Calling sequence
Additional setup steps on iOS

Additional setup steps on Android
Override the attachBaseContext method in MainActivity.
attachBaseContext method in MainActivity.If you need to support RTL, then please add the following configuration to the AndroidManifest.xml
AndroidManifest.xmlUse API on native sides
Change app language on iOS native side
Additional setup steps on iOS

Change app language on Android native side
Language support table
Language
Language code
iOS
iOS translation
Android
Android translation
Last updated
Was this helpful?