@lobehub/chat 1.34.1 → 1.34.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,31 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 1.34.2](https://github.com/lobehub/lobe-chat/compare/v1.34.1...v1.34.2)
6
+
7
+ <sup>Released on **2024-11-27**</sup>
8
+
9
+ #### 💄 Styles
10
+
11
+ - **misc**: Improve thread i18n locale.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### Styles
19
+
20
+ - **misc**: Improve thread i18n locale, closes [#4807](https://github.com/lobehub/lobe-chat/issues/4807) ([3da1704](https://github.com/lobehub/lobe-chat/commit/3da1704))
21
+
22
+ </details>
23
+
24
+ <div align="right">
25
+
26
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
27
+
28
+ </div>
29
+
5
30
  ### [Version 1.34.1](https://github.com/lobehub/lobe-chat/compare/v1.34.0...v1.34.1)
6
31
 
7
32
  <sup>Released on **2024-11-26**</sup>
package/README.md CHANGED
@@ -285,14 +285,14 @@ Our marketplace is not just a showcase platform but also a collaborative space.
285
285
 
286
286
  <!-- AGENT LIST -->
287
287
 
288
- | Recent Submits | Description |
289
- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
290
- | [Master E's Tech Executive Assistant (EA)](https://chat-preview.lobehub.com/market?agent=alex)<br/><sup>By **[ApexAppdevelopment](https://github.com/ApexAppdevelopment)** on **2024-11-20**</sup> | Highly intelligent and loyal Executive Assistant (EA) specializing in software engineering support and strategic solutions for Master E.<br/>`executive-assistant` `software-engineering` `project-management` `technical-support` `optimization` |
291
- | [Human Author Simulator](https://chat-preview.lobehub.com/market?agent=human-writer-simulator)<br/><sup>By **[yufei96](https://github.com/yufei96)** on **2024-11-20**</sup> | Eliminate the characteristics of AI-generated content<br/>`ai-interaction` `writing` `optimization` `consultation` |
292
- | [Wisdom Guide](https://chat-preview.lobehub.com/market?agent=life-wisdom-guides)<br/><sup>By **[changjiong](https://github.com/changjiong)** on **2024-11-20**</sup> | Skilled in Guidance<br/>`life-coaching` `philosophical-reflection` `consultation` `heuristic-dialogue` |
293
- | [Prompt Keywords](https://chat-preview.lobehub.com/market?agent=prompt-ts)<br/><sup>By **[qw1295353129](https://github.com/qw1295353129)** on **2024-11-20**</sup> | Prompt Keywords<br/>`prompt-keywords` |
294
-
295
- > 📊 Total agents: [<kbd>**439**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
288
+ | Recent Submits | Description |
289
+ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
290
+ | [All Translation Assistant (with Phonetic Symbols)](https://chat-preview.lobehub.com/market?agent=translation-assistant)<br/><sup>By **[HttpStatusOK](https://github.com/HttpStatusOK)** on **2024-11-26**</sup> | This is a tool that integrates translation and phonetic symbols, aimed at helping users learn words better during translation.<br/>`translation` `language-learning` |
291
+ | [Master E's Tech Executive Assistant (EA)](https://chat-preview.lobehub.com/market?agent=alex)<br/><sup>By **[ApexAppdevelopment](https://github.com/ApexAppdevelopment)** on **2024-11-20**</sup> | Highly intelligent and loyal Executive Assistant (EA) specializing in software engineering support and strategic solutions for Master E.<br/>`executive-assistant` `software-engineering` `project-management` `technical-support` `optimization` |
292
+ | [Human Author Simulator](https://chat-preview.lobehub.com/market?agent=human-writer-simulator)<br/><sup>By **[yufei96](https://github.com/yufei96)** on **2024-11-20**</sup> | Eliminate the characteristics of AI-generated content<br/>`ai-interaction` `writing` `optimization` `consultation` |
293
+ | [Wisdom Guide](https://chat-preview.lobehub.com/market?agent=life-wisdom-guides)<br/><sup>By **[changjiong](https://github.com/changjiong)** on **2024-11-20**</sup> | Skilled in Guidance<br/>`life-coaching` `philosophical-reflection` `consultation` `heuristic-dialogue` |
294
+
295
+ > 📊 Total agents: [<kbd>**440**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
296
296
 
297
297
  <!-- AGENT LIST -->
298
298
 
package/README.zh-CN.md CHANGED
@@ -276,12 +276,12 @@ LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地
276
276
 
277
277
  | 最近新增 | 助手说明 |
278
278
  | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
279
+ | [All 译英助手(带音标)](https://chat-preview.lobehub.com/market?agent=translation-assistant)<br/><sup>By **[HttpStatusOK](https://github.com/HttpStatusOK)** on **2024-11-26**</sup> | 这是一款集翻译和音标于一体的工具,旨在帮助翻译时更好地学习单词。<br/>`翻译` `语言学习` |
279
280
  | [Master E 的技术执行助理(EA)](https://chat-preview.lobehub.com/market?agent=alex)<br/><sup>By **[ApexAppdevelopment](https://github.com/ApexAppdevelopment)** on **2024-11-20**</sup> | 高度智能且忠诚的执行助理(EA),专注于为 Master E 提供软件工程支持和战略解决方案。<br/>`执行助理` `软件工程` `项目管理` `技术支持` `优化` |
280
281
  | [人类作者模拟器](https://chat-preview.lobehub.com/market?agent=human-writer-simulator)<br/><sup>By **[yufei96](https://github.com/yufei96)** on **2024-11-20**</sup> | 消除 AI 生成内容的特征<br/>`ai交互` `写作` `优化` `咨询` |
281
282
  | [智慧引导者](https://chat-preview.lobehub.com/market?agent=life-wisdom-guides)<br/><sup>By **[changjiong](https://github.com/changjiong)** on **2024-11-20**</sup> | 擅长引导<br/>`人生指导` `哲学思考` `咨询` `启发式对话` |
282
- | [Prompt 提示词](https://chat-preview.lobehub.com/market?agent=prompt-ts)<br/><sup>By **[qw1295353129](https://github.com/qw1295353129)** on **2024-11-20**</sup> | Prompt 提示词<br/>`prompt提示词` |
283
283
 
284
- > 📊 Total agents: [<kbd>**439**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
284
+ > 📊 Total agents: [<kbd>**440**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
285
285
 
286
286
  <!-- AGENT LIST -->
287
287
 
package/changelog/v1.json CHANGED
@@ -1,4 +1,13 @@
1
1
  [
2
+ {
3
+ "children": {
4
+ "improvements": [
5
+ "Improve thread i18n locale."
6
+ ]
7
+ },
8
+ "date": "2024-11-27",
9
+ "version": "1.34.2"
10
+ },
2
11
  {
3
12
  "children": {
4
13
  "fixes": [
@@ -1,5 +1,10 @@
1
1
  {
2
2
  "actions": {
3
3
  "confirmRemoveThread": "سيتم حذف هذا الموضوع الفرعي، ولن يمكن استعادته بعد الحذف، يرجى توخي الحذر."
4
- }
4
+ },
5
+ "newPortalThread": {
6
+ "includeContext": "تضمين سياق الموضوع",
7
+ "title": "فتح موضوع فرعي جديد"
8
+ },
9
+ "notSupportMultiModals": "الموضوعات الفرعية لا تدعم حاليًا تحميل الملفات/الصور، إذا كان لديك أي طلب، لا تتردد في ترك رسالة: <1>💬 قسم النقاش</1>"
5
10
  }
@@ -1,5 +1,10 @@
1
1
  {
2
2
  "actions": {
3
3
  "confirmRemoveThread": "Ще изтриете тази подтема. След изтриването ѝ няма да може да бъде възстановена, моля, бъдете внимателни."
4
- }
4
+ },
5
+ "newPortalThread": {
6
+ "includeContext": "Включи контекста на темата",
7
+ "title": "Създаване на нова подтема"
8
+ },
9
+ "notSupportMultiModals": "Подтемите в момента не поддържат качване на файлове/снимки. Ако имате нужда, моля, оставете съобщение: <1>💬 Дискусионен форум</1>"
5
10
  }
@@ -1,5 +1,10 @@
1
1
  {
2
2
  "actions": {
3
3
  "confirmRemoveThread": "Sie sind dabei, dieses Unterthema zu löschen. Nach dem Löschen kann es nicht wiederhergestellt werden. Bitte seien Sie vorsichtig."
4
- }
4
+ },
5
+ "newPortalThread": {
6
+ "includeContext": "Themenkontext einbeziehen",
7
+ "title": "Neues Unterthema eröffnen"
8
+ },
9
+ "notSupportMultiModals": "Unterthemen unterstützen derzeit keinen Datei-/Bilderupload. Bei Bedarf freuen wir uns über Nachrichten: <1>💬 Diskussionsbereich</1>"
5
10
  }
@@ -1,5 +1,10 @@
1
1
  {
2
2
  "actions": {
3
3
  "confirmRemoveThread": "You are about to delete this subtopic. Once deleted, it cannot be recovered. Please proceed with caution."
4
- }
4
+ },
5
+ "newPortalThread": {
6
+ "includeContext": "Include topic context",
7
+ "title": "Start a new subtopic"
8
+ },
9
+ "notSupportMultiModals": "Subtopics do not currently support file/image uploads. If you have any requests, feel free to leave a message: <1>💬 Discussion Area</1>"
5
10
  }
@@ -1,5 +1,10 @@
1
1
  {
2
2
  "actions": {
3
3
  "confirmRemoveThread": "Está a punto de eliminar este subtema. Una vez eliminado, no se podrá recuperar. Por favor, actúe con precaución."
4
- }
4
+ },
5
+ "newPortalThread": {
6
+ "includeContext": "Incluir contexto del tema",
7
+ "title": "Iniciar un nuevo subtema"
8
+ },
9
+ "notSupportMultiModals": "Los subtemas no admiten la carga de archivos/imágenes por el momento. Si tienes alguna necesidad, no dudes en dejar un comentario: <1>💬 Foro de discusión</1>"
5
10
  }
@@ -1,5 +1,10 @@
1
1
  {
2
2
  "actions": {
3
3
  "confirmRemoveThread": "شما در حال حذف این زیرموضوع هستید. پس از حذف، امکان بازیابی آن وجود نخواهد داشت. لطفاً با احتیاط عمل کنید."
4
- }
4
+ },
5
+ "newPortalThread": {
6
+ "includeContext": "شامل زمینه موضوع",
7
+ "title": "باز کردن زیرموضوع جدید"
8
+ },
9
+ "notSupportMultiModals": "زیرموضوع‌ها فعلاً از بارگذاری فایل/عکس پشتیبانی نمی‌کنند، در صورت نیاز، خوشحال می‌شویم که پیام بگذارید: <1>💬 بحث‌خانه</1>"
5
10
  }
@@ -1,5 +1,10 @@
1
1
  {
2
2
  "actions": {
3
3
  "confirmRemoveThread": "Vous allez supprimer ce sous-sujet. Une fois supprimé, il ne pourra pas être récupéré. Veuillez agir avec prudence."
4
- }
4
+ },
5
+ "newPortalThread": {
6
+ "includeContext": "Inclure le contexte du sujet",
7
+ "title": "Ouvrir un nouveau sous-sujet"
8
+ },
9
+ "notSupportMultiModals": "Les sous-sujets ne prennent pas encore en charge le téléchargement de fichiers/images. Si besoin, n'hésitez pas à laisser un message : <1>💬 Forum de discussion</1>"
5
10
  }
@@ -1,5 +1,10 @@
1
1
  {
2
2
  "actions": {
3
3
  "confirmRemoveThread": "Stai per eliminare questo sottoargomento. Una volta eliminato, non potrà essere ripristinato. Ti preghiamo di procedere con cautela."
4
- }
4
+ },
5
+ "newPortalThread": {
6
+ "includeContext": "Includi il contesto della discussione",
7
+ "title": "Avvia un nuovo sottoargomento"
8
+ },
9
+ "notSupportMultiModals": "Attualmente i sottoargomenti non supportano il caricamento di file/immagini. Se hai bisogno, sentiti libero di lasciare un messaggio: <1>💬 Discussione</1>"
5
10
  }
@@ -1,5 +1,10 @@
1
1
  {
2
2
  "actions": {
3
3
  "confirmRemoveThread": "このスレッドを削除しようとしています。削除後は復元できませんので、慎重に操作してください。"
4
- }
4
+ },
5
+ "newPortalThread": {
6
+ "includeContext": "トピックのコンテキストを含める",
7
+ "title": "新しいサブトピックを開始する"
8
+ },
9
+ "notSupportMultiModals": "サブトピックではファイルや画像のアップロードはサポートされていません。必要があれば、コメントを残してください:<1>💬 ディスカッションエリア</1>"
5
10
  }
@@ -1,5 +1,10 @@
1
1
  {
2
2
  "actions": {
3
3
  "confirmRemoveThread": "이 하위 주제를 삭제하려고 합니다. 삭제 후에는 복구할 수 없으니 신중하게 진행해 주시기 바랍니다."
4
- }
4
+ },
5
+ "newPortalThread": {
6
+ "includeContext": "주제 맥락 포함",
7
+ "title": "새로운 하위 주제 시작하기"
8
+ },
9
+ "notSupportMultiModals": "하위 주제는 현재 파일/이미지 업로드를 지원하지 않습니다. 필요하신 경우 댓글로 남겨주세요: <1>💬 토론 구역</1>"
5
10
  }
@@ -1,5 +1,10 @@
1
1
  {
2
2
  "actions": {
3
3
  "confirmRemoveThread": "U staat op het punt dit subonderwerp te verwijderen. Na verwijdering kan het niet worden hersteld, dus wees voorzichtig."
4
- }
4
+ },
5
+ "newPortalThread": {
6
+ "includeContext": "Inclusief onderwerpcontext",
7
+ "title": "Een nieuw subonderwerp starten"
8
+ },
9
+ "notSupportMultiModals": "Subonderwerpen ondersteunen momenteel geen bestand/afbeelding uploads. Als u behoefte heeft, laat dan gerust een bericht achter: <1>💬 Discussieforum</1>"
5
10
  }
@@ -1,5 +1,10 @@
1
1
  {
2
2
  "actions": {
3
3
  "confirmRemoveThread": "Zaraz usuniesz ten wątek, po usunięciu nie będzie można go przywrócić, proszę postępować ostrożnie."
4
- }
4
+ },
5
+ "newPortalThread": {
6
+ "includeContext": "Zawiera kontekst tematu",
7
+ "title": "Rozpocznij nowy podtemat"
8
+ },
9
+ "notSupportMultiModals": "Podtematy obecnie nie obsługują przesyłania plików/zdjęć. W przypadku potrzeby, zapraszamy do pozostawienia wiadomości: <1>💬 Dyskusja</1>"
5
10
  }
@@ -1,5 +1,10 @@
1
1
  {
2
2
  "actions": {
3
3
  "confirmRemoveThread": "Você está prestes a remover este subtópico. Após a exclusão, não será possível recuperá-lo. Por favor, proceda com cautela."
4
- }
4
+ },
5
+ "newPortalThread": {
6
+ "includeContext": "Incluir contexto do tópico",
7
+ "title": "Iniciar um novo subtópico"
8
+ },
9
+ "notSupportMultiModals": "Subtópicos atualmente não suportam upload de arquivos/imagens. Se houver necessidade, sinta-se à vontade para deixar uma mensagem: <1>💬 Área de Discussão</1>"
5
10
  }
@@ -1,5 +1,10 @@
1
1
  {
2
2
  "actions": {
3
3
  "confirmRemoveThread": "Вы собираетесь удалить эту под-тему. После удаления восстановить её будет невозможно, пожалуйста, действуйте осторожно."
4
- }
4
+ },
5
+ "newPortalThread": {
6
+ "includeContext": "Включить контекст темы",
7
+ "title": "Открыть новую подтему"
8
+ },
9
+ "notSupportMultiModals": "Подтемы в настоящее время не поддерживают загрузку файлов/изображений. Если у вас есть потребность, пожалуйста, оставьте сообщение: <1>💬 Обсуждение</1>"
5
10
  }
@@ -1,5 +1,10 @@
1
1
  {
2
2
  "actions": {
3
3
  "confirmRemoveThread": "Bu alt konuyu silmek üzeresiniz. Silindikten sonra geri alınamaz, lütfen dikkatli olun."
4
- }
4
+ },
5
+ "newPortalThread": {
6
+ "includeContext": "Konu bağlamını dahil et",
7
+ "title": "Yeni alt konu aç"
8
+ },
9
+ "notSupportMultiModals": "Alt konular şu anda dosya/görüntü yüklemeyi desteklemiyor, ihtiyaç duyarsanız lütfen mesaj bırakın: <1>💬 Tartışma Alanı</1>"
5
10
  }
@@ -1,5 +1,10 @@
1
1
  {
2
2
  "actions": {
3
3
  "confirmRemoveThread": "Bạn sắp xóa chủ đề con này, sau khi xóa sẽ không thể khôi phục, xin hãy cẩn thận khi thực hiện."
4
- }
4
+ },
5
+ "newPortalThread": {
6
+ "includeContext": "Bao gồm ngữ cảnh chủ đề",
7
+ "title": "Mở chủ đề con mới"
8
+ },
9
+ "notSupportMultiModals": "Chủ đề con hiện không hỗ trợ tải lên tệp/hình ảnh, nếu có nhu cầu, xin vui lòng để lại tin nhắn: <1>💬 Diễn đàn thảo luận</1>"
5
10
  }
@@ -1,5 +1,10 @@
1
1
  {
2
2
  "actions": {
3
3
  "confirmRemoveThread": "即将删除该子话题,删除后将不可恢复,请谨慎操作。"
4
- }
4
+ },
5
+ "newPortalThread": {
6
+ "includeContext": "包含话题上下文",
7
+ "title": "开启新的子话题"
8
+ },
9
+ "notSupportMultiModals": "子话题暂不支持文件/图片上传,如有需求,欢迎留言:<1>💬 讨论区</1>"
5
10
  }
@@ -1,5 +1,10 @@
1
1
  {
2
2
  "actions": {
3
3
  "confirmRemoveThread": "即將刪除該子話題,刪除後將無法恢復,請謹慎操作。"
4
- }
4
+ },
5
+ "newPortalThread": {
6
+ "includeContext": "包含主題上下文",
7
+ "title": "開啟新的子主題"
8
+ },
9
+ "notSupportMultiModals": "子主題暫不支持文件/圖片上傳,如有需求,歡迎留言:<1>💬 討論區</1>"
5
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "1.34.1",
3
+ "version": "1.34.2",
4
4
  "description": "Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.",
5
5
  "keywords": [
6
6
  "framework",
@@ -3,6 +3,7 @@
3
3
  import { Alert } from '@lobehub/ui';
4
4
  import Link from 'next/link';
5
5
  import { memo } from 'react';
6
+ import { Trans } from 'react-i18next';
6
7
 
7
8
  import { ActionKeys } from '@/features/ChatInput/ActionBar/config';
8
9
  import DesktopChatInput, { FooterRender } from '@/features/ChatInput/Desktop';
@@ -33,7 +34,7 @@ const Desktop = memo(() => {
33
34
  banner
34
35
  closable
35
36
  message={
36
- <div>
37
+ <Trans i18nKey={'notSupportMultiModals'} ns={'thread'}>
37
38
  子话题暂不支持文件/图片上传,如有需求,欢迎留言:
38
39
  <Link
39
40
  href={'https://github.com/lobehub/lobe-chat/discussions/4717'}
@@ -41,7 +42,7 @@ const Desktop = memo(() => {
41
42
  >
42
43
  💬 讨论
43
44
  </Link>
44
- </div>
45
+ </Trans>
45
46
  }
46
47
  onClose={() => {
47
48
  updateSystemStatus({ hideThreadLimitAlert: true });
@@ -1,6 +1,7 @@
1
1
  import { Icon } from '@lobehub/ui';
2
2
  import { Checkbox, Typography } from 'antd';
3
3
  import { GitBranch } from 'lucide-react';
4
+ import { useTranslation } from 'react-i18next';
4
5
  import { Flexbox } from 'react-layout-kit';
5
6
 
6
7
  import { useChatStore } from '@/store/chat';
@@ -9,6 +10,7 @@ import { oneLineEllipsis } from '@/styles';
9
10
  import { ThreadType } from '@/types/topic';
10
11
 
11
12
  const NewThreadHeader = () => {
13
+ const { t } = useTranslation('thread');
12
14
  const [newThreadMode] = useChatStore((s) => [portalThreadSelectors.newThreadMode(s)]);
13
15
 
14
16
  return (
@@ -16,7 +18,7 @@ const NewThreadHeader = () => {
16
18
  <Flexbox align={'center'} gap={8} horizontal style={{ marginInlineStart: 8 }}>
17
19
  <Icon icon={GitBranch} size={{ fontSize: 20 }} />
18
20
  <Typography.Text className={oneLineEllipsis} style={{ fontSize: 16, fontWeight: 'bold' }}>
19
- 开启新的子话题
21
+ {t('newPortalThread.title')}
20
22
  </Typography.Text>
21
23
  <Checkbox
22
24
  checked={newThreadMode === ThreadType.Continuation}
@@ -27,7 +29,7 @@ const NewThreadHeader = () => {
27
29
  }}
28
30
  style={{ marginInlineStart: 12 }}
29
31
  >
30
- 包含话题上下文
32
+ {t('newPortalThread.includeContext')}
31
33
  </Checkbox>
32
34
  </Flexbox>
33
35
  </Flexbox>
@@ -2,4 +2,6 @@ export default {
2
2
  actions: {
3
3
  confirmRemoveThread: '即将删除该子话题,删除后将不可恢复,请谨慎操作。',
4
4
  },
5
+ newPortalThread: { includeContext: '包含话题上下文', title: '开启新的子话题' },
6
+ notSupportMultiModals: '子话题暂不支持文件/图片上传,如有需求,欢迎留言:<1>💬 讨论区</1>',
5
7
  };