[INJI-702]:Renamed Scan as Share in the Bottom tab NavBar (#1157)

* [INJI-702]: Updated scan screen header in locals

Signed-off-by: anil_majji <majjianilkumar050@gmail.com>
This commit is contained in:
Anil kumar M
2024-01-12 19:31:33 +05:30
committed by GitHub
parent 5586461412
commit c9391b5c92
11 changed files with 24 additions and 24 deletions

View File

@@ -356,7 +356,7 @@
},
"MainLayout": {
"home": "المنزل",
"scan": "مسح",
"share": "يشارك",
"history": "تاريخ",
"request": "طلب",
"settings": "إعدادات"
@@ -466,7 +466,7 @@
"gotoSettings": "اذهب للاعدادات"
},
"ScanScreen": {
"header": "مسح رمز الاستجابة السريعة",
"header": "مسح",
"noShareableVcs": "لا تتوفر بطاقات قابلة للمشاركة",
"bluetoothStateAndroid": "يرجى تشغيل البلوتوث من الإعدادات السريعة لدعم المشاركة المحلية",
"bluetoothStateIos": "يرجى تشغيل البلوتوث من مركز التحكم لدعم المشاركة المحلية",

View File

@@ -357,7 +357,7 @@
},
"MainLayout": {
"home": "Home",
"scan": "Scan",
"share": "Share",
"history": "History",
"request": "Request",
"settings": "Settings"
@@ -470,7 +470,7 @@
"gotoSettings": "Go to settings"
},
"ScanScreen": {
"header": "Scan QR Code",
"header": "Scan",
"noShareableVcs": "No shareable cards are available.",
"sharingVc": "Sharing card",
"bluetoothStateIos": "Bluetooth is turned OFF, please turn it ON from Control center",

View File

@@ -355,7 +355,7 @@
},
"MainLayout": {
"home": "Bahay",
"scan": "Scan",
"share": "Ibahagi",
"history": "Kasaysayan",
"request": "Hiling",
"settings": "mga setting"
@@ -469,7 +469,7 @@
"gotoSettings": "Pumunta sa setting"
},
"ScanScreen": {
"header": "I-scan ang QR Code",
"header": "Scan",
"noShareableVcs": "Walang magagamit na mga card na maibabahagi.",
"sharingVc": "Pagbabahagi ng card",
"bluetoothStateIos": "Naka-OFF ang Bluetooth, paki-ON ito mula sa control center",

View File

@@ -354,7 +354,7 @@
},
"MainLayout": {
"home": "होम",
"scan": "स्कैन",
"share": "शेयर करना",
"history": "इतिहास",
"request": "अनुरोध",
"settings": "सेटिंग्स"
@@ -466,7 +466,7 @@
"gotoSettings": "सेटिंग्स में जाओ"
},
"ScanScreen": {
"header": "स्कैन क्यू आर कोड",
"header": "स्कैन",
"noShareableVcs": "कोई साझा करने योग्य कार्ड उपलब्ध नहीं हैं।",
"sharingVc": "कार्ड साझा करना",
"bluetoothStateIos": "ब्लूटूथ बंद है, कृपया इसे नियंत्रण केंद्र से चालू करें",

View File

@@ -346,7 +346,7 @@
},
"MainLayout": {
"home": "ಮನೆ",
"scan": "ಸ್ಕ್ಯಾನ್",
"share": "ಹಂಚಿಕೊಳ್ಳಿ",
"history": "ಇತಿಹಾಸ",
"request": "ವಿನಂತಿ",
"settings": "ಸೆಟ್ಟಿಂಗ್‌ಗಳು"
@@ -458,7 +458,7 @@
"gotoSettings": "ಸೆಟ್ಟಿಂಗ್‌ಗಳಿಗೆ ಹೋಗಿ"
},
"ScanScreen": {
"header": "QR ಕೋಡ್ ಅನ್ನು ಸ್ಕ್ಯಾನ್ ಮಾಡಿ",
"header": "ಸ್ಕ್ಯಾನ್",
"noShareableVcs": "ಹಂಚಿಕೊಳ್ಳಬಹುದಾದ ಯಾವುದೇ ಕಾರ್ಡ್‌ಗಳು ಲಭ್ಯವಿಲ್ಲ.",
"sharingVc": "ಕಾರ್ಡ್ ಹಂಚಿಕೊಳ್ಳಲಾಗುತ್ತಿದೆ",
"bluetoothStateIos": "ಬ್ಲೂಟೂತ್ ಆಫ್ ಆಗಿದೆ, ದಯವಿಟ್ಟು ಅದನ್ನು ನಿಯಂತ್ರಣ ಕೇಂದ್ರದಿಂದ ಆನ್ ಮಾಡಿ",

View File

@@ -357,7 +357,7 @@
},
"MainLayout": {
"home": "Hogar",
"scan": "Escanear",
"share": "Compartir",
"history": "Historia",
"request": "Pedido",
"settings": "Ajustes"
@@ -467,7 +467,7 @@
"gotoSettings": "Ir a la configuración"
},
"ScanScreen": {
"header": "Escanear código QR",
"header": "Escanear",
"noShareableVcs": "No hay tarjetas para compartir disponibles.",
"sharingVc": "tarjeta compartida",
"bluetoothStateIos": "Bluetooth está desactivado, actívelo desde el centro de control",

View File

@@ -352,7 +352,7 @@
},
"MainLayout": {
"home": "வீடு",
"scan": "ஸ்கேன்",
"share": "பகிர்",
"request": "கோரிக்கை",
"history": "வரலாறு",
"settings": "செட்டிங்ஸ்"
@@ -464,7 +464,7 @@
"gotoSettings": "அமைப்புகளுக்குச் செல்லவும்"
},
"ScanScreen": {
"header": "QR குறியீட்டை ஸ்கேன் செய்யவும்",
"header": "ஸ்கேன்",
"noShareableVcs": "பகிரக்கூடிய அட்டைகள் எதுவும் இல்லை.",
"sharingVc": "பகிர்கிறது அட்டை",
"bluetoothStateIos": "புளூடூத் முடக்கப்பட்டுள்ளது, கட்டுப்பாட்டு மையத்திலிருந்து அதை இயக்கவும்",

View File

@@ -24,12 +24,12 @@ const home: TabScreen = {
headerShown: false,
},
};
export const scan: TabScreen = {
name: BOTTOM_TAB_ROUTES.scan,
export const share: TabScreen = {
name: BOTTOM_TAB_ROUTES.share,
component: ScanLayout,
icon: 'qr-code-scanner',
options: {
title: i18n.t('MainLayout:scan'),
title: i18n.t('MainLayout:share'),
headerShown: false,
},
};
@@ -46,12 +46,12 @@ const history: TabScreen = {
export const mainRoutes: TabScreen[] = [];
mainRoutes.push(home);
mainRoutes.push(scan);
mainRoutes.push(share);
mainRoutes.push(history);
export type MainBottomTabParamList = {
home: undefined;
scan: undefined;
share: undefined;
history: undefined;
};

View File

@@ -2,7 +2,7 @@ import {MainBottomTabParamList} from './main';
export const BOTTOM_TAB_ROUTES = {
home: 'home' as keyof MainBottomTabParamList,
scan: 'scan' as keyof MainBottomTabParamList,
share: 'share' as keyof MainBottomTabParamList,
history: 'history' as keyof MainBottomTabParamList,
};

View File

@@ -5,7 +5,7 @@ import {
} from '@react-navigation/bottom-tabs';
import {Icon} from 'react-native-elements';
import {RequestRouteProps, RootRouteProps} from '../routes';
import {mainRoutes, scan} from '../routes/main';
import {mainRoutes, share} from '../routes/main';
import {Theme} from '../components/ui/styleUtils';
import {useTranslation} from 'react-i18next';
import {Row} from '../components/ui';
@@ -36,7 +36,7 @@ export const MainLayout: React.FC<
initialRouteName={mainRoutes[0].name}
screenOptions={({route}) => ({
tabBarAccessibilityLabel: route.name,
...options
...options,
})}>
{mainRoutes.map(route => (
<Screen
@@ -45,7 +45,7 @@ export const MainLayout: React.FC<
component={route.component}
listeners={{
tabPress: e => {
if (route.name == scan.name) {
if (route.name == share.name) {
scanService.send(ScanEvents.RESET());
}
},

View File

@@ -63,7 +63,7 @@ export const ScanLayout: React.FC = () => {
component={ScanScreen}
options={{
headerTitleStyle: {fontSize: 30, fontFamily: 'Inter_600SemiBold'},
title: t('MainLayout:scan'),
title: t('header'),
}}
/>
</ScanStack.Navigator>