From c0e872acb976b136cde0b621dfaf0d96214fe9f9 Mon Sep 17 00:00:00 2001 From: Vijay <94220135+vijay151096@users.noreply.github.com> Date: Wed, 15 Nov 2023 11:53:49 +0530 Subject: [PATCH] fix(inji-522): update literals in the location service enabling popup Signed-off-by: Vijay <94220135+vijay151096@users.noreply.github.com> --- locales/ara.json | 3 ++- locales/en.json | 2 +- locales/fil.json | 3 ++- locales/hin.json | 3 ++- locales/kan.json | 3 ++- locales/spa.json | 3 ++- locales/tam.json | 3 ++- shared/location.ts | 13 +++++++------ 8 files changed, 20 insertions(+), 13 deletions(-) diff --git a/locales/ara.json b/locales/ara.json index ff428a2a78..e483df5f86 100644 --- a/locales/ara.json +++ b/locales/ara.json @@ -474,7 +474,7 @@ "sharingVc": "مشاركة بطاقة ", "errors": { "locationDisabled": { - "message": "يجب تمكين خدمات الموقع لمشاركة البطاقة", + "message": "للمتابعة، اسمح لجهازك بتشغيل الموقع", "button": "تمكين خدمات الموقع" }, "locationDenied": { @@ -589,6 +589,7 @@ "cancel": "إلغاء", "accept": "يقبل", "save": "حفظ", + "ok": "نعم", "dismiss": "رفض", "editLabel": "يحرر {{label}}", "tryAgain": "حاول مجددا", diff --git a/locales/en.json b/locales/en.json index afa5f55005..3bb62d9b31 100644 --- a/locales/en.json +++ b/locales/en.json @@ -475,7 +475,7 @@ "scanningGuide": "Hold the phone steady and scan the QR code", "errors": { "locationDisabled": { - "message": "Location services must be enabled to share card", + "message": "To continue, let your device turn on location", "button": "Enable location services" }, "locationDenied": { diff --git a/locales/fil.json b/locales/fil.json index f2c351bf67..1d3d94c41d 100644 --- a/locales/fil.json +++ b/locales/fil.json @@ -477,7 +477,7 @@ "scanningGuide": "Panatilihin ang telepono at i-scan ang QR code", "errors": { "locationDisabled": { - "message": "Dapat na nakabukas ang Location services ng iyong mobile para maaaring makapag-scan", + "message": "Para magpatuloy, hayaang i-on ng iyong device ang lokasyon", "button": "Buksan ang location services" }, "locationDenied": { @@ -592,6 +592,7 @@ "cancel": "Kanselahin", "accept": "Tanggapin", "save": "I-save", + "ok": "Ok", "dismiss": "Dismissed", "editLabel": "Palitan ang {{label}}", "tryAgain": "Subukan muli", diff --git a/locales/hin.json b/locales/hin.json index 4679524673..4b8b3ff214 100644 --- a/locales/hin.json +++ b/locales/hin.json @@ -474,7 +474,7 @@ "scanningGuide": "फ़ोन को स्थिर रखें और QR कोड को स्कैन करें", "errors": { "locationDisabled": { - "message": "स्थान सेवाओं को स्कैनिंग कार्यक्षमता के लिए सक्षम किया जाना चाहिए", + "message": "जारी रखने के लिए, अपने डिवाइस को स्थान चालू करने दें", "button": "स्थान सेवाएं सक्षम करें" }, "locationDenied": { @@ -588,6 +588,7 @@ "common": { "cancel": "रद्द करें", "save": "सहेजें", + "ok": "ठीक है", "dismiss": "नकार देना", "editLabel": "संपादित करें {{label}}", "tryAgain": "पुनः प्रयास करें", diff --git a/locales/kan.json b/locales/kan.json index e19793ecea..41216040e3 100644 --- a/locales/kan.json +++ b/locales/kan.json @@ -472,7 +472,7 @@ "scanningGuide": "ಫೋನ್ ಅನ್ನು ಸ್ಥಿರವಾಗಿ ಹಿಡಿದುಕೊಳ್ಳಿ ಮತ್ತು QR ಕೋಡ್ ಅನ್ನು ಸ್ಕ್ಯಾನ್ ಮಾಡಿ", "errors": { "locationDisabled": { - "message": "ಸ್ಕ್ಯಾನಿಂಗ್ ಕಾರ್ಯಕ್ಕಾಗಿ ಸ್ಥಳ ಸೇವೆಗಳನ್ನು ಸಕ್ರಿಯಗೊಳಿಸಬೇಕು", + "message": "ಮುಂದುವರಿಸಲು, ನಿಮ್ಮ ಸಾಧನವು ಸ್ಥಳವನ್ನು ಆನ್ ಮಾಡಲು ಅನುಮತಿಸಿ", "button": "ಸ್ಥಳ ಸೇವೆಗಳನ್ನು ಸಕ್ರಿಯಗೊಳಿಸಿ" }, "locationDenied": { @@ -587,6 +587,7 @@ "cancel": "ರದ್ದು", "accept": "ಒಪ್ಪಿಕೊಳ್ಳಿ", "save": "ಉಳಿಸು", + "ok": "ಸರಿ", "dismiss": "ವಜಾಗೊಳಿಸಿ", "editLabel": "ಸಂಪಾದಿಸು {{label}}", "tryAgain": "ಮತ್ತೆ ಪ್ರಯತ್ನಿಸು", diff --git a/locales/spa.json b/locales/spa.json index da59717fa5..a9d7588f35 100644 --- a/locales/spa.json +++ b/locales/spa.json @@ -408,7 +408,7 @@ "enableBluetoothButtonText": "Permitir permisos de Bluetooth", "errors": { "locationDisabled": { - "message": "Los servicios de ubicación deben estar habilitados para compartir la tarjeta", + "message": "Para continuar, deja que tu dispositivo active la ubicación.", "button": "Habilitar servicios de ubicación" }, "locationDenied": { @@ -497,6 +497,7 @@ "common": { "cancel": "Cancelar", "save": "Guardar", + "ok": "Ok", "dismiss": "Cerrar", "editLabel": "Editar {{label}}", "tryAgain": "Intentar de nuevo", diff --git a/locales/tam.json b/locales/tam.json index 06333ea85b..f49b5de100 100644 --- a/locales/tam.json +++ b/locales/tam.json @@ -472,7 +472,7 @@ "scanningGuide": "ஃபோனை நிலையாகப் பிடித்து, QR குறியீட்டை ஸ்கேன் செய்யவும்s", "errors": { "locationDisabled": { - "message": "ஸ்கேனிங் செயல்பாட்டிற்கு இருப்பிடச் சேவைகள் இயக்கப்பட வேண்டும்", + "message": "தொடர, இருப்பிடத்தை இயக்க உங்கள் சாதனத்தை அனுமதிக்கவும்", "button": "இருப்பிட சேவைகளை இயக்கு" }, "locationDenied": { @@ -587,6 +587,7 @@ "cancel": "ரத்துசெய்", "accept": "ஏற்றுக்கொள்", "save": "சேமி", + "ok": "சரி", "dismiss": "நிராகரி", "editLabel": "திருத்து {{label}}", "tryAgain": "மீண்டும் முயற்சி செய்", diff --git a/shared/location.ts b/shared/location.ts index 48f7afed87..7b8941a314 100644 --- a/shared/location.ts +++ b/shared/location.ts @@ -1,5 +1,6 @@ import RNLocation from 'react-native-location'; import LocationServicesDialogBox from 'react-native-android-location-services-dialog-box'; +import i18n from '../i18n'; // Initialize RNLocation RNLocation.configure({ distanceFilter: 5.0, // Example configuration, adjust as needed @@ -49,18 +50,18 @@ export async function checkLocationService( onDisabled: () => void, ) { try { - await LocationServicesDialogBox.checkLocationServicesIsEnabled({ - message: - "