App-level Language Setting


import 'package:fw_flutter_sdk/fw_flutter_sdk.dart';
FireworkSDK.getInstance().changeAppLanguage("ar"); // such as: en, ar and en-US
Generally, the changeAppLanguage API should be called in the following cases:
  1. 1.
    The App is launched(e.g. in the initState method of your App State.).
  2. 2.
    Users change the app language manually.
  3. 3.
    Other cases that change app language.


In order to be able to use the in-app language feature, the following configuration needs to be added to the app project.

Override the attachBaseContext method in MainActivity.

import com.fireworksdk.bridge.flutter.FWFlutterSDK
class MainActivity: FlutterFragmentActivity() {
// please add the code
override fun attachBaseContext(newBase: Context) {

If you need to support RTL, then please add the following configuration to the AndroidManifest.xml