App-level Language Setting (Flutter)
Dart integration
import 'package:fw_flutter_sdk/fw_flutter_sdk.dart';
// You should pass language code to this API, such as "en", "ar", "pt-BR" and "hu" etc.
// For the language codes we support, please refer to "Language support table" below.
FireworkSDK.getInstance().changeAppLanguage("ar");Additional setup steps on iOS

Additional setup steps on Android
Option 1: Setup steps for RestartingActivity
RestartingActivityCalling sequence
Add codes on Android project
Override the attachBaseContext method in your MainActivity.
attachBaseContext method in your MainActivity.Optional: Override the attachBaseContext method in your MainApplication.
attachBaseContext method in your MainApplication.If you need to support RTL, then please add the following configuration to the AndroidManifest.xml
AndroidManifest.xmlOption 2: Setup steps for NotRestartingActivity
NotRestartingActivityAdd codes on Android project
Inherit the FWFlutterFragmentActivity class in your MainActivity.
FWFlutterFragmentActivity class in your MainActivity.If you need to support RTL, then please add the following configuration to the AndroidManifest.xml
AndroidManifest.xmlLanguage support table
Language
Language code
Last updated
Was this helpful?