Merge pull request #41 from ninjas-code-official/language-localisation
localisation issue solved
This commit is contained in:
commit
a002e6776f
|
@ -68,13 +68,13 @@ function Addresses() {
|
|||
H5
|
||||
style={alignment.Msmall}
|
||||
>
|
||||
No Addresses found.
|
||||
{i18n.t('NoAddressesfound')}
|
||||
</TextDefault>
|
||||
<View>
|
||||
<TextDefault textColor={colors.fontSecondColor}>
|
||||
You haven't saved any address yet.
|
||||
{i18n.t('SavedYet')}
|
||||
{"\n"}
|
||||
Click Add New Address to get started
|
||||
{i18n.t('ClickAddNewAddress')}
|
||||
</TextDefault>
|
||||
</View>
|
||||
<TouchableOpacity
|
||||
|
@ -83,7 +83,7 @@ function Addresses() {
|
|||
onPress={() => navigation.navigate(NAVIGATION_SCREEN.NewAddress)}
|
||||
>
|
||||
<TextDefault textColor={colors.white} H5 bold>
|
||||
Add New Address
|
||||
{i18n.t('AddNewAddress')}
|
||||
</TextDefault>
|
||||
</TouchableOpacity>
|
||||
</View>
|
||||
|
@ -135,7 +135,7 @@ function Addresses() {
|
|||
H5
|
||||
style={[alignment.MTxSmall, alignment.MLsmall]}
|
||||
>
|
||||
{address.label}
|
||||
{i18n.t(address.label)}
|
||||
</TextDefault>
|
||||
</View>
|
||||
<View style={[styles.titleAddress]}>
|
||||
|
@ -185,7 +185,7 @@ function Addresses() {
|
|||
textColor={colors.fontSecondColor}
|
||||
style={alignment.MBsmall}
|
||||
>
|
||||
All rights are reserved by Enatega
|
||||
{i18n.t('rightsReserved')}
|
||||
</TextDefault>
|
||||
</View>
|
||||
</WrapperView>
|
||||
|
|
|
@ -10,15 +10,15 @@ import { useTheme } from '@react-navigation/native'
|
|||
|
||||
const links = [
|
||||
{
|
||||
title: i18n.t('productPage'),
|
||||
title: 'Product Page',
|
||||
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/'
|
||||
},
|
||||
{ title: i18n.t('aboutUs'), url: 'https://ninjascode.com/our-team' }
|
||||
{ title: 'About Us', url: 'https://ninjascode.com/our-team' }
|
||||
]
|
||||
function Help() {
|
||||
const styles = useStyle()
|
||||
|
@ -42,7 +42,7 @@ function Help() {
|
|||
}
|
||||
style={styles.itemContainer}
|
||||
key={index}>
|
||||
<TextDefault H4>{title}</TextDefault>
|
||||
<TextDefault H4>{i18n.t(title)}</TextDefault>
|
||||
<TouchableOpacity>
|
||||
<AntDesign name="arrowright" size={22} color={colors.fontMainColor} />
|
||||
</TouchableOpacity>
|
||||
|
|
|
@ -3,6 +3,7 @@ import { WebView } from 'react-native-webview'
|
|||
import Spinner from '../../components/Spinner/Spinner'
|
||||
import { useNavigation, useRoute } from '@react-navigation/native'
|
||||
import { WrapperView } from '../../components'
|
||||
import i18n from '../../../i18n'
|
||||
|
||||
function HelpBrowser() {
|
||||
const navigation = useNavigation()
|
||||
|
@ -12,7 +13,7 @@ function HelpBrowser() {
|
|||
useLayoutEffect(() => {
|
||||
navigation.setOptions({
|
||||
headerRight: null,
|
||||
headerTitle: title
|
||||
headerTitle: i18n.t(title)
|
||||
})
|
||||
}, [navigation])
|
||||
|
||||
|
|
|
@ -346,7 +346,7 @@ function Settings() {
|
|||
style={alignment.MBsmall}
|
||||
center
|
||||
>
|
||||
All rights are reserved by Enatega
|
||||
{i18n.t('rightsReserved')}
|
||||
</TextDefault>
|
||||
|
||||
{/* Modal for language Changes */}
|
||||
|
|
|
@ -187,8 +187,8 @@ export const ar = {
|
|||
locaPermission: 'لم يتم منح إذن الموقع',
|
||||
addressAdded: 'تمت إضافة العنوان',
|
||||
productPage: 'صفحة المنتج',
|
||||
docs: 'المستندات',
|
||||
blog: 'المدونة',
|
||||
Docs: 'المستندات',
|
||||
Blog: 'المدونة',
|
||||
aboutUs: 'عنا',
|
||||
myVouchers: 'قسائمي',
|
||||
typeVoucherCode: 'اكتب رمز القسيمة',
|
||||
|
@ -239,5 +239,11 @@ export const ar = {
|
|||
ResetPasswordLinkSent: 'تم إرسال رابط إعادة تعيين كلمة المرور إلى بريدك الإلكتروني',
|
||||
LocationPermissionNotGranted: 'لم يتم منح إذن الموقع',
|
||||
NoFooditemFound: 'لم يتم العثور على عنصر طعام',
|
||||
SavedYet: 'لم تقم بحفظ أي عنوان بعد.',
|
||||
ClickAddNewAddress: 'انقر فوق إضافة عنوان جديد للبدء',
|
||||
NoAddressesfound: 'لم يتم العثور على عناوين.',
|
||||
AddNewAddress: 'إضافة عنوان جديد',
|
||||
'About Us': 'من نحن',
|
||||
'Product Page': 'صفحة المنتج',
|
||||
|
||||
}
|
||||
|
|
|
@ -187,8 +187,8 @@ export const de = {
|
|||
locaPermission: 'Standortberechtigung nicht erteilt',
|
||||
addressAdded: 'Adresse hinzugefügt',
|
||||
productPage: 'Produktseite',
|
||||
docs: 'Dokumente',
|
||||
blog: 'Blog',
|
||||
Docs: 'Dokumente',
|
||||
Blog: 'Blog',
|
||||
aboutUs: 'Über uns',
|
||||
myVouchers: 'Meine Gutscheine',
|
||||
typeVoucherCode: "Gutscheincode eingeben",
|
||||
|
@ -239,5 +239,11 @@ export const de = {
|
|||
ResetPasswordLinkSent: 'Reset wachtwoordlink verzonden naar uw e-mail',
|
||||
LocationPermissionNotGranted: 'Locatietoestemming niet verleend',
|
||||
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',
|
||||
|
||||
}
|
||||
|
|
|
@ -187,8 +187,8 @@ export const en = {
|
|||
locaPermission: 'Location permission not granted',
|
||||
addressAdded: 'Address added',
|
||||
productPage: 'Product Page',
|
||||
docs: 'Docs',
|
||||
blog: 'Blog',
|
||||
Docs: 'Docs',
|
||||
Blog: 'Blog',
|
||||
aboutUs: 'About Us',
|
||||
myVouchers: 'My Vouchers',
|
||||
typeVoucherCode: "TYPe voucher code",
|
||||
|
@ -238,5 +238,11 @@ export const en = {
|
|||
AnErrorOccured: 'An error occured. Please try again',
|
||||
ResetPasswordLinkSent: 'Reset password link sent on your email',
|
||||
LocationPermissionNotGranted: 'Location permission not granted',
|
||||
NoFooditemFound: 'No food item found'
|
||||
NoFooditemFound: 'No food item found',
|
||||
SavedYet: 'You haven'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',
|
||||
}
|
||||
|
|
|
@ -188,8 +188,8 @@ export const fr = {
|
|||
locaPermission: 'Autorisation de localisation non accordée',
|
||||
addressAdded: 'Adresse ajoutée',
|
||||
productPage: 'Page produit',
|
||||
docs: 'Docs',
|
||||
blog: 'Blog',
|
||||
Docs: 'Docs',
|
||||
Blog: 'Blog',
|
||||
aboutUs: 'À propos de nous',
|
||||
myVouchers: 'Mes bons',
|
||||
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',
|
||||
LocationPermissionNotGranted: 'Permission de localisation non accordée',
|
||||
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',
|
||||
}
|
||||
|
|
|
@ -183,8 +183,8 @@ export const km = {
|
|||
locaPermission: 'ការអនុញ្ញាតឱ្យតាមដានទីតាំងមិនបានទទួលយក',
|
||||
addressAdded: 'បានបន្ថែមអាសយដ្ឋាន',
|
||||
productPage: 'ទំព័រផលិតផល',
|
||||
docs: 'ឯកសារ',
|
||||
blog: 'ប្លក់',
|
||||
Docs: 'ឯកសារ',
|
||||
Blog: 'ប្លក់',
|
||||
aboutUs: 'អំពីយើង',
|
||||
myVouchers: 'លេខកូដវេបសាយរបស់ខ្ញុំ',
|
||||
typeVoucherCode: "បញ្ចូលលេខកូដវេបសាយ",
|
||||
|
@ -235,5 +235,11 @@ export const km = {
|
|||
ResetPasswordLinkSent: 'បានផ្ញើតំណរពេលបានប្ដូរពាក្យសម្ងាត់របស់អ្នកហើយ',
|
||||
LocationPermissionNotGranted: 'មិនបានទទួលស្ថានភាពទីតាំង',
|
||||
NoFooditemFound: 'មិនបានរកឃើញវាលម្ហូប',
|
||||
SavedYet: 'អ្នកមិនទាន់រក្សាទុកអាសយដ្ឋានណាមួយទេ។',
|
||||
ClickAddNewAddress: 'ចុចលើប៊ូតុងបន្ថែមអាសយដ្ឋានថ្មីដើម្បីចាប់ផ្តើម',
|
||||
NoAddressesfound: 'រកមិនឃើញអាសយដ្ឋានទេ។',
|
||||
AddNewAddress: 'បន្ថែមអាសយដ្ឋានថ្មី',
|
||||
'About Us': 'អំពីពួកយើង',
|
||||
'Product Page': 'ទំព័រផលិតផល',
|
||||
|
||||
}
|
||||
|
|
|
@ -179,8 +179,8 @@ export const zh = {
|
|||
locaPermission: '未授予位置权限',
|
||||
addressAdded: '已添加地址',
|
||||
productPage: '产品页面',
|
||||
docs: '文档',
|
||||
blog: '博客',
|
||||
Docs: '文档',
|
||||
Blog: '博客',
|
||||
aboutUs: '关于我们',
|
||||
myVouchers: '我的优惠券',
|
||||
typeVoucherCode: "输入优惠券代码",
|
||||
|
@ -231,5 +231,11 @@ export const zh = {
|
|||
ResetPasswordLinkSent: '重置密码链接已发送到您的电子邮件',
|
||||
LocationPermissionNotGranted: '未授予位置权限',
|
||||
NoFooditemFound: '找不到食品项目',
|
||||
SavedYet: '您尚未保存任何地址。',
|
||||
ClickAddNewAddress: '单击“添加新地址”以开始',
|
||||
NoAddressesfound: '未找到地址。',
|
||||
AddNewAddress: '添加新地址',
|
||||
'About Us': '关于我们',
|
||||
'Product Page': '产品页面',
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue