localisation issue solved

This commit is contained in:
Kashif Shehzad Baloch 2024-01-12 17:23:03 +05:00
parent 660a223739
commit e2653d8240
10 changed files with 63 additions and 27 deletions

View File

@ -68,13 +68,13 @@ function Addresses() {
H5 H5
style={alignment.Msmall} style={alignment.Msmall}
> >
No Addresses found. {i18n.t('NoAddressesfound')}
</TextDefault> </TextDefault>
<View> <View>
<TextDefault textColor={colors.fontSecondColor}> <TextDefault textColor={colors.fontSecondColor}>
You haven&#39;t saved any address yet. {i18n.t('SavedYet')}
{"\n"} {"\n"}
Click Add New Address to get started {i18n.t('ClickAddNewAddress')}
</TextDefault> </TextDefault>
</View> </View>
<TouchableOpacity <TouchableOpacity
@ -83,7 +83,7 @@ function Addresses() {
onPress={() => navigation.navigate(NAVIGATION_SCREEN.NewAddress)} onPress={() => navigation.navigate(NAVIGATION_SCREEN.NewAddress)}
> >
<TextDefault textColor={colors.white} H5 bold> <TextDefault textColor={colors.white} H5 bold>
Add New Address {i18n.t('AddNewAddress')}
</TextDefault> </TextDefault>
</TouchableOpacity> </TouchableOpacity>
</View> </View>
@ -135,7 +135,7 @@ function Addresses() {
H5 H5
style={[alignment.MTxSmall, alignment.MLsmall]} style={[alignment.MTxSmall, alignment.MLsmall]}
> >
{address.label} {i18n.t(address.label)}
</TextDefault> </TextDefault>
</View> </View>
<View style={[styles.titleAddress]}> <View style={[styles.titleAddress]}>
@ -185,7 +185,7 @@ function Addresses() {
textColor={colors.fontSecondColor} textColor={colors.fontSecondColor}
style={alignment.MBsmall} style={alignment.MBsmall}
> >
All rights are reserved by Enatega {i18n.t('rightsReserved')}
</TextDefault> </TextDefault>
</View> </View>
</WrapperView> </WrapperView>

View File

@ -10,15 +10,15 @@ import { useTheme } from '@react-navigation/native'
const links = [ const links = [
{ {
title: i18n.t('productPage'), title: 'Product Page',
url: 'https://enatega.com/enatega-single-vendor/' url: 'https://enatega.com/enatega-single-vendor/'
}, },
{ title: i18n.t('docs'), url: 'https://enatega.com/docs/enatega-singlevendor-introduction/' }, { title: 'Docs', url: 'https://enatega.com/docs/enatega-singlevendor-introduction/' },
{ {
title: i18n.t('blog'), title: 'Blog',
url: 'https://enatega.com/blog/' url: '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 styles = useStyle() const styles = useStyle()
@ -42,7 +42,7 @@ function Help() {
} }
style={styles.itemContainer} style={styles.itemContainer}
key={index}> key={index}>
<TextDefault H4>{title}</TextDefault> <TextDefault H4>{i18n.t(title)}</TextDefault>
<TouchableOpacity> <TouchableOpacity>
<AntDesign name="arrowright" size={22} color={colors.fontMainColor} /> <AntDesign name="arrowright" size={22} color={colors.fontMainColor} />
</TouchableOpacity> </TouchableOpacity>

View File

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

View File

@ -346,7 +346,7 @@ function Settings() {
style={alignment.MBsmall} style={alignment.MBsmall}
center center
> >
All rights are reserved by Enatega {i18n.t('rightsReserved')}
</TextDefault> </TextDefault>
{/* Modal for language Changes */} {/* Modal for language Changes */}

View File

@ -187,8 +187,8 @@ export const ar = {
locaPermission: 'لم يتم منح إذن الموقع', locaPermission: 'لم يتم منح إذن الموقع',
addressAdded: 'تمت إضافة العنوان', addressAdded: 'تمت إضافة العنوان',
productPage: 'صفحة المنتج', productPage: 'صفحة المنتج',
docs: 'المستندات', Docs: 'المستندات',
blog: 'المدونة', Blog: 'المدونة',
aboutUs: 'عنا', aboutUs: 'عنا',
myVouchers: 'قسائمي', myVouchers: 'قسائمي',
typeVoucherCode: 'اكتب رمز القسيمة', typeVoucherCode: 'اكتب رمز القسيمة',
@ -239,5 +239,11 @@ export const ar = {
ResetPasswordLinkSent: 'تم إرسال رابط إعادة تعيين كلمة المرور إلى بريدك الإلكتروني', ResetPasswordLinkSent: 'تم إرسال رابط إعادة تعيين كلمة المرور إلى بريدك الإلكتروني',
LocationPermissionNotGranted: 'لم يتم منح إذن الموقع', LocationPermissionNotGranted: 'لم يتم منح إذن الموقع',
NoFooditemFound: 'لم يتم العثور على عنصر طعام', NoFooditemFound: 'لم يتم العثور على عنصر طعام',
SavedYet: 'لم تقم بحفظ أي عنوان بعد.',
ClickAddNewAddress: 'انقر فوق إضافة عنوان جديد للبدء',
NoAddressesfound: 'لم يتم العثور على عناوين.',
AddNewAddress: 'إضافة عنوان جديد',
'About Us': 'من نحن',
'Product Page': 'صفحة المنتج',
} }

View File

@ -187,8 +187,8 @@ export const de = {
locaPermission: 'Standortberechtigung nicht erteilt', locaPermission: 'Standortberechtigung nicht erteilt',
addressAdded: 'Adresse hinzugefügt', addressAdded: 'Adresse hinzugefügt',
productPage: 'Produktseite', productPage: 'Produktseite',
docs: 'Dokumente', Docs: 'Dokumente',
blog: 'Blog', Blog: 'Blog',
aboutUs: 'Über uns', aboutUs: 'Über uns',
myVouchers: 'Meine Gutscheine', myVouchers: 'Meine Gutscheine',
typeVoucherCode: "Gutscheincode eingeben", typeVoucherCode: "Gutscheincode eingeben",
@ -239,5 +239,11 @@ export const de = {
ResetPasswordLinkSent: 'Reset wachtwoordlink verzonden naar uw e-mail', ResetPasswordLinkSent: 'Reset wachtwoordlink verzonden naar uw e-mail',
LocationPermissionNotGranted: 'Locatietoestemming niet verleend', LocationPermissionNotGranted: 'Locatietoestemming niet verleend',
NoFooditemFound: 'Geen voedingsmiddel gevonden', NoFooditemFound: 'Geen voedingsmiddel gevonden',
SavedYet: 'Je hebt nog geen enkel adres opgeslagen.',
ClickAddNewAddress: 'Klik op Nieuw adres toevoegen om te beginnen',
NoAddressesfound: 'Geen adressen gevonden.',
AddNewAddress: 'Nieuw adres toevoegen',
'About Us': 'Over ons',
'Product Page': 'Productpagina',
} }

View File

@ -187,8 +187,8 @@ export const en = {
locaPermission: 'Location permission not granted', locaPermission: 'Location permission not granted',
addressAdded: 'Address added', addressAdded: 'Address added',
productPage: 'Product Page', productPage: 'Product Page',
docs: 'Docs', Docs: 'Docs',
blog: 'Blog', Blog: 'Blog',
aboutUs: 'About Us', aboutUs: 'About Us',
myVouchers: 'My Vouchers', myVouchers: 'My Vouchers',
typeVoucherCode: "TYPe voucher code", typeVoucherCode: "TYPe voucher code",
@ -238,5 +238,11 @@ export const en = {
AnErrorOccured: 'An error occured. Please try again', AnErrorOccured: 'An error occured. Please try again',
ResetPasswordLinkSent: 'Reset password link sent on your email', ResetPasswordLinkSent: 'Reset password link sent on your email',
LocationPermissionNotGranted: 'Location permission not granted', LocationPermissionNotGranted: 'Location permission not granted',
NoFooditemFound: 'No food item found' NoFooditemFound: 'No food item found',
SavedYet: 'You haven&#39;t saved any address yet.',
ClickAddNewAddress: 'Click Add New Address to get started',
NoAddressesfound: 'No Addresses found.',
AddNewAddress: 'Add New Address',
'About Us': 'About Us',
'Product Page': 'Product Page',
} }

View File

@ -188,8 +188,8 @@ export const fr = {
locaPermission: 'Autorisation de localisation non accordée', locaPermission: 'Autorisation de localisation non accordée',
addressAdded: 'Adresse ajoutée', addressAdded: 'Adresse ajoutée',
productPage: 'Page produit', productPage: 'Page produit',
docs: 'Docs', Docs: 'Docs',
blog: 'Blog', Blog: 'Blog',
aboutUs: 'À propos de nous', aboutUs: 'À propos de nous',
myVouchers: 'Mes bons', myVouchers: 'Mes bons',
typeVoucherCode: "Saisir le code du bon", typeVoucherCode: "Saisir le code du bon",
@ -240,5 +240,10 @@ export const fr = {
ResetPasswordLinkSent: 'Lien de réinitialisation du mot de passe envoyé sur votre email', ResetPasswordLinkSent: 'Lien de réinitialisation du mot de passe envoyé sur votre email',
LocationPermissionNotGranted: 'Permission de localisation non accordée', LocationPermissionNotGranted: 'Permission de localisation non accordée',
NoFooditemFound: 'Aucun article alimentaire trouvé', NoFooditemFound: 'Aucun article alimentaire trouvé',
SavedYet: "Vous n'avez encore sauvegardé aucune adresse.",
ClickAddNewAddress: 'Cliquez sur Ajouter une nouvelle adresse pour commencer',
NoAddressesfound: 'Aucune adresse trouvée.',
AddNewAddress: 'Ajouter une nouvelle adresse',
'About Us': 'À propos de nous',
'Product Page': 'Page de produit',
} }

View File

@ -183,8 +183,8 @@ export const km = {
locaPermission: 'ការអនុញ្ញាតឱ្យតាមដានទីតាំងមិនបានទទួលយក', locaPermission: 'ការអនុញ្ញាតឱ្យតាមដានទីតាំងមិនបានទទួលយក',
addressAdded: 'បាន​បន្ថែម​អាសយដ្ឋាន', addressAdded: 'បាន​បន្ថែម​អាសយដ្ឋាន',
productPage: 'ទំព័រផលិតផល', productPage: 'ទំព័រផលិតផល',
docs: 'ឯកសារ', Docs: 'ឯកសារ',
blog: 'ប្លក់', Blog: 'ប្លក់',
aboutUs: 'អំពី​យើង', aboutUs: 'អំពី​យើង',
myVouchers: 'លេខកូដ​វេបសាយ​របស់​ខ្ញុំ', myVouchers: 'លេខកូដ​វេបសាយ​របស់​ខ្ញុំ',
typeVoucherCode: "បញ្ចូល​លេខកូដ​វេបសាយ", typeVoucherCode: "បញ្ចូល​លេខកូដ​វេបសាយ",
@ -235,5 +235,11 @@ export const km = {
ResetPasswordLinkSent: 'បានផ្ញើតំណរពេលបានប្ដូរពាក្យសម្ងាត់របស់អ្នកហើយ', ResetPasswordLinkSent: 'បានផ្ញើតំណរពេលបានប្ដូរពាក្យសម្ងាត់របស់អ្នកហើយ',
LocationPermissionNotGranted: 'មិនបានទទួលស្ថានភាពទីតាំង', LocationPermissionNotGranted: 'មិនបានទទួលស្ថានភាពទីតាំង',
NoFooditemFound: 'មិនបានរកឃើញវាលម្ហូប', NoFooditemFound: 'មិនបានរកឃើញវាលម្ហូប',
SavedYet: 'អ្នកមិនទាន់រក្សាទុកអាសយដ្ឋានណាមួយទេ។',
ClickAddNewAddress: 'ចុចលើប៊ូតុងបន្ថែមអាសយដ្ឋានថ្មីដើម្បីចាប់ផ្តើម',
NoAddressesfound: 'រកមិនឃើញអាសយដ្ឋានទេ។',
AddNewAddress: 'បន្ថែមអាសយដ្ឋានថ្មី',
'About Us': 'អំពីពួកយើង',
'Product Page': 'ទំព័រផលិតផល',
} }

View File

@ -179,8 +179,8 @@ export const zh = {
locaPermission: '未授予位置权限', locaPermission: '未授予位置权限',
addressAdded: '已添加地址', addressAdded: '已添加地址',
productPage: '产品页面', productPage: '产品页面',
docs: '文档', Docs: '文档',
blog: '博客', Blog: '博客',
aboutUs: '关于我们', aboutUs: '关于我们',
myVouchers: '我的优惠券', myVouchers: '我的优惠券',
typeVoucherCode: "输入优惠券代码", typeVoucherCode: "输入优惠券代码",
@ -231,5 +231,11 @@ export const zh = {
ResetPasswordLinkSent: '重置密码链接已发送到您的电子邮件', ResetPasswordLinkSent: '重置密码链接已发送到您的电子邮件',
LocationPermissionNotGranted: '未授予位置权限', LocationPermissionNotGranted: '未授予位置权限',
NoFooditemFound: '找不到食品项目', NoFooditemFound: '找不到食品项目',
SavedYet: '您尚未保存任何地址。',
ClickAddNewAddress: '单击“添加新地址”以开始',
NoAddressesfound: '未找到地址。',
AddNewAddress: '添加新地址',
'About Us': '关于我们',
'Product Page': '产品页面',
} }