Skip to content

Commit

Permalink
Feat: Modify the text of the embedded website button infiniflow#3909
Browse files Browse the repository at this point in the history
  • Loading branch information
cike8899 committed Dec 17, 2024
1 parent ce1e855 commit 9a3f180
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion web/src/components/api-service/embed-modal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const EmbedModal = ({

return (
<Modal
title={t('embedModalTitle')}
title={t('embedIntoSite', { keyPrefix: 'common' })}
open={visible}
style={{ top: 300 }}
width={'50vw'}
Expand Down
4 changes: 2 additions & 2 deletions web/src/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export default {
pleaseSelect: 'Please select',
pleaseInput: 'Please input',
submit: 'Submit',
embedIntoSite: 'Embed Into Site',
},
login: {
login: 'Sign in',
Expand Down Expand Up @@ -1026,8 +1027,7 @@ The above is the content you need to summarize.`,
noteDescription: 'Note',
notePlaceholder: 'Please enter a note',
invoke: 'Invoke',
invokeDescription:
`A component capable of calling remote services, using other components' outputs or constants as inputs.`,
invokeDescription: `A component capable of calling remote services, using other components' outputs or constants as inputs.`,
url: 'Url',
method: 'Method',
timeout: 'Timeout',
Expand Down
1 change: 1 addition & 0 deletions web/src/locales/zh-traditional.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export default {
pleaseSelect: '請選擇',
pleaseInput: '請輸入',
submit: '提交',
embedIntoSite: '嵌入網站',
},
login: {
login: '登入',
Expand Down
1 change: 1 addition & 0 deletions web/src/locales/zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export default {
pleaseSelect: '请选择',
pleaseInput: '请输入',
submit: '提交',
embedIntoSite: '嵌入网站',
},
login: {
login: '登录',
Expand Down
8 changes: 5 additions & 3 deletions web/src/pages/chat/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ReactComponent as ChatAppCube } from '@/assets/svg/chat-app-cube.svg';
import RenameModal from '@/components/rename-modal';
import { DeleteOutlined, EditOutlined, KeyOutlined } from '@ant-design/icons';
import { DeleteOutlined, EditOutlined } from '@ant-design/icons';
import {
Avatar,
Button,
Expand Down Expand Up @@ -43,6 +43,7 @@ import {
import { useTranslate } from '@/hooks/common-hooks';
import { useSetSelectedRecord } from '@/hooks/logic-hooks';
import { IDialog } from '@/interfaces/database/chat';
import { PictureInPicture2 } from 'lucide-react';
import styles from './index.less';

const { Text } = Typography;
Expand Down Expand Up @@ -191,8 +192,9 @@ const Chat = () => {
onClick: handleShowOverviewModal(dialog),
label: (
<Space>
<KeyOutlined />
{t('publish', { keyPrefix: 'flow' })}
{/* <KeyOutlined /> */}
<PictureInPicture2 className="size-4" />
{t('embedIntoSite', { keyPrefix: 'common' })}
</Space>
),
},
Expand Down
2 changes: 1 addition & 1 deletion web/src/pages/flow/header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const FlowHeader = ({ showChatDrawer, chatDrawerVisible }: IProps) => {
onClick={handleShowEmbedModal}
disabled={!isBeginNodeDataQueryEmpty}
>
<b>{t('publish')}</b>
<b>{t('embedIntoSite', { keyPrefix: 'common' })}</b>
</Button>
</Space>
</Flex>
Expand Down

0 comments on commit 9a3f180

Please sign in to comment.