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

@@ -3,6 +3,7 @@ import 'dart:developer';
import 'package:customer/constant/constant.dart';
import 'package:customer/models/cart_product_model.dart';
import 'package:customer/themes/custom_dialog_box.dart';
import 'package:easy_localization/easy_localization.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
@@ -48,10 +49,10 @@ class CartProvider with ChangeNotifier {
context: context,
builder: (BuildContext context) {
return CustomDialogBox(
title: "Alert".tr,
descriptions: "Your cart already contains items from another restaurant. Would you like to replace them with items from this restaurant instead?".tr,
positiveString: "Add".tr,
negativeString: "Cancel".tr,
title: "Alert".tr(),
descriptions: "Your cart already contains items from another restaurant. Would you like to replace them with items from this restaurant instead?".tr(),
positiveString: "Add".tr(),
negativeString: "Cancel".tr(),
positiveClick: () async {
cartItem.clear();
_cartItems.clear();