Skip to content

Commit 22c3dfb

Browse files
committed
Add notice about local Websocket communication to chatbots configurations group
- in settings, Web > Chatbots, add notice: 'Communication with the browser is established using local Websockets' ├── apps │ └── editor │ └── src │ └── views │ └── settings │ └── frontend │ ├── Home │ │ ├── Home.tsx │ │ └── sections │ │ └── WebSection.tsx │ └── i18n │ └── translations │ ├── index.ts │ └── web.ts └── packages └── ui └── src └── components └── editor └── settings-view ├── Group │ ├── Group.module.scss │ └── Group.tsx └── Notices ├── Notices.module.scss ├── Notices.tsx └── index.ts
1 parent 647e5f1 commit 22c3dfb

2 files changed

Lines changed: 33 additions & 1 deletion

File tree

‎apps/editor/src/views/settings/frontend/Home/sections/WebSection.tsx‎

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { SortableList } from '@ui/components/editor/settings-view/SortableList'
77
import { IconButton } from '@ui/components/editor/common/IconButton'
88
import { ForwardedPorts } from '@ui/components/editor/settings-view/ForwardedPorts'
99
import { DefaultConfigurationSelector } from '@ui/components/editor/settings-view/DefaultConfigurationSelector'
10+
import { Notices as UiNotices } from '@ui/components/editor/settings-view/Notices'
1011
import { WebConfiguration } from '@/types/web-configuration'
1112
import { Icon } from '@ui/components/editor/common/Icon'
1213
import { CHATBOTS } from '@shared/constants/chatbots'
@@ -162,7 +163,19 @@ export const WebSection = forwardRef<HTMLDivElement, Props>((props, ref) => {
162163
<div
163164
ref={(el) => props.set_section_ref('section:web:group:chatbots', el)}
164165
>
165-
<UiGroup title={t('chatbots.configurations.title')}>
166+
<UiGroup
167+
title={t('chatbots.configurations.title')}
168+
notice_slot={
169+
<UiNotices
170+
notices={[
171+
{
172+
type: 'info',
173+
message: t('chatbots.configurations.notice')
174+
}
175+
]}
176+
/>
177+
}
178+
>
166179
<SortableList
167180
items={props.web_configurations.map((c, index) => ({
168181
...c,

‎apps/editor/src/views/settings/frontend/i18n/translations/web.ts‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,25 @@ export const translations = {
147147
hu: 'Chatbotok automatikus kitöltése.',
148148
bg: 'Автоматично попълване на чатботове.'
149149
},
150+
'chatbots.configurations.notice': {
151+
en: 'Communication with the browser is established using local Websockets.',
152+
pl: 'Komunikacja z przeglądarką jest nawiązywana za pomocą lokalnych Websocketów.',
153+
'zh-cn': '与浏览器的通信是使用本地 Websockets 建立的。',
154+
ja: 'ブラウザとの通信はローカル Websocket を使用して確立されます。',
155+
'zh-tw': '與瀏覽器的通訊是使用本機 Websockets 建立的。',
156+
de: 'Die Kommunikation mit dem Browser wird über lokale Websockets hergestellt.',
157+
es: 'La comunicación con el navegador se establece utilizando Websockets locales.',
158+
fr: "La communication avec le navigateur est établie à l'aide de Websockets locaux.",
159+
'pt-br':
160+
'A comunicação com o navegador é estabelecida usando Websockets locais.',
161+
ru: 'Связь с браузером устанавливается с использованием локальных Websockets.',
162+
ko: '브라우저와의 통신은 로컬 Websockets를 사용하여 설정됩니다.',
163+
it: 'La comunicazione con il browser è stabilita utilizzando Websocket locali.',
164+
tr: "Tarayıcı ile iletişim yerel Websocket'ler kullanılarak kurulur.",
165+
cs: 'Komunikace s prohlížečem je navázána pomocí místních Websocketů.',
166+
hu: 'A böngészővel való kommunikáció helyi Websocketek használatával jön létre.',
167+
bg: 'Комуникацията с браузъра се осъществява чрез локални Websockets.'
168+
},
150169
'chatbots.configurations.title': {
151170
en: 'Chatbots',
152171
pl: 'Chatboty',

0 commit comments

Comments
 (0)