From 767ef636421dcbbd6323db1ca0b7a133686fb014 Mon Sep 17 00:00:00 2001 From: akash Date: Mon, 18 Aug 2025 14:04:32 +0530 Subject: [PATCH 1/2] Language Is Not Changed in Our Mission Page --- components/our-mission/index.js | 63 ++++++++----------------------- next-i18next.config.js | 2 +- package-lock.json | 2 +- pages/about/our-mission.js | 10 +++++ public/locales/en/ourMission.json | 15 ++++++++ public/locales/es/ourMission.json | 15 ++++++++ 6 files changed, 58 insertions(+), 49 deletions(-) create mode 100644 public/locales/en/ourMission.json create mode 100644 public/locales/es/ourMission.json diff --git a/components/our-mission/index.js b/components/our-mission/index.js index f5c87ca..50ca70a 100644 --- a/components/our-mission/index.js +++ b/components/our-mission/index.js @@ -1,7 +1,9 @@ import React from 'react'; -import Link from 'next/link'; +import { useTranslation } from 'next-i18next'; const OurMission = () => { + const { t } = useTranslation('ourMission'); + return (
@@ -18,37 +20,15 @@ const OurMission = () => { alt="" />
- {/*
-
    -
  • - By{' '} - Admin -
  • - -
  • - Jan, 2022 -
  • -
-
*/} -

Our Mission

+

{t("ourMission.title")}

-

- At Janahan law, our mission extends far beyond legal representation - we are dedicated to transforming the immigration experience through compassionate advocacy, strategic excellence, and unwavering commitment to justice. For many years, we have been a trusted source of support for individuals and families navigating the complexities of U.S. immigration law. -

-

- We believe that every person deserves expert legal guidance delivered with dignity, respect, and cultural understanding. Our mission is to break down the barriers that separate families, limit professional opportunities, and prevent individuals from achieving their American dreams. Through innovative legal strategies, multilingual communication, and personalized attention, we transform immigration challenges into success stories. We are not just attorneys - we are advocates, guides, and partners in your journey toward building a secure future in America. +

{t("ourMission.p1")}

+

{t("ourMission.p2")}

-

+
{t("ourMission.quote1")}
-
- Every immigration case we handle represents more than legal paperwork - it represents a family's hope for reunification, a professional's dream of advancement, and an individual's courage to build a new life in America. We are honored to be trusted partners in these transformative journeys. -
- -

- We measure our success not only in cases won but in lives transformed, families reunited, and dreams realized. Each approval letter represents years of separation ending, each naturalization ceremony celebrates a new American citizen, and each successful defense protects a family's right to remain together. This is why we practice immigration law - to be part of these transformative moments and to ensure that America remains a nation of opportunity for all who seek it through legal pathways. - -

+

{t("ourMission.p3")}

@@ -58,26 +38,15 @@ const OurMission = () => {
-

- Our commitment to excellence drives everything we do. From the initial consultation through case completion, we provide comprehensive legal services backed by decades of experience and an unwavering dedication to achieving positive outcomes for our clients. -

-

- We understand that immigration cases represent more than legal proceedings - they represent hopes, dreams, and family futures. This understanding guides our approach to every case, ensuring that each client receives the personalized attention and strategic advocacy they deserve. -

-
- We exist to transform the immigration experience through expert legal advocacy, compassionate service, and unwavering commitment to justice. Every case we handle, every family we reunite, and every dream we help achieve contributes to building a stronger, more inclusive America. -
+

{t("ourMission.p4")}

+

{t("ourMission.p5")}

-

- Community engagement lies at the heart of our mission. We regularly participate in know-your-rights presentations, provide pro bono services to underserved populations, and work with local organizations to ensure that accurate immigration information reaches those who need it most. -

-

- Our multilingual team reflects the diversity of the communities we serve, enabling us to communicate effectively and build trust with clients from around the world. We believe that language should never be a barrier to accessing quality legal representation. -

-

- We will continue advocating for comprehensive immigration reform, supporting policies that reflect America's values of fairness and opportunity, and working to ensure that the immigration system serves both individual applicants and the broader national interest. -

+
{t("ourMission.quote2")}
+ +

{t("ourMission.p6")}

+

{t("ourMission.p7")}

+

{t("ourMission.p8")}

@@ -87,4 +56,4 @@ const OurMission = () => { ); }; -export default OurMission; +export default OurMission; \ No newline at end of file diff --git a/next-i18next.config.js b/next-i18next.config.js index 34240d4..f225536 100644 --- a/next-i18next.config.js +++ b/next-i18next.config.js @@ -9,7 +9,7 @@ module.exports = { // localePath: './public/locales', }; -// aakash +// aakash - ourMission // Selvi diff --git a/package-lock.json b/package-lock.json index 8c7bc0f..28883be 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { - "name": "politian", + "name": "janahan-law", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/pages/about/our-mission.js b/pages/about/our-mission.js index e6debe4..ffedcf4 100644 --- a/pages/about/our-mission.js +++ b/pages/about/our-mission.js @@ -6,6 +6,8 @@ import Footer from '../../components/footer/Footer'; import OurMission from '../../components/our-mission'; import mission from '/public/images/about/our-mission-banner.png'; +import { serverSideTranslations } from 'next-i18next/serverSideTranslations'; + const AboutPage = () => { return ( @@ -18,3 +20,11 @@ const AboutPage = () => { ) }; export default AboutPage; + +export async function getStaticProps({ locale }) { + return { + props: { + ...(await serverSideTranslations(locale, ['common', 'menu', 'ourMission'])), // Add 'home', 'footer', etc. if needed + }, + }; +} diff --git a/public/locales/en/ourMission.json b/public/locales/en/ourMission.json new file mode 100644 index 0000000..b4134f6 --- /dev/null +++ b/public/locales/en/ourMission.json @@ -0,0 +1,15 @@ +{ + "ourMission": { + "title": "Our Mission", + "p1": "At Janahan law, our mission extends far beyond legal representation - we are dedicated to transforming the immigration experience through compassionate advocacy, strategic excellence, and unwavering commitment to justice. For many years, we have been a trusted source of support for individuals and families navigating the complexities of U.S. immigration law.", + "p2": "We believe that every person deserves expert legal guidance delivered with dignity, respect, and cultural understanding. Our mission is to break down the barriers that separate families, limit professional opportunities, and prevent individuals from achieving their American dreams. Through innovative legal strategies, multilingual communication, and personalized attention, we transform immigration challenges into success stories. We are not just attorneys - we are advocates, guides, and partners in your journey toward building a secure future in America.", + "quote1": "Every immigration case we handle represents more than legal paperwork - it represents a family's hope for reunification, a professional's dream of advancement, and an individual's courage to build a new life in America. We are honored to be trusted partners in these transformative journeys.", + "p3": "We measure our success not only in cases won but in lives transformed, families reunited, and dreams realized. Each approval letter represents years of separation ending, each naturalization ceremony celebrates a new American citizen, and each successful defense protects a family's right to remain together. This is why we practice immigration law - to be part of these transformative moments and to ensure that America remains a nation of opportunity for all who seek it through legal pathways.", + "p4": "Our commitment to excellence drives everything we do. From the initial consultation through case completion, we provide comprehensive legal services backed by decades of experience and an unwavering dedication to achieving positive outcomes for our clients.", + "p5": "We understand that immigration cases represent more than legal proceedings - they represent hopes, dreams, and family futures. This understanding guides our approach to every case, ensuring that each client receives the personalized attention and strategic advocacy they deserve.", + "quote2": "We exist to transform the immigration experience through expert legal advocacy, compassionate service, and unwavering commitment to justice. Every case we handle, every family we reunite, and every dream we help achieve contributes to building a stronger, more inclusive America.", + "p6": "Community engagement lies at the heart of our mission. We regularly participate in know-your-rights presentations, provide pro bono services to underserved populations, and work with local organizations to ensure that accurate immigration information reaches those who need it most.", + "p7": "Our multilingual team reflects the diversity of the communities we serve, enabling us to communicate effectively and build trust with clients from around the world. We believe that language should never be a barrier to accessing quality legal representation.", + "p8": "We will continue advocating for comprehensive immigration reform, supporting policies that reflect America's values of fairness and opportunity, and working to ensure that the immigration system serves both individual applicants and the broader national interest." + } +} \ No newline at end of file diff --git a/public/locales/es/ourMission.json b/public/locales/es/ourMission.json new file mode 100644 index 0000000..5d46868 --- /dev/null +++ b/public/locales/es/ourMission.json @@ -0,0 +1,15 @@ +{ + "ourMission": { + "title": "Nuestra Misión", + "p1": "En Janahan Law, nuestra misión va mucho más allá de la representación legal: estamos dedicados a transformar la experiencia migratoria a través de una defensa compasiva, excelencia estratégica y un compromiso inquebrantable con la justicia. Durante muchos años, hemos sido una fuente confiable de apoyo para personas y familias que navegan las complejidades de la ley de inmigración en EE.UU.", + "p2": "Creemos que toda persona merece una orientación legal experta brindada con dignidad, respeto y comprensión cultural. Nuestra misión es derribar las barreras que separan a las familias, limitan las oportunidades profesionales e impiden que las personas alcancen sus sueños americanos. A través de estrategias legales innovadoras, comunicación multilingüe y atención personalizada, transformamos los desafíos migratorios en historias de éxito. No somos solo abogados: somos defensores, guías y socios en tu camino hacia la construcción de un futuro seguro en América.", + "quote1": "Cada caso de inmigración que manejamos representa más que simples documentos legales: representa la esperanza de una familia por reunirse, el sueño de un profesional de avanzar y el valor de una persona para construir una nueva vida en América. Nos sentimos honrados de ser socios de confianza en estos viajes transformadores.", + "p3": "Medimos nuestro éxito no solo en los casos ganados, sino en las vidas transformadas, las familias reunidas y los sueños realizados. Cada carta de aprobación representa el fin de años de separación, cada ceremonia de naturalización celebra a un nuevo ciudadano estadounidense y cada defensa exitosa protege el derecho de una familia a permanecer unida. Esta es la razón por la que practicamos derecho migratorio: para ser parte de estos momentos transformadores y garantizar que América siga siendo una nación de oportunidades para todos los que la buscan por vías legales.", + "p4": "Nuestro compromiso con la excelencia impulsa todo lo que hacemos. Desde la consulta inicial hasta la finalización del caso, brindamos servicios legales integrales respaldados por décadas de experiencia y una dedicación inquebrantable a lograr resultados positivos para nuestros clientes.", + "p5": "Entendemos que los casos de inmigración representan más que procedimientos legales: representan esperanzas, sueños y el futuro de las familias. Esta comprensión guía nuestro enfoque en cada caso, asegurando que cada cliente reciba la atención personalizada y la defensa estratégica que merece.", + "quote2": "Existimos para transformar la experiencia migratoria a través de una defensa legal experta, un servicio compasivo y un compromiso inquebrantable con la justicia. Cada caso que manejamos, cada familia que reunimos y cada sueño que ayudamos a alcanzar contribuye a construir una América más fuerte e inclusiva.", + "p6": "La participación comunitaria está en el corazón de nuestra misión. Participamos regularmente en presentaciones sobre sus derechos, brindamos servicios pro bono a poblaciones desatendidas y trabajamos con organizaciones locales para garantizar que la información migratoria precisa llegue a quienes más la necesitan.", + "p7": "Nuestro equipo multilingüe refleja la diversidad de las comunidades a las que servimos, lo que nos permite comunicarnos eficazmente y generar confianza con clientes de todo el mundo. Creemos que el idioma nunca debe ser una barrera para acceder a una representación legal de calidad.", + "p8": "Seguiremos abogando por una reforma migratoria integral, apoyando políticas que reflejen los valores de justicia y oportunidad de Estados Unidos y trabajando para garantizar que el sistema migratorio sirva tanto a los solicitantes individuales como al interés nacional en general." + } +} \ No newline at end of file From 47d20d5f26ef30bc630bb69e0e04bfafca2021a4 Mon Sep 17 00:00:00 2001 From: Alaguraj0361 Date: Mon, 18 Aug 2025 14:18:39 +0530 Subject: [PATCH 2/2] home page about and 4 card section language updated --- api/service.js | 16 ++--- components/Features/Features.js | 18 ++--- components/about/about.js | 91 +++++++++---------------- next-i18next.config.js | 4 +- pages/index.js | 2 +- public/locales/en/(home)/homeAbout.json | 11 +++ public/locales/en/home4Card.json | 18 +++++ public/locales/es/(home)/homeAbout.json | 11 +++ public/locales/es/home4Card.json | 18 +++++ 9 files changed, 111 insertions(+), 78 deletions(-) create mode 100644 public/locales/en/(home)/homeAbout.json create mode 100644 public/locales/en/home4Card.json create mode 100644 public/locales/es/(home)/homeAbout.json create mode 100644 public/locales/es/home4Card.json 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