From ab3c1ae19c5b89877bd08e264c0b9c87407b9af2 Mon Sep 17 00:00:00 2001 From: Bhavya1534 <139518528+Bhavya1534@users.noreply.github.com> Date: Sun, 17 May 2026 17:40:31 +1000 Subject: [PATCH 1/4] Add missing Hindi shift request translations Added missing Hindi translations for shift request, swap, leave, request type, date/time validation, and navigation label. --- guard_app/src/locales/hi.json | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/guard_app/src/locales/hi.json b/guard_app/src/locales/hi.json index 76524db1f..5d2d785fa 100644 --- a/guard_app/src/locales/hi.json +++ b/guard_app/src/locales/hi.json @@ -134,8 +134,32 @@ "noShifts": "कोई शिफ्ट नहीं मिली", "noCompleted": "कोई पूर्ण शिफ्ट नहीं मिली", "accepted": "स्वीकृत", - "swapLeaveRequests": "स्वैप और छुट्टी अनुरोध" + "swapLeaveRequests": "स्वैप और छुट्टी अनुरोध", + + "alerts": { + "invalidDateHead": "अमान्य तारीख", + "invalidDateMsg": "चुनी गई तारीख अमान्य है", + "missingTimeHead": "तारीख या समय अनुपलब्ध है", + "missingTimeMsg": "जिस तारीख और समय पर आप अपनी शिफ्ट स्थानांतरित करना चाहते हैं, उसे दर्ज करें।" }, + "approved": "स्वीकृत", + "change": "बदलें", + "createRequest": "अनुरोध बनाएँ", + "leave": "छुट्टी", + "notFound": "कोई शिफ्ट अनुरोध नहीं मिला", + "reason": "कारण", + "reasonHint": "माफ़ कीजिए, मैं बीमार हूँ...", + "requestError": "अनुरोध लोड करने में विफल।", + "requestType": "अनुरोध का प्रकार", + "requestedDate": "अनुरोधित तारीख", + "requestedTime": "अनुरोधित समय", + "selectDate": "तारीख चुनें", + "selectRequestType": "अनुरोध का प्रकार चुनें", + "selectTime": "समय चुनें", + "swap": "स्वैप", + "viewRequests": "स्वैप और छुट्टी अनुरोध" + }, + "timesheet": { "checkIn": "चेक इन:", "checkOut": "चेक आउट:", @@ -167,7 +191,8 @@ "shiftDetails": "शिफ्ट विवरण", "shifts": "शिफ्ट्स", "home": "होम", - "profile": "प्रोफ़ाइल" + "profile": "प्रोफ़ाइल", + "shiftRequests": "शिफ्ट बदलाव अनुरोध" }, "docs": { "title": "दस्तावेज़ अवलोकन", From a02205d23d6cae599037458c0e27a371d2f4f310 Mon Sep 17 00:00:00 2001 From: Bhavya1534 <139518528+Bhavya1534@users.noreply.github.com> Date: Sun, 17 May 2026 18:05:35 +1000 Subject: [PATCH 2/4] Format Hindi translation file Ran Prettier on hi.json to fix formatting check. --- guard_app/src/locales/hi.json | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/guard_app/src/locales/hi.json b/guard_app/src/locales/hi.json index 5d2d785fa..546b2269a 100644 --- a/guard_app/src/locales/hi.json +++ b/guard_app/src/locales/hi.json @@ -135,13 +135,12 @@ "noCompleted": "कोई पूर्ण शिफ्ट नहीं मिली", "accepted": "स्वीकृत", "swapLeaveRequests": "स्वैप और छुट्टी अनुरोध", - - "alerts": { - "invalidDateHead": "अमान्य तारीख", - "invalidDateMsg": "चुनी गई तारीख अमान्य है", - "missingTimeHead": "तारीख या समय अनुपलब्ध है", - "missingTimeMsg": "जिस तारीख और समय पर आप अपनी शिफ्ट स्थानांतरित करना चाहते हैं, उसे दर्ज करें।" - }, + "alerts": { + "invalidDateHead": "अमान्य तारीख", + "invalidDateMsg": "चुनी गई तारीख अमान्य है", + "missingTimeHead": "तारीख या समय अनुपलब्ध है", + "missingTimeMsg": "जिस तारीख और समय पर आप अपनी शिफ्ट स्थानांतरित करना चाहते हैं, उसे दर्ज करें।" + }, "approved": "स्वीकृत", "change": "बदलें", "createRequest": "अनुरोध बनाएँ", @@ -159,7 +158,6 @@ "swap": "स्वैप", "viewRequests": "स्वैप और छुट्टी अनुरोध" }, - "timesheet": { "checkIn": "चेक इन:", "checkOut": "चेक आउट:", From 8705e947068836f2e62e90021f898db9d4f09843 Mon Sep 17 00:00:00 2001 From: Bhavya1534 <139518528+Bhavya1534@users.noreply.github.com> Date: Sun, 17 May 2026 18:11:15 +1000 Subject: [PATCH 3/4] Rerun checks after formatting From bda9560cb214a95fc17855b1b22f23174b161bc3 Mon Sep 17 00:00:00 2001 From: Teddy Date: Sun, 17 May 2026 23:20:19 +1000 Subject: [PATCH 4/4] apply eslint --- guard_app/src/components/modal/LocationVerificationModal.tsx | 2 +- guard_app/src/locales/hi.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/guard_app/src/components/modal/LocationVerificationModal.tsx b/guard_app/src/components/modal/LocationVerificationModal.tsx index e69466b17..51e7c26eb 100644 --- a/guard_app/src/components/modal/LocationVerificationModal.tsx +++ b/guard_app/src/components/modal/LocationVerificationModal.tsx @@ -11,8 +11,8 @@ import { View, } from 'react-native'; -import ErrorMessageBox from '../ErrorMessageBox'; import { useAppTheme } from '../../theme'; +import ErrorMessageBox from '../ErrorMessageBox'; type LocationPayload = { latitude: number; diff --git a/guard_app/src/locales/hi.json b/guard_app/src/locales/hi.json index d7c747257..e71e2b425 100644 --- a/guard_app/src/locales/hi.json +++ b/guard_app/src/locales/hi.json @@ -376,4 +376,4 @@ "submitFailed": "घटना रिपोर्ट जमा करने में विफल", "cancel": "रद्द करें" } -} \ No newline at end of file +}