boot static method
Setup the current app locales with your configuration. And loads app supported translations. Must be called before calling any other method to initialize dependencies.
Implementation
static Future<void> boot({
required PlayxLocaleConfig config,
}) async {
WidgetsFlutterBinding.ensureInitialized();
EasyLocalization.logger.name = 'Playx_localization';
EasyLocalization.logger('boot Localization');
final controller = PlayxLocaleController(config: config);
Get.put<PlayxLocaleController>(controller);
return controller.boot();
}