BASE: Switch From EasyLocalization To GetX Localization.

This commit is contained in:
2025-12-04 16:56:39 +05:00
parent 157545f1c0
commit bf1d07a048
218 changed files with 2535 additions and 2313 deletions

View File

@@ -1,7 +1,7 @@
import 'dart:async';
import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:easy_localization/easy_localization.dart';
import 'package:get/get.dart' hide Trans;
import 'package:get/get.dart';
import 'package:intl/intl.dart';
import '../constant/constant.dart';
import '../models/parcel_order_model.dart';
@@ -106,7 +106,7 @@ class ParcelMyBookingController extends GetxController {
isLoading.value = true;
if (order.status != Constant.orderPlaced) {
ShowToastDialog.showToast("You can only cancel before pickup.".tr());
ShowToastDialog.showToast("You can only cancel before pickup.".tr);
return;
}
@@ -160,9 +160,9 @@ class ParcelMyBookingController extends GetxController {
);
}
ShowToastDialog.showToast("Order cancelled successfully".tr());
ShowToastDialog.showToast("Order cancelled successfully".tr);
} catch (e) {
ShowToastDialog.showToast("${'Failed to cancel order:'.tr()} $e".tr());
ShowToastDialog.showToast("${'Failed to cancel order:'.tr} $e".tr);
} finally {
isLoading.value = false;
}