fix i18next.d.ts (#2064)

* fix i18next.d.ts

* feat: packages web i18n

* delete file
This commit is contained in:
jingyang
2024-07-17 15:27:51 +08:00
committed by GitHub
parent 36f8755d09
commit 982325d066
75 changed files with 216 additions and 204 deletions

View File

@@ -510,7 +510,7 @@ const ChatBox = (
autoTTSResponse && splitText2Audio(responseText, true);
} catch (err: any) {
toast({
title: t(getErrText(err, 'core.chat.error.Chat error')),
title: t(getErrText(err, 'core.chat.error.Chat error') as any),
status: 'error',
duration: 5000,
isClosable: true
@@ -814,7 +814,7 @@ const ChatBox = (
return {
status: chatContent.status || 'loading',
name: t(chatContent.moduleName || '') || t('common:common.Loading')
name: t(chatContent.moduleName || ('' as any)) || t('common:common.Loading')
};
}, [chatHistories, isChatting, t]);

View File

@@ -50,7 +50,7 @@ const RenderPluginInput = ({
value={value}
onChange={onChange}
isDisabled={isDisabled}
placeholder={t(placeholder)}
placeholder={t(placeholder as any)}
bg={'myGray.50'}
isInvalid={isInvalid}
/>
@@ -88,7 +88,7 @@ const RenderPluginInput = ({
return (
<JsonEditor
bg={'myGray.50'}
placeholder={t(placeholder || '')}
placeholder={t(placeholder || ('' as any))}
resize
value={value}
onChange={onChange}

View File

@@ -136,7 +136,7 @@ export const ResponseBox = React.memo(function ResponseBox({
alt={''}
w={['14px', '16px']}
/>
{t(item.moduleName)}
{t(item.moduleName as any)}
</Flex>
),
value: `${i}`
@@ -177,7 +177,7 @@ export const ResponseBox = React.memo(function ResponseBox({
<>
<Row
label={t('common:core.chat.response.module name')}
value={t(activeModule.moduleName)}
value={t(activeModule.moduleName as any)}
/>
{activeModule?.totalPoints !== undefined && (
<Row