From deae01a677a9f680462ca5d77114b6b5d4940886 Mon Sep 17 00:00:00 2001 From: Sultan khan Date: Tue, 13 Oct 2026 13:16:39 +0300 Subject: [PATCH] no message --- assets/langs/ar-SA.json | 10 ++++------ assets/langs/en-US.json | 11 +++++------ lib/generated/codegen_loader.g.dart | 12 ------------ lib/generated/locale_keys.g.dart | 6 ------ lib/ui/attendance/add_vacation_rule_screen.dart | 2 +- lib/widgets/bottom_sheets/attachment_options.dart | 10 ++++++---- 6 files changed, 16 insertions(+), 35 deletions(-) diff --git a/assets/langs/ar-SA.json b/assets/langs/ar-SA.json index f84ed69..3159d43 100644 --- a/assets/langs/ar-SA.json +++ b/assets/langs/ar-SA.json @@ -686,6 +686,10 @@ "priceSAR": "السعر (ريال سعودي)", "amountSAR": "المبلغ (ريال سعودي)", "amuLastThreeMonths": "AMU (آخر 3 أشهر)", + + + + "mazayaTitle": "مزايا", "mazayaAccessGranted": "تم منح حق الوصول لمزايا", "mazayaAccessGrantedDesc": "أصبح لدى {} حق وصول نشط الآن. شارك رابط التنزيل أدناه ليتمكن من تثبيت تطبيق مهم وإكمال الإعداد.", @@ -719,10 +723,7 @@ "ksa": "المملكة", "riyadh": "الرياض", "noInstructionsAvailable": "لا توجد طريقة استخدام محددة.", - "contactInformation": "معلومات التواصل:", "contactInfo": "معلومات التواصل", - "humanResources": "الموارد البشرية", - "drSulaimanAlHabib": "سليمان الحبيب", "allCategories": "الكل", "noOffersAvailable": "لا توجد عروض متاحة", "addDependents": "إضافة تابعين", @@ -783,7 +784,6 @@ "selectOfferToRedeem": "اختر العرض الذي ترغب في استخدامه", "viewOnMap": "عرض على الخريطة", "showAllLocations": "عرض جميع الفروع ({})", - "showLess": "عرض أقل", "searchBranches": "البحث عن الفروع أو المدن...", "allCities": "الكل", "noBranchesFound": "لم يتم العثور على فروع مطابقة", @@ -791,8 +791,6 @@ "branchesCount": "{} فرع", "kmAway": "على بعد {} كم", "dependentDetails": "تفاصيل التابع", - "verifiedWithNhic": "موثق مع NHIC", - "yearsOld": "{} سنة", "keyDetails": "البيانات الأساسية", "verified": "موثق", "idEnding": "الهوية تنتهي بـ {}", diff --git a/assets/langs/en-US.json b/assets/langs/en-US.json index 14c598d..2cc1914 100644 --- a/assets/langs/en-US.json +++ b/assets/langs/en-US.json @@ -686,6 +686,10 @@ "priceSAR": "Price (SAR)", "amountSAR": "Amount (SAR)", "amuLastThreeMonths": "AMU (Last 3 months)", + + + + "mazayaTitle": "Mazaya", "mazayaAccessGranted": "Mazaya access granted", "mazayaAccessGrantedDesc": "{} now has active access. Share the download link below so they can install the Mohem app and complete setup.", @@ -719,10 +723,7 @@ "ksa": "KSA", "riyadh": "Riyadh", "noInstructionsAvailable": "No instructions available.", - "contactInformation": "Contact Information:", "contactInfo": "Contact Information", - "humanResources": "Human Resources", - "drSulaimanAlHabib": "DR SULAIMAN AL HABIB", "allCategories": "All", "noOffersAvailable": "No offers available", "addDependents": "Add Dependents", @@ -783,7 +784,6 @@ "selectOfferToRedeem": "Select an offer to use", "viewOnMap": "View on map", "showAllLocations": "Show all {} locations", - "showLess": "Show less", "searchBranches": "Search branches or cities...", "allCities": "All", "noBranchesFound": "No branches found", @@ -791,8 +791,6 @@ "branchesCount": "{} Branches", "kmAway": "{} KM Away", "dependentDetails": "Dependent Details", - "verifiedWithNhic": "Verified with NHIC", - "yearsOld": "{} years", "keyDetails": "Key details", "verified": "Verified", "idEnding": "ID ending {}", @@ -805,5 +803,6 @@ "nationalIdAndDob": "National ID & Date of Birth", "sponsorOtp": "Sponsor OTP", "revokingPreventsAccessDesc": "Revoking prevents all future dependent access until you allow it again." + } diff --git a/lib/generated/codegen_loader.g.dart b/lib/generated/codegen_loader.g.dart index c144c50..c95fcce 100644 --- a/lib/generated/codegen_loader.g.dart +++ b/lib/generated/codegen_loader.g.dart @@ -735,10 +735,7 @@ class CodegenLoader extends AssetLoader{ "ksa": "المملكة", "riyadh": "الرياض", "noInstructionsAvailable": "لا توجد طريقة استخدام محددة.", - "contactInformation": "معلومات التواصل:", "contactInfo": "معلومات التواصل", - "humanResources": "الموارد البشرية", - "drSulaimanAlHabib": "سليمان الحبيب", "allCategories": "الكل", "noOffersAvailable": "لا توجد عروض متاحة", "addDependents": "إضافة تابعين", @@ -799,7 +796,6 @@ class CodegenLoader extends AssetLoader{ "selectOfferToRedeem": "اختر العرض الذي ترغب في استخدامه", "viewOnMap": "عرض على الخريطة", "showAllLocations": "عرض جميع الفروع ({})", - "showLess": "عرض أقل", "searchBranches": "البحث عن الفروع أو المدن...", "allCities": "الكل", "noBranchesFound": "لم يتم العثور على فروع مطابقة", @@ -807,8 +803,6 @@ class CodegenLoader extends AssetLoader{ "branchesCount": "{} فرع", "kmAway": "على بعد {} كم", "dependentDetails": "تفاصيل التابع", - "verifiedWithNhic": "موثق مع NHIC", - "yearsOld": "{} سنة", "keyDetails": "البيانات الأساسية", "verified": "موثق", "idEnding": "الهوية تنتهي بـ {}", @@ -1543,10 +1537,7 @@ static const Map _en_US = { "ksa": "KSA", "riyadh": "Riyadh", "noInstructionsAvailable": "No instructions available.", - "contactInformation": "Contact Information:", "contactInfo": "Contact Information", - "humanResources": "Human Resources", - "drSulaimanAlHabib": "DR SULAIMAN AL HABIB", "allCategories": "All", "noOffersAvailable": "No offers available", "addDependents": "Add Dependents", @@ -1607,7 +1598,6 @@ static const Map _en_US = { "selectOfferToRedeem": "Select an offer to use", "viewOnMap": "View on map", "showAllLocations": "Show all {} locations", - "showLess": "Show less", "searchBranches": "Search branches or cities...", "allCities": "All", "noBranchesFound": "No branches found", @@ -1615,8 +1605,6 @@ static const Map _en_US = { "branchesCount": "{} Branches", "kmAway": "{} KM Away", "dependentDetails": "Dependent Details", - "verifiedWithNhic": "Verified with NHIC", - "yearsOld": "{} years", "keyDetails": "Key details", "verified": "Verified", "idEnding": "ID ending {}", diff --git a/lib/generated/locale_keys.g.dart b/lib/generated/locale_keys.g.dart index 4f88cff..a356c61 100644 --- a/lib/generated/locale_keys.g.dart +++ b/lib/generated/locale_keys.g.dart @@ -707,10 +707,7 @@ abstract class LocaleKeys { static const ksa = 'ksa'; static const riyadh = 'riyadh'; static const noInstructionsAvailable = 'noInstructionsAvailable'; - static const contactInformation = 'contactInformation'; static const contactInfo = 'contactInfo'; - static const humanResources = 'humanResources'; - static const drSulaimanAlHabib = 'drSulaimanAlHabib'; static const allCategories = 'allCategories'; static const noOffersAvailable = 'noOffersAvailable'; static const addDependents = 'addDependents'; @@ -771,7 +768,6 @@ abstract class LocaleKeys { static const selectOfferToRedeem = 'selectOfferToRedeem'; static const viewOnMap = 'viewOnMap'; static const showAllLocations = 'showAllLocations'; - static const showLess = 'showLess'; static const searchBranches = 'searchBranches'; static const allCities = 'allCities'; static const noBranchesFound = 'noBranchesFound'; @@ -779,8 +775,6 @@ abstract class LocaleKeys { static const branchesCount = 'branchesCount'; static const kmAway = 'kmAway'; static const dependentDetails = 'dependentDetails'; - static const verifiedWithNhic = 'verifiedWithNhic'; - static const yearsOld = 'yearsOld'; static const keyDetails = 'keyDetails'; static const verified = 'verified'; static const idEnding = 'idEnding'; diff --git a/lib/ui/attendance/add_vacation_rule_screen.dart b/lib/ui/attendance/add_vacation_rule_screen.dart index 5d4bf75..eb32737 100644 --- a/lib/ui/attendance/add_vacation_rule_screen.dart +++ b/lib/ui/attendance/add_vacation_rule_screen.dart @@ -216,7 +216,7 @@ class _AddVacationRuleScreenState extends State { CreateVacationRuleList? createVacationRuleList = await VacationRuleApiClient().createVacationRule(DateUtil.convertDateToStringLocation(startTime), DateUtil.convertDateToStringLocation(endTime!), selectedItemType!.iTEMTYPE!, selectedItemTypeNotification!.nOTIFICATIONNAME!, message, getPAction(), selectedReplacementEmployee!.userName!, respondAttributeList); Utils.hideLoading(context); - Utils.showToast("Vacation rule added"); + Utils.showToast(LocaleKeys.vacationRuleAdded.tr()); Navigator.popUntil(context, ModalRoute.withName(AppRoutes.dashboard)); } catch (ex) { Utils.hideLoading(context); diff --git a/lib/widgets/bottom_sheets/attachment_options.dart b/lib/widgets/bottom_sheets/attachment_options.dart index 30189a0..b649937 100644 --- a/lib/widgets/bottom_sheets/attachment_options.dart +++ b/lib/widgets/bottom_sheets/attachment_options.dart @@ -1,8 +1,10 @@ +import 'package:easy_localization/easy_localization.dart'; import 'package:flutter/material.dart'; import 'package:flutter_svg/flutter_svg.dart'; import 'package:mohem_flutter_app/classes/colors.dart'; import 'package:mohem_flutter_app/extensions/string_extensions.dart'; import 'package:mohem_flutter_app/extensions/widget_extensions.dart'; +import 'package:mohem_flutter_app/generated/locale_keys.g.dart'; class AttachmentOptions extends StatelessWidget { VoidCallback onCameraTap; @@ -19,16 +21,16 @@ class AttachmentOptions extends StatelessWidget { child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ - "Upload Attachment".toSectionHeading(), - "Select from gallery or open camera".toText11(weight: FontWeight.w500), + LocaleKeys.uploadAttachment.tr().toSectionHeading(), + LocaleKeys.selectFromGalleryOrOpenCamera.tr().toText11(weight: FontWeight.w500), GridView( gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 3, childAspectRatio: 105 / 105, crossAxisSpacing: 9, mainAxisSpacing: 9), physics: const NeverScrollableScrollPhysics(), padding: const EdgeInsets.only(top: 21, bottom: 14), shrinkWrap: true, children: [ - itemView("open_camera.svg", "Open\nCamera", onCameraTap), - itemView("gallery.svg", "Upload from\nGallery", onGalleryTap), + itemView("open_camera.svg", LocaleKeys.openCamera.tr(), onCameraTap), + itemView("gallery.svg", LocaleKeys.uploadFromGallery.tr(), onGalleryTap), if (showFilesOption) itemView("files.svg", "Upload from\nFiles", onFilesTap), ], )