BASE: Initialize Localization.

This commit is contained in:
2025-12-03 18:21:19 +05:00
parent cf58d069ab
commit b04050384d
141 changed files with 1577 additions and 1419 deletions

View File

@@ -2,6 +2,7 @@ import 'dart:developer';
import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:customer/models/coupon_model.dart';
import 'package:customer/models/user_model.dart';
import 'package:easy_localization/easy_localization.dart';
import 'package:flutter/cupertino.dart';
import 'package:get/get.dart';
import '../constant/constant.dart';
@@ -144,7 +145,7 @@ class OnDemandOrderDetailsController extends GetxController {
final order = onProviderOrder.value;
if (order == null) return;
ShowToastDialog.showLoader("Please wait...".tr);
ShowToastDialog.showLoader("Please wait...".tr());
try {
double total = 0.0;
@@ -186,7 +187,7 @@ class OnDemandOrderDetailsController extends GetxController {
isTopup: true,
orderId: order.id,
note: 'Booking Amount Refund',
paymentStatus: "success".tr,
paymentStatus: "success".tr(),
),
);
@@ -204,7 +205,7 @@ class OnDemandOrderDetailsController extends GetxController {
isTopup: false,
orderId: order.id,
note: 'Booking Amount Refund',
paymentStatus: "success".tr,
paymentStatus: "success".tr(),
),
);
}
@@ -224,7 +225,7 @@ class OnDemandOrderDetailsController extends GetxController {
isTopup: true,
orderId: order.id,
note: 'Admin commission refund',
paymentStatus: "success".tr,
paymentStatus: "success".tr(),
),
);
}
@@ -244,11 +245,11 @@ class OnDemandOrderDetailsController extends GetxController {
ShowToastDialog.closeLoader();
Get.back();
ShowToastDialog.showToast("Booking cancelled successfully".tr);
ShowToastDialog.showToast("Booking cancelled successfully".tr());
} catch (e, st) {
log("Cancel error: $e\n$st");
ShowToastDialog.closeLoader();
ShowToastDialog.showToast("Something went wrong".tr);
ShowToastDialog.showToast("Something went wrong".tr());
}
}
}