Skip to content

Commit

Permalink
Merge pull request #132 from 202306-NEA-DZ-FEW/128-add-arabic-and-fre…
Browse files Browse the repository at this point in the history
…nch-translations-on-the-listing-page

 Add arabic and french translations on the listing page
  • Loading branch information
khaoulasara committed Nov 20, 2023
2 parents bdc6172 + e0306df commit 3b3f97b
Show file tree
Hide file tree
Showing 7 changed files with 223 additions and 49 deletions.
34 changes: 34 additions & 0 deletions public/locales/ar/listing.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"language": "ar",
"List an Item/Service": "إدراج منتج/خدمة",
"Type(Product, Service)": "النوع (منتج، خدمة)",
"Category": "الفئة",
"Condition": "الحالة",
"sale": "بيع",
"borrow": "استعارة",
"electronics": "إلكترونيات",
"books": "كتب",
"gaming": "ألعاب",
"clothes": "ملابس",
"shoes": "أحذية",
"food": "طعام",
"transportation": "نقل",
"furniture": "أثاث",
"Product name": "إسم المنتج",
"new": "جديد",
"like new": "كالجديد",
"good": "جيد",
"poor": "متوسط",
"Description": "وصف",
"Location(city)": "الموقع (المدينة)",
"Price": "السعر",
"Upload Images": "تحميل الصور",
"Adding your listing...": "...جارٍ إضافة منتجك",
"List": "إدراج",
"Picture with the same name has already been selected.": "تم اختيار صورة بنفس الاسم مسبقًا !",
"You can only upload a maximum of 4 images.": "يمكنك تحميل ما يصل إلى 4 صور فقط !",
"Please fill in all required fields.": "يرجى ملء جميع الحقول المطلوبة !",
"Please add all 4 pictures.": "يرجى إضافة جميع الصور الأربع.",
"Congratulations! Your listing has been successfully added!": "تهانينا! تمت إضافة منتجك بنجاح",
"Error adding your listing ": "خطأ في إضافة المنتج !"
}
34 changes: 34 additions & 0 deletions public/locales/en/listing.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"language": "en",
"List an Item/Service": "List an Item/Service",
"Type(Product, Service)": "Type(Product, Service)",
"Category": "Category",
"Condition": "Condition",
"sale": "Sale",
"borrow": "Borrow",
"electronics": "Electronics",
"books": "Books",
"gaming": "Gaming",
"clothes": "Clothes",
"shoes": "Shoes",
"food": "Food",
"transportation": "Transportation",
"furniture": "Furniture",
"Product name": "Product name",
"new": "New",
"like new": "Like New",
"good": "Good",
"poor": "Poor",
"Description": "Description",
"Location(city)": "Location(city)",
"Price": "Price",
"Upload Images": "Upload Images",
"List": "List",
"Adding your listing...": "Adding your listing...",
"Picture with the same name has already been selected.": "Picture with the same name has already been selected.",
"You can only upload a maximum of 4 images.": "You can only upload a maximum of 4 images.",
"Please fill in all required fields.": "Please fill in all required fields.",
"Please add all 4 pictures.": "Please add all 4 pictures.",
"Congratulations! Your listing has been successfully added!": "Congratulations! Your listing has been successfully added!",
"Error adding your listing ": "Error adding your listing"
}
2 changes: 1 addition & 1 deletion public/locales/fr/donations.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"language": "fr",
"why donate?": "Pourquoi faire un don ??",
"why donate?": "Pourquoi faire un don?",
"why donating paragraph": "La vie est chargée, et il peut parfois être facile d'oublier de montrer sa gratitude pour tout ce que vous avez reçu. Les étudiants ont des budgets serrés et ont besoin de soutien financier. Lorsque vous êtes prêt à donner et que vous recherchez des groupes de personnes à soutenir, cela peut nous rappeler tout ce que nous avons, et le fait de faire un don à une œuvre caritative est un moyen d'exprimer nos sentiments de gratitude. Inspirez les autres à donner en publiant votre geste de générosité sur les médias sociaux pour encourager les autres à donner généreusement.",
"make a difference by donating": "Faites une différence en faisant un don",
"small help": "Petite aide",
Expand Down
34 changes: 34 additions & 0 deletions public/locales/fr/listing.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"language": "fr",
"List an Item/Service": "Lister un Article/Service",
"Type(Product, Service)": "Type(Product, Service)",
"Category": "Catégorie",
"Condition": "État",
"sale": "Vente",
"borrow": "Emprunter",
"electronics": "Électronique",
"books": "Livres",
"gaming": "Jeux vidéo",
"clothes": "Vêtements",
"shoes": "Chaussures",
"food": "Nourriture",
"transportation": "Transport",
"furniture": "Meubles",
"Product name": "Nom du produit",
"new": "Neuf",
"like new": "Comme neuf",
"good": "Bon",
"poor": "Mauvais",
"Description": "Description",
"Location(city)": "Lieu(ville)",
"Price": "Prix",
"Upload Images": "Télécharger des images",
"Adding your listing...": "Ajout de votre liste...",
"List": "Liste",
"Picture with the same name has already been selected.": "Une image portant le même nom a déjà été sélectionnée.",
"You can only upload a maximum of 4 images.": "Vous ne pouvez télécharger qu'un maximum de 4 images.",
"Please fill in all required fields.": "Veuillez remplir tous les champs obligatoires.",
"Please add all 4 pictures.": "Veuillez ajouter toutes les 4 images.",
"Congratulations! Your listing has been successfully added!": "Félicitations ! Votre liste a été ajoutée avec succès !",
"Error adding your listing ": "Erreur lors de l'ajout de votre liste"
}
6 changes: 3 additions & 3 deletions src/components/Footer/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ function Footer() {
<li>
<Link
className='flex cursor-pointer items-center space-x-2 text-white hover:text-[#FF8A57]'
href='/listings'
href='/listing'
>
<FaRegPlusSquare size={20} />
<p> Start selling</p>
Expand Down Expand Up @@ -236,7 +236,7 @@ function Footer() {
<li className='hover:underline hover:text-orange'>
<Link
className='flex cursor-pointer items-center space-x-2 text-white hover:text-[#FF8A57]'
href='/listings'
href='/listing'
>
<FaRegPlusSquare size={20} />
<p> Start selling</p>
Expand Down Expand Up @@ -370,7 +370,7 @@ function Footer() {
<li className='hover:underline hover:text-orange'>
<Link
className='flex cursor-pointer items-center space-x-2 text-white hover:text-[#FF8A57]'
href='/listings'
href='/listing'
>
<FaRegPlusSquare size={20} />
<p> Start selling</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ exports[`renders correctly 1`] = `
<li>
<a
className="flex cursor-pointer items-center space-x-2 text-white hover:text-[#FF8A57]"
href="/listings"
href="/listing"
onClick={[Function]}
onMouseEnter={[Function]}
onTouchStart={[Function]}
Expand Down Expand Up @@ -569,7 +569,7 @@ exports[`renders correctly 1`] = `
>
<a
className="flex cursor-pointer items-center space-x-2 text-white hover:text-[#FF8A57]"
href="/listings"
href="/listing"
onClick={[Function]}
onMouseEnter={[Function]}
onTouchStart={[Function]}
Expand Down Expand Up @@ -914,7 +914,7 @@ exports[`renders correctly 1`] = `
>
<a
className="flex cursor-pointer items-center space-x-2 text-white hover:text-[#FF8A57]"
href="/listings"
href="/listing"
onClick={[Function]}
onMouseEnter={[Function]}
onTouchStart={[Function]}
Expand Down
Loading

0 comments on commit 3b3f97b

Please sign in to comment.