some header localisation added

This commit is contained in:
Kashif Shehzad Baloch 2024-01-04 16:45:52 +05:00
parent b6fad0b435
commit 8c829be3df
7 changed files with 17 additions and 9 deletions

View File

@ -146,4 +146,6 @@ export const de = {
OrderDetails: 'Bestelgegevens', OrderDetails: 'Bestelgegevens',
Subtotal: 'Subtotaal', Subtotal: 'Subtotaal',
Assigntome: 'Toewijzen aan mij', Assigntome: 'Toewijzen aan mij',
'About Us': 'Over Ons',
'Product Page': 'Product Pagina',
} }

View File

@ -145,4 +145,6 @@ export const en = {
OrderDetails: 'Order Details', OrderDetails: 'Order Details',
Subtotal: 'Subtotal', Subtotal: 'Subtotal',
Assigntome: 'Assign to me', Assigntome: 'Assign to me',
'About Us': 'About Us',
'Product Page': 'Product Page'
} }

View File

@ -146,5 +146,6 @@ export const fr = {
OrderDetails: 'Détails de la commande', OrderDetails: 'Détails de la commande',
Subtotal: 'Sous-total', Subtotal: 'Sous-total',
Assigntome: 'Attribuer à moi', Assigntome: 'Attribuer à moi',
'About Us': 'À Propos de Nous',
'Product Page': 'Page Produit',
} }

View File

@ -143,5 +143,6 @@ export const km = {
OrderDetails: 'ព័ត៌មានការបញ្ជាទិញ', OrderDetails: 'ព័ត៌មានការបញ្ជាទិញ',
Subtotal: 'សរុបរង', Subtotal: 'សរុបរង',
Assigntome: 'ផ្ដល់ទៅខ្លួនឯង', Assigntome: 'ផ្ដល់ទៅខ្លួនឯង',
'About Us': 'អំពីយើង',
'Product Page': 'ទំព័រផលិតផល',
} }

View File

@ -139,5 +139,6 @@ export const zh = {
OrderDetails: '订单详情', OrderDetails: '订单详情',
Subtotal: '小计', Subtotal: '小计',
Assigntome: '分配给我', Assigntome: '分配给我',
'About Us': '关于我们',
'Product Page': '产品页面',
} }

View File

@ -10,17 +10,17 @@ import styles from './styles'
const links = [ const links = [
{ {
title: i18n.t('ProductPage'), title: 'Product Page',
url: url:
'https://enatega.com/enatega-single-vendor/' 'https://enatega.com/enatega-single-vendor/'
}, },
{ title: i18n.t('Docs'), url: 'https://enatega.com/docs/enatega-singlevendor-rider-app-introduction/' }, { title: 'Docs', url: 'https://enatega.com/docs/enatega-singlevendor-rider-app-introduction/' },
{ {
title: i18n.t('Blog'), title: 'Blog',
url: url:
'https://enatega.com/blog/' 'https://enatega.com/blog/'
}, },
{ title: i18n.t('AboutUs'), url: 'https://ninjascode.com/our-team/' } { title: 'About Us', url: 'https://ninjascode.com/our-team/' }
] ]
function Help() { function Help() {
const navigation = useNavigation() const navigation = useNavigation()
@ -42,7 +42,7 @@ function Help() {
style={styles.itemContainer} style={styles.itemContainer}
key={index}> key={index}>
<TextDefault textColor={colors.fontMainColor} H4> <TextDefault textColor={colors.fontMainColor} H4>
{title} {i18n.t(title)}
</TextDefault> </TextDefault>
<AntDesign name="arrowright" size={scale(20)} /> <AntDesign name="arrowright" size={scale(20)} />
</TouchableOpacity> </TouchableOpacity>

View File

@ -2,6 +2,7 @@ import { useNavigation, useRoute } from '@react-navigation/native'
import React, { useLayoutEffect } from 'react' import React, { useLayoutEffect } from 'react'
import { WebView } from 'react-native-webview' import { WebView } from 'react-native-webview'
import { MainWrapper, Spinner } from '../../components' import { MainWrapper, Spinner } from '../../components'
import i18n from '../../../i18n'
function HelpBrowser() { function HelpBrowser() {
const navigation = useNavigation() const navigation = useNavigation()
@ -11,7 +12,7 @@ function HelpBrowser() {
useLayoutEffect(() => { useLayoutEffect(() => {
navigation.setOptions({ navigation.setOptions({
headerRight: null, headerRight: null,
headerTitle: title headerTitle: i18n.t(title)
}) })
}, [navigation]) }, [navigation])