fix: i18n typo (#8077)

This commit is contained in:
Nam Vu
2024-09-07 15:59:38 +07:00
committed by GitHub
parent 0cef25ef8c
commit 031a0b576d
145 changed files with 268 additions and 268 deletions

View File

@@ -125,7 +125,7 @@ const WorkflowChecklist = ({
<div className='px-3 py-2 bg-gray-25 rounded-b-lg'>
<div className='flex text-xs leading-[18px] text-gray-500'>
<AlertTriangle className='mt-[3px] mr-2 w-3 h-3 text-[#F79009]' />
{t('workflow.common.needConnecttip')}
{t('workflow.common.needConnectTip')}
</div>
</div>
)

View File

@@ -138,7 +138,7 @@ export const useChecklistBeforePublish = () => {
}
if (!validNodes.find(n => n.id === node.id)) {
notify({ type: 'error', message: `[${node.data.title}] ${t('workflow.common.needConnecttip')}` })
notify({ type: 'error', message: `[${node.data.title}] ${t('workflow.common.needConnectTip')}` })
return false
}
}

View File

@@ -104,7 +104,7 @@ const FormItem: FC<Props> = ({
type="text"
value={value || ''}
onChange={e => onChange(e.target.value)}
placeholder={t('appDebug.variableConig.inputPlaceholder')!}
placeholder={t('appDebug.variableConfig.inputPlaceholder')!}
autoFocus={autoFocus}
/>
)
@@ -117,7 +117,7 @@ const FormItem: FC<Props> = ({
type="number"
value={value || ''}
onChange={e => onChange(e.target.value)}
placeholder={t('appDebug.variableConig.inputPlaceholder')!}
placeholder={t('appDebug.variableConfig.inputPlaceholder')!}
autoFocus={autoFocus}
/>
)
@@ -129,7 +129,7 @@ const FormItem: FC<Props> = ({
className="w-full px-3 py-1 text-sm leading-[18px] text-gray-900 border-0 rounded-lg grow h-[120px] bg-gray-50 focus:outline-none focus:ring-1 focus:ring-inset focus:ring-gray-200"
value={value || ''}
onChange={e => onChange(e.target.value)}
placeholder={t('appDebug.variableConig.inputPlaceholder')!}
placeholder={t('appDebug.variableConfig.inputPlaceholder')!}
autoFocus={autoFocus}
/>
)
@@ -207,7 +207,7 @@ const FormItem: FC<Props> = ({
key={index}
isInNode
value={item}
title={<span>{t('appDebug.variableConig.content')} {index + 1} </span>}
title={<span>{t('appDebug.variableConfig.content')} {index + 1} </span>}
onChange={handleArrayItemChange(index)}
headerRight={
(value as any).length > 1

View File

@@ -99,7 +99,7 @@ const AddExtractParameter: FC<Props> = ({
if (!param.name)
errMessage = t(`${errorI18nPrefix}.fieldRequired`, { field: t(`${i18nPrefix}.addExtractParameterContent.name`) })
if (!errMessage && param.type === ParamType.select && (!param.options || param.options.length === 0))
errMessage = t(`${errorI18nPrefix}.fieldRequired`, { field: t('appDebug.variableConig.options') })
errMessage = t(`${errorI18nPrefix}.fieldRequired`, { field: t('appDebug.variableConfig.options') })
if (!errMessage && !param.description)
errMessage = t(`${errorI18nPrefix}.fieldRequired`, { field: t(`${i18nPrefix}.addExtractParameterContent.description`) })
@@ -160,7 +160,7 @@ const AddExtractParameter: FC<Props> = ({
/>
</Field>
{param.type === ParamType.select && (
<Field title={t('appDebug.variableConig.options')}>
<Field title={t('appDebug.variableConfig.options')}>
<ConfigSelect options={param.options || []} onChange={handleParamChange('options')} />
</Field>
)}