From b194db92007d0aeb6e6abda3fa518d33b93e2802 Mon Sep 17 00:00:00 2001 From: filipKovachev Date: Wed, 27 Nov 2024 09:01:02 +0200 Subject: [PATCH] add translation split translation into messages add missing translation add missing thank you messages --- .../ecommerce-jewellery-store/src/App.tsx | 55 +- .../src/components/AdminView.tsx | 82 +-- .../src/components/CategoryList.tsx | 11 +- .../src/components/FilterComponent.tsx | 28 +- .../src/components/Footer.tsx | 55 +- .../src/components/Header.tsx | 53 +- .../src/components/ShoppingCartList.tsx | 104 +--- .../src/components/Testemonials.tsx | 116 ++-- .../src/data/languageItems.ts | 13 + .../src/data/listData.ts | 353 +++++++------ .../src/data/messages/en.ts | 494 ++++++++++++++++++ .../src/data/messages/es.ts | 493 +++++++++++++++++ .../src/data/messages/fr.ts | 445 ++++++++++++++++ .../src/data/types.ts | 53 ++ .../src/helpers/LanguageContext.tsx | 33 ++ .../src/pages/AllProductsListView.tsx | 86 +-- .../src/pages/Contacts.tsx | 24 +- .../src/pages/DetailedCategory.tsx | 101 ++-- .../src/pages/Home.tsx | 71 +-- .../src/pages/PaymentDetails.tsx | 44 +- .../src/pages/ProductsDetails.tsx | 37 +- .../src/pages/ThankYou.tsx | 24 +- 22 files changed, 2203 insertions(+), 572 deletions(-) create mode 100644 examples/ecommerce-jewellery-store/src/data/languageItems.ts create mode 100644 examples/ecommerce-jewellery-store/src/data/messages/en.ts create mode 100644 examples/ecommerce-jewellery-store/src/data/messages/es.ts create mode 100644 examples/ecommerce-jewellery-store/src/data/messages/fr.ts create mode 100644 examples/ecommerce-jewellery-store/src/helpers/LanguageContext.tsx diff --git a/examples/ecommerce-jewellery-store/src/App.tsx b/examples/ecommerce-jewellery-store/src/App.tsx index 8212d999..f4f6169c 100644 --- a/examples/ecommerce-jewellery-store/src/App.tsx +++ b/examples/ecommerce-jewellery-store/src/App.tsx @@ -1,6 +1,7 @@ import { BrowserRouter as Router, Routes, Route } from "react-router-dom"; import Header from "./components/Header"; import Footer from "./components/Footer"; +import { ShoppingCartList } from "./components/ShoppingCartList"; import Contacts from "./pages/Contacts"; import ThankYou from "./pages/ThankYou"; import PaymentDetails from "./pages/PaymentDetails"; @@ -14,35 +15,37 @@ import { CartProvider } from "./helpers/CartContext"; import { AdminProvider } from './helpers/AdminContext'; import { CategoriesProvider } from './helpers/CategoriesContext'; import { ThemeProvider } from './helpers/ThemeContext'; -import { ShoppingCartList } from "./components/ShoppingCartList"; +import { LanguageProvider } from "./helpers/LanguageContext"; function App() { return ( - - - - - -
- - - } /> - } /> - } /> - } /> - } /> - } /> - } /> - } /> - - -