diff --git a/messages/en.json b/messages/en.json index c7c2755..3d3d885 100644 --- a/messages/en.json +++ b/messages/en.json @@ -159,7 +159,10 @@ } }, "Footer": { + "description": "Building secure, scalable, enterprise-grade systems. Specializing in banking & fintech infrastructure.", + "quickLinksTitle": "Quick Links", + "connectTitle": "Connect", "backToTop": "Back to top", - "copyright": "Yolando. Built with Next.js & crafted with purpose." + "copyright": "Yolando. All Rights Reserved." } } \ No newline at end of file diff --git a/messages/id.json b/messages/id.json index 68dd090..d521204 100644 --- a/messages/id.json +++ b/messages/id.json @@ -159,7 +159,10 @@ } }, "Footer": { + "description": "Membangun sistem tingkat enterprise yang aman dan dapat diskalakan. Terspesialisasi dalam infrastruktur perbankan & fintech.", + "quickLinksTitle": "Tautan Cepat", + "connectTitle": "Terhubung", "backToTop": "Kembali ke atas", - "copyright": "Yolando. Dibangun dengan Next.js & dibuat dengan penuh tujuan." + "copyright": "Yolando. Semua Hak Cipta Dilindungi." } } \ No newline at end of file diff --git a/src/features/messages/contact-section.tsx b/src/features/messages/contact-section.tsx index 5e7fa04..290c826 100644 --- a/src/features/messages/contact-section.tsx +++ b/src/features/messages/contact-section.tsx @@ -147,9 +147,6 @@ export function ContactSection() { {/* Right — Form */}
- {/* Subtle top accent */} -
- {/* Success overlay */} {formState === "success" && (
diff --git a/src/i18n/routing.ts b/src/i18n/routing.ts index 886da15..12c1413 100644 --- a/src/i18n/routing.ts +++ b/src/i18n/routing.ts @@ -4,7 +4,8 @@ import {createNavigation} from 'next-intl/navigation'; export const routing = defineRouting({ locales: ['id', 'en'], defaultLocale: 'id', - localePrefix: 'as-needed' // Don't show /id for the default locale + localePrefix: 'as-needed', // Don't show /id for the default locale + localeDetection: false // Force id on first visit regardless of browser lang }); export const {Link, redirect, usePathname, useRouter, getPathname} = createNavigation(routing); diff --git a/src/shared/components/footer.tsx b/src/shared/components/footer.tsx index e33dda2..24ae637 100644 --- a/src/shared/components/footer.tsx +++ b/src/shared/components/footer.tsx @@ -10,6 +10,7 @@ const quickLinks = [ export function Footer() { const t = useTranslations("Footer"); + const tNav = useTranslations("Navigation"); return (
@@ -29,8 +30,7 @@ export function Footer() {

- Building secure, scalable, enterprise-grade systems. - Specializing in banking & fintech infrastructure. + {t("description")}

@@ -41,7 +41,7 @@ export function Footer() { {/* Quick Links */}

- Quick Links + {t("quickLinksTitle", { fallback: "Quick Links" })}

{quickLinks.map((link) => ( @@ -50,7 +50,7 @@ export function Footer() { href={link.href} className="block text-sm text-muted-foreground hover:text-accent transition-colors" > - {link.label} + {tNav(link.label?.toLowerCase() === "tech stack" ? "techStack" : link.label.toLowerCase() as any)} ))}
@@ -60,20 +60,11 @@ export function Footer() {

- Connect + {t("connectTitle", { fallback: "Connect" })}