From d4e24855a34b08b1d5fb0e736bc00d0cf87041e4 Mon Sep 17 00:00:00 2001 From: canisminor1990 Date: Thu, 21 Sep 2023 10:57:07 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20chore:=20Update=20i18n=20config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + .i18nrc.js | 2 +- README.md | 9 --------- README.zh-CN.md | 9 --------- docs/Plugin-Development.md | 7 ------- docs/Plugin-Development.zh-CN.md | 7 ------- locales/zh_CN/market.json | 4 ++-- src/locales/options.ts | 4 ++++ 8 files changed, 8 insertions(+), 35 deletions(-) diff --git a/.gitignore b/.gitignore index 5ab61474bf..8b5c1058d4 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 e8521f8460..2b18e31066 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 e9dc15acaa..9e057b2039 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 636df490b9..83d7ac7590 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 3d411ea205..7e78d045db 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 3916705560..2bd8ef3f36 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 8d692ef845..91c0c78b2a 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 af326529b4..67e04dc807 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',