diff --git a/api/service.js b/api/service.js index 212a872..fe5ad63 100644 --- a/api/service.js +++ b/api/service.js @@ -38,9 +38,9 @@ const Services = [ { Id: '1', sImgS: sImgS1, - sTitle: 'Family Immigration', + sTitle: 'familyImmigration.sTitle', slug: 'family-immigration', - description: 'Reunite with loved ones via green cards, fiancé visas, and petitions from filing to processing.', + description: 'familyImmigration.description', des3: 'One way to categorize the activities is in terms of the professional’s area of expertise such as competitive analysis, corporate strategy the activities', iconImg: iconImg1, ssImg1: sSingleimg1, @@ -49,9 +49,9 @@ const Services = [ { Id: '2', sImgS: sImgS2, - sTitle: 'Employment Visas', + sTitle: 'employmentVisas.sTitle', slug: 'employment-visas', - description: 'Build your U.S. career with H-1B, L-1, O-1, EB visas, expert support for professionals, investors.', + description: 'employmentVisas.description', des2: 'Lacus, etiam sed est eu tempus need Temer diam congue laoret .', des3: 'One way to categorize the activities is in terms of the professional’s area of expertise such as competitive analysis, corporate strategy the activities', iconImg: iconImg2, @@ -61,9 +61,9 @@ const Services = [ { Id: '3', sImgS: sImgS3, - sTitle: 'Deportation Defense', + sTitle: 'deportationDefense.sTitle', slug: 'deportation-defense', - description: 'Protect your stay with removal cancellation, asylum claims, and strong representation.', + description: 'deportationDefense.description', des2: 'Lacus, etiam sed est eu tempus need Temer diam congue laoret .', des3: 'One way to categorize the activities is in terms of the professional’s area of expertise such as competitive analysis, corporate strategy the activities', iconImg: iconImg3, @@ -73,9 +73,9 @@ const Services = [ { Id: '4', sImgS: sImgS4, - sTitle: 'Citizenship Services', + sTitle: 'citizenship.sTitle', slug: 'citizenship-services', - description: 'Achieve citizenship with naturalization help, test, and guidance on residency requirements.', + description: 'citizenship.description', des2: 'Lacus, etiam sed est eu tempus need Temer diam congue laoret .', des3: 'One way to categorize the activities is in terms of the professional’s area of expertise such as competitive analysis, corporate strategy the activities', iconImg: iconImg4, diff --git a/components/Features/Features.js b/components/Features/Features.js index d4c10dd..dcdddf2 100644 --- a/components/Features/Features.js +++ b/components/Features/Features.js @@ -6,7 +6,7 @@ import Link from 'next/link' import SectionTitle from "../SectionTitle/SectionTitle"; import Services from '../../api/service' import Image from "next/image"; - +import { useTranslation } from 'next-i18next'; const settings = { dots: true, @@ -65,6 +65,8 @@ const ClickHandler = () => { } const Features = (props) => { + const { t } = useTranslation('home4Card'); + return (
@@ -75,21 +77,21 @@ const Features = (props) => {
- -
+ +
{service.sTitle}
{/*

{service.sTitle}

*/} -

{service.sTitle}

+

{t(service.sTitle)}

- {service.description.length > 100 - ? service.description.slice(0, 100) + "..." - : service.description} + {t(service.description).length > 100 + ? t(service.description).slice(0, 100) + "..." + : t(service.description)}

diff --git a/components/about/about.js b/components/about/about.js index af72336..cd41c3b 100644 --- a/components/about/about.js +++ b/components/about/about.js @@ -1,9 +1,16 @@ -import React from 'react' -import sign from '/public/images/signeture.png' +import React from 'react'; +import sign from '/public/images/signeture.png'; import Image from 'next/image'; import Link from 'next/link'; +import { useTranslation } from 'next-i18next'; const About = (props) => { + const { t } = useTranslation('(home)/homeAbout'); + + // Ensure paragraphs is an array to avoid runtime errors + const paragraphs = t('paragraphs', { returnObjects: true }); + const paragraphList = Array.isArray(paragraphs) ? paragraphs : []; + return (
@@ -11,44 +18,7 @@ const About = (props) => {
- - {/*
-

1998

- -
- W - e - A - r - e - W - o - r - k - i - n - g - F - o - r - Y - o - u - S - i - n - c - e -
-
- - - -
-
-
-
-
*/} + About image
@@ -57,22 +27,25 @@ const About = (props) => {
+
- Expert Immigration Guidance -

We Turn Immigration Challenges Into Success Stories

+ {t('expertGuidance')} +

{t('mainTitle')}

-

Every immigration case tells a unique story of hope, determination, and the pursuit of the American dream. At Janahan law, we understand that behind every petition, application, and legal document is a real person with real dreams.

-

Our comprehensive approach combines decades of legal expertise with genuine care for our clients' futures. Whether you're seeking to reunite with family, advance your career, or find safety and protection in America, we provide the skilled advocacy and personal attention your case deserves. -

-

- From the initial consultation through the final approval, we stand with you every step of the way, ensuring no detail is overlooked and no opportunity is missed. -

+ + {paragraphList.map((para, index) => ( +

{para}

+ ))} +
-

“We believe every family deserves the chance to stay together, every professional deserves to pursue their career, and every person deserves safety and opportunity.”

+

{t('quote')}

- {/*
+ + {/* Optional signature block */} + {/* +
Robert Willum
@@ -80,14 +53,14 @@ const About = (props) => {
- + Signature
-
*/} +
+ */} +
- Know More - {/* - - */} + + {t('buttonText')}
@@ -96,7 +69,7 @@ const About = (props) => {
- ) -} + ); +}; -export default About; \ No newline at end of file +export default About; diff --git a/next-i18next.config.js b/next-i18next.config.js index 34240d4..a689538 100644 --- a/next-i18next.config.js +++ b/next-i18next.config.js @@ -4,7 +4,7 @@ module.exports = { locales: ['en', 'es'], localeDetection: false, }, - ns: ['common', 'menu', 'homeHero'], + ns: ['common', 'menu', 'homeHero', 'home4Card'], defaultNS: 'common', // localePath: './public/locales', }; @@ -18,5 +18,5 @@ module.exports = { // Vidhya -// Alagu Raj +// Alagu Raj - 'home4card', '(home)/homeAbout' diff --git a/pages/index.js b/pages/index.js index 2820601..48ab0fa 100644 --- a/pages/index.js +++ b/pages/index.js @@ -40,7 +40,7 @@ export default HomePage; export async function getStaticProps({ locale }) { return { props: { - ...(await serverSideTranslations(locale, ['common', 'menu', 'homeHero'])), // Add 'home', 'footer', etc. if needed + ...(await serverSideTranslations(locale, ['common', 'menu', 'homeHero', 'home4Card', '(home)/homeAbout'])), // Add 'home', 'footer', etc. if needed }, }; } diff --git a/public/locales/en/(home)/homeAbout.json b/public/locales/en/(home)/homeAbout.json new file mode 100644 index 0000000..6c2921d --- /dev/null +++ b/public/locales/en/(home)/homeAbout.json @@ -0,0 +1,11 @@ +{ + "expertGuidance": "Expert Immigration Guidance", + "mainTitle": "We Turn Immigration Challenges Into Success Stories", + "paragraphs": [ + "Every immigration case tells a unique story of hope, determination, and the pursuit of the American dream. At Janahan law, we understand that behind every petition, application, and legal document is a real person with real dreams.", + "Our comprehensive approach combines decades of legal expertise with genuine care for our clients' futures. Whether you're seeking to reunite with family, advance your career, or find safety and protection in America, we provide the skilled advocacy and personal attention your case deserves.", + "From the initial consultation through the final approval, we stand with you every step of the way, ensuring no detail is overlooked and no opportunity is missed." + ], + "quote": "“We believe every family deserves the chance to stay together, every professional deserves to pursue their career, and every person deserves safety and opportunity.”", + "buttonText": "Know More" +} diff --git a/public/locales/en/home4Card.json b/public/locales/en/home4Card.json new file mode 100644 index 0000000..d49260f --- /dev/null +++ b/public/locales/en/home4Card.json @@ -0,0 +1,18 @@ +{ + "familyImmigration": { + "sTitle": "Family Immigration", + "description": "Reunite with loved ones via green cards, fiancé visas, and petitions from filing to processing." + }, + "employmentVisas": { + "sTitle": "Employment Visas", + "description": "Build your U.S. career with H-1B, L-1, O-1, EB visas, expert support for professionals, investors." + }, + "deportationDefense": { + "sTitle": "Deportation Defense", + "description": "Protect your stay with removal cancellation, asylum claims, and strong representation." + }, + "citizenship": { + "sTitle": "Citizenship Services", + "description": "Achieve citizenship with naturalization help, test, and guidance on residency requirements." + } +} \ No newline at end of file diff --git a/public/locales/es/(home)/homeAbout.json b/public/locales/es/(home)/homeAbout.json new file mode 100644 index 0000000..a58cf10 --- /dev/null +++ b/public/locales/es/(home)/homeAbout.json @@ -0,0 +1,11 @@ +{ + "expertGuidance": "Guía Experta en Inmigración", + "mainTitle": "Convertimos los desafíos de inmigración en historias de éxito", + "paragraphs": [ + "Cada caso de inmigración cuenta una historia única de esperanza, determinación y la búsqueda del sueño americano. En Janahan law, entendemos que detrás de cada petición, solicitud y documento legal hay una persona real con sueños reales.", + "Nuestro enfoque integral combina décadas de experiencia legal con un cuidado genuino por el futuro de nuestros clientes. Ya sea que busque reunirse con su familia, avanzar en su carrera o encontrar seguridad y protección en Estados Unidos, ofrecemos la defensa experta y la atención personal que su caso merece.", + "Desde la consulta inicial hasta la aprobación final, estamos con usted en cada paso del camino, asegurándonos de que ningún detalle se pase por alto y ninguna oportunidad se pierda." + ], + "quote": "“Creemos que cada familia merece la oportunidad de permanecer unida, cada profesional merece perseguir su carrera y cada persona merece seguridad y oportunidad.”", + "buttonText": "Saber más" +} \ No newline at end of file diff --git a/public/locales/es/home4Card.json b/public/locales/es/home4Card.json new file mode 100644 index 0000000..b7b6529 --- /dev/null +++ b/public/locales/es/home4Card.json @@ -0,0 +1,18 @@ +{ + "familyImmigration": { + "sTitle": "Inmigración Familiar", + "description": "Reúnase con sus seres queridos mediante tarjetas verdes, visas de prometido y peticiones." + }, + "employmentVisas": { + "sTitle": "Visas de Trabajo", + "description": "Desarrolle su carrera en EE.UU. con visas H-1B, L-1, O-1, EB y apoyo experto." + }, + "deportationDefense": { + "sTitle": "Defensa Contra Deportación", + "description": "Proteja su estadía con cancelación de remoción, solicitudes de asilo y representación legal." + }, + "citizenship": { + "sTitle": "Servicios de Ciudadanía", + "description": "Logre la ciudadanía con ayuda en naturalización, pruebas y requisitos de residencia." + } +} \ No newline at end of file