-
核心业务 • Services
+
{t('title')} • {t('subtitle')}
- 全方位技术解决方案
+ {t('heading')}
diff --git a/i18n/request.ts b/i18n/request.ts
new file mode 100644
index 0000000..b23555d
--- /dev/null
+++ b/i18n/request.ts
@@ -0,0 +1,16 @@
+import {getRequestConfig} from 'next-intl/server';
+
+export default getRequestConfig(async ({requestLocale}) => {
+ // This typically corresponds to the `[locale]` segment
+ let locale = await requestLocale;
+
+ // Ensure that a valid locale is used
+ if (!locale || !['en', 'zh', 'ja'].includes(locale)) {
+ locale = 'zh';
+ }
+
+ return {
+ locale,
+ messages: (await import(`../messages/${locale}.json`)).default
+ };
+});
diff --git a/i18n/routing.ts b/i18n/routing.ts
new file mode 100644
index 0000000..f3ac6c4
--- /dev/null
+++ b/i18n/routing.ts
@@ -0,0 +1,15 @@
+import {defineRouting} from 'next-intl/routing';
+import {createNavigation} from 'next-intl/navigation';
+
+export const routing = defineRouting({
+ // A list of all locales that are supported
+ locales: ['en', 'zh', 'ja'],
+
+ // Used when no locale matches
+ defaultLocale: 'zh'
+});
+
+// Lightweight wrappers around Next.js' navigation APIs
+// that will consider the routing configuration
+export const {Link, redirect, usePathname, useRouter, getPathname} =
+ createNavigation(routing);
diff --git a/messages/en.json b/messages/en.json
new file mode 100644
index 0000000..0864135
--- /dev/null
+++ b/messages/en.json
@@ -0,0 +1,92 @@
+{
+ "Navbar": {
+ "home": "Home",
+ "about": "About Us",
+ "services": "Services",
+ "contact": "Contact"
+ },
+ "Hero": {
+ "title": "Digital Future",
+ "subtitle": "Innovation Leads Change",
+ "description": "We are committed to providing excellent digital solutions for enterprises, driving business value with innovative technology.",
+ "cta": "Learn More"
+ },
+ "About": {
+ "title": "About Us",
+ "subtitle": "About Us",
+ "heading": "Focus on Technology",
+ "subheading": "Achieve Excellence",
+ "p1": "Nanjing Feie Information Technology Co., Ltd. is located in Nanjing, the ancient capital of the Six Dynasties. We are a high-tech enterprise focusing on the R&D and application of cutting-edge information technology.",
+ "p2": "Since our establishment, we have always adhered to the concept of \"Technology Driven, Service First\", deeply cultivating in the fields of software development, system integration, and digital transformation consulting. We have an experienced and creative technical team dedicated to changing the world through code and connecting the future with wisdom.",
+ "p3": "In the vibrant innovation hot land of Lishui District, we are providing customized IT solutions for customers in various industries with steady steps, helping enterprises ride the wind and waves in the digital economy.",
+ "stats": {
+ "cases": "Successful Cases",
+ "support": "Tech Support"
+ }
+ },
+ "Services": {
+ "title": "Core Services",
+ "subtitle": "Services",
+ "heading": "Comprehensive Tech Solutions",
+ "items": {
+ "customDev": {
+ "title": "Custom Software Development",
+ "desc": "Build exclusive Web applications, mobile APPs, and desktop software according to unique enterprise needs to optimize business processes."
+ },
+ "digitalTrans": {
+ "title": "Digital Transformation",
+ "desc": "Provide comprehensive digital consulting and implementation plans to help traditional enterprises achieve intelligent upgrades."
+ },
+ "systemIntegration": {
+ "title": "System Integration",
+ "desc": "Break information silos, achieve data interoperability and functional synergy between heterogeneous systems, and improve overall operational efficiency."
+ },
+ "bigData": {
+ "title": "Big Data Analysis",
+ "desc": "Mine data value, provide visual reports and intelligent decision support, making data a core asset of the enterprise."
+ },
+ "cloudService": {
+ "title": "Cloud Services & Deployment",
+ "desc": "Provide safe and reliable cloud architecture design, migration, and operation and maintenance services to ensure high availability of business."
+ },
+ "security": {
+ "title": "Information Security",
+ "desc": "Build a multi-level security protection system to protect enterprise core data assets from threats."
+ }
+ }
+ },
+ "Contact": {
+ "title": "Contact Us",
+ "subtitle": "Contact Us",
+ "heading": "Start Your Digital Journey",
+ "form": {
+ "name": "Name",
+ "phone": "Phone",
+ "email": "Email",
+ "description": "Description",
+ "submit": "Submit",
+ "submitting": "Submitting...",
+ "success": "Message submitted successfully, we will contact you soon!",
+ "errors": {
+ "nameRequired": "Please enter your name",
+ "phoneRequired": "Please enter your phone number",
+ "phoneInvalid": "Please enter a valid phone number",
+ "emailRequired": "Please enter your email",
+ "emailInvalid": "Please enter a valid email address",
+ "descRequired": "Please describe your needs"
+ }
+ },
+ "info": {
+ "address": "Registered Address",
+ "addressValue": "Room 1630, Building 8, No. 81 Zhongda Street, Yongyang Subdistrict, Lishui District, Nanjing, Jiangsu Province",
+ "phone": "Phone",
+ "email": "Email"
+ }
+ },
+ "Footer": {
+ "company": "Nanjing Feie Information Technology Co., Ltd.",
+ "rights": "© {year} Nanjing Feie Information Technology Co., Ltd. All rights reserved.",
+ "privacy": "Privacy Policy",
+ "terms": "Terms of Service"
+ }
+}
diff --git a/messages/ja.json b/messages/ja.json
new file mode 100644
index 0000000..cb63774
--- /dev/null
+++ b/messages/ja.json
@@ -0,0 +1,92 @@
+{
+ "Navbar": {
+ "home": "ホーム",
+ "about": "私たちについて",
+ "services": "サービス",
+ "contact": "お問い合わせ"
+ },
+ "Hero": {
+ "title": "デジタルが未来を拓く",
+ "subtitle": "革新が変革を導く",
+ "description": "私たちは、革新的な技術でビジネス価値を創造し、企業に卓越したデジタルソリューションを提供することに尽力しています。",
+ "cta": "詳細を見る"
+ },
+ "About": {
+ "title": "私たちについて",
+ "subtitle": "About Us",
+ "heading": "技術へのこだわり",
+ "subheading": "卓越した品質の追求",
+ "p1": "南京市肥鹅信息技术有限公司は、歴史ある六朝の古都、南京に位置しています。最先端の情報技術の研究開発と応用に注力するハイテク企業です。",
+ "p2": "設立以来、「技術主導、サービス第一」の理念を掲げ、ソフトウェア開発、システムインテグレーション、デジタルトランスフォーメーションコンサルティングの分野で深く活動してきました。経験豊富で創造的な技術チームを擁し、コードで世界を変え、知恵で未来をつなぐことに尽力しています。",
+ "p3": "活気あふれる溧水区のイノベーションの地で、私たちは着実な歩みで、各業界のお客様にカスタマイズされたITソリューションを提供し、デジタル経済の波に乗る企業を支援しています。",
+ "stats": {
+ "cases": "成功事例",
+ "support": "技術サポート"
+ }
+ },
+ "Services": {
+ "title": "コアサービス",
+ "subtitle": "Services",
+ "heading": "包括的な技術ソリューション",
+ "items": {
+ "customDev": {
+ "title": "カスタムソフトウェア開発",
+ "desc": "企業の独自のニーズに合わせて、専用のWebアプリケーション、モバイルアプリ、デスクトップソフトウェアを構築し、業務プロセスを最適化します。"
+ },
+ "digitalTrans": {
+ "title": "企業のデジタルトランスフォーメーション",
+ "desc": "包括的なデジタルコンサルティングと実装計画を提供し、伝統的な企業のインテリジェントなアップグレードを支援します。"
+ },
+ "systemIntegration": {
+ "title": "システムインテグレーション",
+ "desc": "情報の孤立を打破し、異種システム間のデータ相互運用性と機能的相乗効果を実現し、全体的な運用効率を向上させます。"
+ },
+ "bigData": {
+ "title": "ビッグデータ分析",
+ "desc": "データの価値を掘り起こし、視覚的なレポートとインテリジェントな意思決定サポートを提供し、データを企業のコア資産にします。"
+ },
+ "cloudService": {
+ "title": "クラウドサービスと展開",
+ "desc": "安全で信頼性の高いクラウドアーキテクチャの設計、移行、運用保守サービスを提供し、ビジネスの高可用性を保証します。"
+ },
+ "security": {
+ "title": "情報セキュリティ保証",
+ "desc": "多層的なセキュリティ保護システムを構築し、企業のコアデータ資産を脅威から保護します。"
+ }
+ }
+ },
+ "Contact": {
+ "title": "お問い合わせ",
+ "subtitle": "Contact Us",
+ "heading": "デジタルの旅を始めましょう",
+ "form": {
+ "name": "お名前",
+ "phone": "電話番号",
+ "email": "メールアドレス",
+ "description": "ご要望",
+ "submit": "送信",
+ "submitting": "送信中...",
+ "success": "メッセージが送信されました。すぐにご連絡いたします!",
+ "errors": {
+ "nameRequired": "お名前を入力してください",
+ "phoneRequired": "電話番号を入力してください",
+ "phoneInvalid": "有効な電話番号を入力してください",
+ "emailRequired": "メールアドレスを入力してください",
+ "emailInvalid": "有効なメールアドレスを入力してください",
+ "descRequired": "ご要望を入力してください"
+ }
+ },
+ "info": {
+ "address": "登録住所",
+ "addressValue": "江蘇省南京市溧水区永陽街道中大街81号8棟1630室",
+ "phone": "電話番号",
+ "email": "メールアドレス"
+ }
+ },
+ "Footer": {
+ "company": "南京市肥鹅信息技术有限公司",
+ "rights": "© {year} Nanjing Feie Information Technology Co., Ltd. All rights reserved.",
+ "privacy": "プライバシーポリシー",
+ "terms": "利用規約"
+ }
+}
diff --git a/messages/zh.json b/messages/zh.json
new file mode 100644
index 0000000..0169e25
--- /dev/null
+++ b/messages/zh.json
@@ -0,0 +1,92 @@
+{
+ "Navbar": {
+ "home": "首页",
+ "about": "关于我们",
+ "services": "核心业务",
+ "contact": "联系方式"
+ },
+ "Hero": {
+ "title": "数字驱动未来",
+ "subtitle": "创新引领变革",
+ "description": "我们致力于为企业提供卓越的数字化解决方案,以创新技术驱动商业价值。",
+ "cta": "了解更多"
+ },
+ "About": {
+ "title": "关于我们",
+ "subtitle": "About Us",
+ "heading": "专注技术沉淀",
+ "subheading": "成就卓越品质",
+ "p1": "南京市肥鹅信息技术有限公司坐落于历史悠久的六朝古都——南京。我们是一家专注于前沿信息技术研发与应用的高新技术企业。",
+ "p2": "自成立以来,我们始终秉承\"技术驱动、服务至上\"的理念,深耕软件开发、系统集成及数字化转型咨询领域。我们拥有一支经验丰富、富有创造力的技术团队,致力于通过代码改变世界,用智慧连接未来。",
+ "p3": "在溧水区这片充满活力的创新热土上,我们正以稳健的步伐,为各行各业的客户提供量身定制的IT解决方案,助力企业在数字经济浪潮中乘风破浪。",
+ "stats": {
+ "cases": "成功案例",
+ "support": "技术支持"
+ }
+ },
+ "Services": {
+ "title": "核心业务",
+ "subtitle": "Services",
+ "heading": "全方位技术解决方案",
+ "items": {
+ "customDev": {
+ "title": "定制软件开发",
+ "desc": "根据企业独特需求,打造专属的Web应用、移动端APP及桌面软件,优化业务流程。"
+ },
+ "digitalTrans": {
+ "title": "企业数字化转型",
+ "desc": "提供全方位的数字化咨询与落地实施方案,助力传统企业实现智能化升级。"
+ },
+ "systemIntegration": {
+ "title": "系统集成服务",
+ "desc": "打破信息孤岛,实现异构系统间的数据互通与功能协同,提升整体运营效率。"
+ },
+ "bigData": {
+ "title": "大数据分析",
+ "desc": "挖掘数据价值,提供可视化报表与智能决策支持,让数据成为企业的核心资产。"
+ },
+ "cloudService": {
+ "title": "云服务与部署",
+ "desc": "提供安全可靠的云端架构设计、迁移及运维服务,保障业务的高可用性。"
+ },
+ "security": {
+ "title": "信息安全保障",
+ "desc": "构建多层次的安全防护体系,保护企业核心数据资产不受威胁。"
+ }
+ }
+ },
+ "Contact": {
+ "title": "联系我们",
+ "subtitle": "Contact Us",
+ "heading": "开启您的数字化之旅",
+ "form": {
+ "name": "姓名",
+ "phone": "电话",
+ "email": "邮箱",
+ "description": "需求描述",
+ "submit": "提交留言",
+ "submitting": "提交中...",
+ "success": "留言提交成功,我们会尽快与您联系!",
+ "errors": {
+ "nameRequired": "请输入姓名",
+ "phoneRequired": "请输入电话",
+ "phoneInvalid": "请输入正确的手机号",
+ "emailRequired": "请输入邮箱",
+ "emailInvalid": "请输入正确的邮箱地址",
+ "descRequired": "请描述您的需求"
+ }
+ },
+ "info": {
+ "address": "注册地址",
+ "addressValue": "江苏省南京市溧水区永阳街道中大街81号8幢1630室",
+ "phone": "联系电话",
+ "email": "电子邮箱"
+ }
+ },
+ "Footer": {
+ "company": "南京市肥鹅信息技术有限公司",
+ "rights": "© {year} Nanjing Feie Information Technology Co., Ltd. All rights reserved.",
+ "privacy": "隐私政策",
+ "terms": "服务条款"
+ }
+}
diff --git a/middleware.ts b/middleware.ts
new file mode 100644
index 0000000..e8639ac
--- /dev/null
+++ b/middleware.ts
@@ -0,0 +1,11 @@
+import createMiddleware from 'next-intl/middleware';
+import {routing} from './i18n/routing';
+
+export default createMiddleware(routing);
+
+export const config = {
+ // Match all pathnames except for
+ // - … if they start with `/api`, `/_next` or `/_vercel`
+ // - … the ones containing a dot (e.g. `favicon.ico`)
+ matcher: ['/((?!api|_next|_vercel|.*\\..*).*)']
+};
diff --git a/next.config.ts b/next.config.ts
index e9ffa30..a042199 100644
--- a/next.config.ts
+++ b/next.config.ts
@@ -1,7 +1,10 @@
import type { NextConfig } from "next";
+import createNextIntlPlugin from 'next-intl/plugin';
+
+const withNextIntl = createNextIntlPlugin('./i18n/request.ts');
const nextConfig: NextConfig = {
/* config options here */
};
-export default nextConfig;
+export default withNextIntl(nextConfig);
diff --git a/package.json b/package.json
index 211db50..83cb041 100644
--- a/package.json
+++ b/package.json
@@ -14,6 +14,7 @@
"@react-three/fiber": "^9.4.2",
"lucide-react": "^0.559.0",
"next": "16.0.8",
+ "next-intl": "^4.6.1",
"prisma": "^6.0.0",
"react": "19.2.1",
"react-dom": "19.2.1",