Archer 2fd4b6030b feat(i18n): Fix language loss in navigation and add language selector (#6467)
* feat(docs): enable i18n language selector

* docs(i18n): translate introduction page to English

* fix(i18n): fix language switching issue by always showing locale prefix

* fix(docs): use relative paths for internal links to preserve language

* refactor(i18n): add getLocalizedPath helper to simplify URL generation

* refactor(i18n): make getLocalizedPath respect hideLocale config

* feat(i18n): fallback to default language when translation missing, keep URL unchanged

* feat(i18n): fix language loss in navigation and add language selector

- Set hideLocale to 'never' to always show language prefix
- Add localized-navigation.ts with useLocalizedRouter hook
- Update all navigation points to preserve language:
  1. Tab navigation (already using getLocalizedPath)
  2. Sidebar navigation (handled by Fumadocs)
  3. Home/404 redirects (using getLocalizedPath)
  4. MDX Redirect component (using useLocalizedRouter)
  5. Old page redirects (updated not-found.tsx)
  6. Document links (custom LocalizedLink component)
- Configure language selector in layout.config.tsx
- Add LOCALIZED_NAVIGATION.md documentation

* fix(i18n): fix type errors and useEffect dependencies

* refactor(i18n): move redirects to middleware for SSR support

- Move old path redirects from client-side (not-found.tsx) to server-side (middleware.ts)
- Use 301 permanent redirects for better SEO
- Preserve language prefix in redirects
- Fix SSR issue caused by client-side redirects

* refactor(i18n): clean up not-found.tsx, remove duplicate redirect maps

- Remove duplicate exactMap and prefixMap (now in middleware)
- Keep dynamic meta.json lookup for unknown pages
- Simplify to only handle fallback cases
- Two-layer approach: middleware (SSR) + not-found (dynamic)

* refactor(i18n): simplify not-found to always redirect to introduction

- Remove dynamic meta.json lookup
- Always redirect to introduction page on 404
- Ensures no 404 pages are shown
- Keep language prefix in redirect

* fix(i18n): fix middleware type error with ts-expect-error

- Add @ts-expect-error for Fumadocs middleware signature mismatch
- Fix syntax error in config matcher (remove literal \n)

---------

Co-authored-by: archer <archer@archerdeMac-mini.local>
2026-02-26 16:29:03 +08:00
2026-02-12 16:37:50 +08:00
2026-02-12 19:58:01 +08:00
2025-08-25 19:19:43 +08:00
2026-02-12 16:37:50 +08:00
2026-02-25 18:28:16 +08:00
2026-02-25 18:28:16 +08:00
2026-01-09 18:25:02 +08:00
2026-02-12 16:37:50 +08:00
2025-10-20 19:08:21 +08:00
2025-11-04 16:58:12 +08:00
2026-02-12 16:37:50 +08:00
2024-01-05 18:02:53 +08:00
2024-07-15 22:50:48 +08:00
2025-08-02 19:38:37 +08:00
2023-03-28 00:48:24 +08:00
2025-06-19 10:35:21 +08:00
2025-08-02 19:38:37 +08:00
2025-10-20 19:08:21 +08:00
2026-02-25 18:28:16 +08:00
2026-02-25 18:28:16 +08:00
2026-02-04 20:49:26 +08:00
2025-12-15 23:36:54 +08:00
2026-02-12 16:37:50 +08:00
2026-02-12 16:37:50 +08:00
2024-09-06 17:22:24 +08:00

fastgpt logo

FastGPT

English | 简体中文 | Bahasa Indonesia | ไทย | Tiếng Việt | 日本語

FastGPT is an AI Agent building platform that provides out-of-the-box capabilities for data processing and model invocation. It also enables workflow orchestration through Flow visualization, allowing you to achieve complex application scenarios!

cloud document development project

https://github.com/labring/FastGPT/assets/15308462/7d3a38df-eb0e-4388-9250-2409bd33f6d4

Quick Start

You can quickly start FastGPT using Docker. Run the following command in your terminal and follow the prompts to pull the configuration.

# Run the command to pull the configuration file
bash <(curl -fsSL https://doc.fastgpt.cn/deploy/install.sh)
# Start the service
docker compose up -d

After fully started, you can access FastGPT at http://localhost:3000. The default account is root and the password is 1234.

If you encounter any issues, you can view the complete Docker deployment tutorial

🛸 Usage

  • Cloud Version
    If you don't need private deployment, you can directly use our cloud service at: fastgpt.io

  • Community Self-Hosted Version
    You can quickly deploy using Docker or use Sealos Cloud to deploy FastGPT with one click.

  • Commercial Version
    If you need more complete features or in-depth service support, you can choose our Commercial Version. In addition to providing complete software, we also offer implementation guidance for specific scenarios. You can submit a commercial consultation.

💡 Core Features

Demo Demo
Demo Demo

1 Application Orchestration

  • Planning Agent mode.
  • Dialogue workflow, plugin workflow, including basic RPA nodes.
  • User interaction
  • Bidirectional MCP
  • Assisted workflow generation

2 Application Debugging

  • Knowledge base single-point search testing
  • Reference feedback during conversation with edit and delete capabilities
  • Complete call chain logs
  • Application evaluation
  • Advanced orchestration DeBug mode
  • Application node logs

3 Knowledge Base

  • Multi-database reuse and mixing
  • Chunk record modification and deletion
  • Support for manual input, direct segmentation, QA split import
  • Support for txt, md, html, pdf, docx, pptx, csv, xlsx (more can be PR'd), support for URL reading & CSV batch import
  • Hybrid retrieval & reranking
  • API knowledge base
  • RAG module hot-swapping

4 OpenAPI Interface

  • Completions interface (aligned with GPT chat mode)
  • Knowledge base CRUD
  • Dialogue CRUD
  • Automated OpenAPI interface

5 Operations Features

  • Login-free sharing window
  • One-click Iframe embedding
  • Unified dialogue record review with data annotation
  • Application operation logs

6 Others

  • Visual model configuration.
  • Voice input and output support (configurable)
  • Fuzzy input hints
  • Template marketplace
# #

🌿 Third-party Ecosystem

#

🏘️ Community

Join our Feishu group:

#

🤝 Contributors

We warmly welcome contributions in various forms. If you're interested in contributing code, check out our GitHub Issues and show us your brilliant ideas!




Active participants of labring - past 28 days New trends of labring
New participants of labring - past 28 days

🌟 Star History

Star History Chart #

License

This repository follows the FastGPT Open Source License.

  1. Commercial use as backend services is allowed, but SaaS services are not permitted.
  2. Any commercial services without commercial authorization must retain the relevant copyright information.
  3. Please see FastGPT Open Source License for full details.
  4. Contact: Dennis@sealos.io, View Commercial Pricing
Description
FastGPT is a knowledge-based platform built on the LLM, offers out-of-the-box data processing and model invocation capabilities, allows for workflow orchestration through Flow visualization!
Readme 614 MiB
Languages
TypeScript 47.7%
JavaScript 42.5%
MDX 8.8%
Python 0.6%