diff --git a/.gitignore b/.gitignore index 5ab61474bfbb..8b5c1058d48e 100644 --- a/.gitignore +++ b/.gitignore @@ -55,3 +55,4 @@ next-env.d.ts .next .env public/*.js +bun.lockb \ No newline at end of file diff --git a/.i18nrc.js b/.i18nrc.js index e8521f846037..2b18e3106655 100644 --- a/.i18nrc.js +++ b/.i18nrc.js @@ -6,7 +6,7 @@ module.exports = defineConfig({ entry: 'locales/zh_CN', entryLocale: 'zh_CN', output: 'locales', - outputLocales: ['en_US', 'ru_RU'], + outputLocales: ['zh_TW', 'en_US', 'ru_RU'], splitToken: 2500, temperature: 0, modelName: 'gpt-3.5-turbo', diff --git a/README.md b/README.md index e9dc15acaa71..9e057b20399e 100644 --- a/README.md +++ b/README.md @@ -38,23 +38,14 @@ LobeChat is a open-source, extensible ([Function Calling][fc-link]), high-perfor #### TOC - [👋🏻 Getting Started & Join Our Community](#-getting-started--join-our-community) - - [✨ Features](#-features) - - [📸 Snapshot](#-snapshot) - - [🛳 Self Hosting](#-self-hosting) - - [Keep Updated](#keep-updated) - - [📦 Ecosystem](#-ecosystem) - - [🧩 Plugins](#-plugins) - - [⌨️ Local Development](#️-local-development) - - [🤝 Contributing](#-contributing) - - [🔗 More Products](#-more-products) #### diff --git a/README.zh-CN.md b/README.zh-CN.md index 636df490b9bf..83d7ac7590b8 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -38,23 +38,14 @@ LobeChat 是一个开源的、可扩展的([Function Calling][fc-link])高 #### TOC - [👋🏻 开始使用 & 交流](#-开始使用--交流) - - [✨ 功能特性](#-功能特性) - - [📸 快照预览](#-快照预览) - - [🛳 开箱即用](#-开箱即用) - - [保持更新](#保持更新) - - [📦 生态系统](#-生态系统) - - [🧩 插件体系](#-插件体系) - - [⌨️ 本地开发](#️-本地开发) - - [🤝 参与贡献](#-参与贡献) - - [🔗 更多工具](#-更多工具) #### diff --git a/docs/Plugin-Development.md b/docs/Plugin-Development.md index 3d411ea20588..7e78d045db48 100644 --- a/docs/Plugin-Development.md +++ b/docs/Plugin-Development.md @@ -3,24 +3,17 @@ #### TOC - [Plugin Composition](#plugin-composition) - - [Custom Plugin Workflow](#custom-plugin-workflow) - - [**`1`** Create and Start a Plugin Project](#1-create-and-start-a-plugin-project) - [**`2`** Add the Local Plugin in LobeChat Role Settings](#2-add-the-local-plugin-in-lobechat-role-settings) - [**`3`** Test the Plugin Functionality in a Session](#3-test-the-plugin-functionality-in-a-session) - - [Local Plugin Development](#local-plugin-development) - - [Manifest](#manifest) - [Project Structure](#project-structure) - [Server-side](#server-side) - [Plugin UI Interface](#plugin-ui-interface) - - [Plugin Deployment and Publication](#plugin-deployment-and-publication) - - [Plugin Shield](#plugin-shield) - - [Link](#link) ## Plugin Composition diff --git a/docs/Plugin-Development.zh-CN.md b/docs/Plugin-Development.zh-CN.md index 391670556047..2bd8ef3f36ae 100644 --- a/docs/Plugin-Development.zh-CN.md +++ b/docs/Plugin-Development.zh-CN.md @@ -3,24 +3,17 @@ #### TOC - [插件构成](#插件构成) - - [自定义插件流程](#自定义插件流程) - - [**`1`** 创建并启动插件项目](#1-创建并启动插件项目) - [**`2`** 在 LobeChat 角色设置中添加本地插件](#2-在-lobechat-角色设置中添加本地插件) - [**`3`** 会话测试插件功能](#3-会话测试插件功能) - - [本地插件开发](#本地插件开发) - - [manifest](#manifest) - [项目结构](#项目结构) - [服务端](#服务端) - [插件 UI 界面](#插件-ui-界面) - - [插件部署与发布](#插件部署与发布) - - [插件 Shield](#插件-shield) - - [链接](#链接) ## 插件构成 diff --git a/locales/zh_CN/market.json b/locales/zh_CN/market.json index 8d692ef845b0..91c0c78b2ad7 100644 --- a/locales/zh_CN/market.json +++ b/locales/zh_CN/market.json @@ -10,7 +10,7 @@ }, "submitAgent": "提交助手", "title": { - "recentSubmits": "最近新增", - "allAgents": "全部助手" + "allAgents": "全部助手", + "recentSubmits": "最近新增" } } diff --git a/src/locales/options.ts b/src/locales/options.ts index af326529b438..67e04dc80705 100644 --- a/src/locales/options.ts +++ b/src/locales/options.ts @@ -12,6 +12,10 @@ export const localeOptions: LocaleOptions = [ label: '简体中文', value: 'zh-CN', }, + { + label: '繁體中文', + value: 'zh-TW', + }, { label: 'English', value: 'en-US',