App-level Language Setting
Integration
JS/TS
Generally, the changeAppLanguage
API should be called in the following cases:
The App is launched(e.g. in the
componentDidMount
method of App component).Users change the app language manually.
Other cases that change app language.
If there is a react-native restart code in your app. Please add the code before the react-native restart code. Such as:
Android
Please add the code to your MainActivity.java file.
iOS
No code configuration is required.
Change app language on iOS native side
Generally, the changeAppLanguage
API should be called in the following cases:
The App is launched(e.g. in the
application(:, didFinishLaunchingWithOptions:) -> Bool
method).Users change the app language manually.
Other cases that change app language.
After calling changeAppLanguage
API, we need to recreate FireworkVideo SDK components to update the UI. Such as:
Recreate video feed and story block
Stop floating player
Last updated