Top

Probot documentation

Change Default Language:


  1. Open your project, go to lib -> main.dart
  2. Now set your Default Language in locale and fallbackLocale
  3. Now Go to Splash Controller which is in lib -> controllers -> auth_controller -> splash_controller
  4. In that onReady Function set default language code if no data store in local storage
  5. If there is no data save in storage we have set "en" you can set language code as per your requirement
  6. Now Add all language dart file as per your requirement and call all language in Language page which in lib -> common -> languages
  7. Now call Language class in lib -> main.dart
  8. Now you can change langugae as per your requirement
  9. If you want to add or remove lanaguage from JSON then go to lib -> common -> app_array
  10. Search languageList and remove or add as per requirement