mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-09-20 14:39:34 +02:00
fix: misc
This commit is contained in:
@@ -230,47 +230,47 @@ export default function Truncate({
|
||||
updateField
|
||||
}) => [
|
||||
{
|
||||
title: t('string.statistic.delimitersOptions'),
|
||||
title: t('string:statistic.delimitersOptions'),
|
||||
component: (
|
||||
<Box>
|
||||
<TextFieldWithDesc
|
||||
value={values.sentenceDelimiters}
|
||||
onOwnChange={(val) => updateField('sentenceDelimiters', val)}
|
||||
placeholder={t('string.statistic.sentenceDelimitersPlaceholder')}
|
||||
description={t('string.statistic.sentenceDelimitersDescription')}
|
||||
placeholder={t('string:statistic.sentenceDelimitersPlaceholder')}
|
||||
description={t('string:statistic.sentenceDelimitersDescription')}
|
||||
/>
|
||||
<TextFieldWithDesc
|
||||
value={values.wordDelimiters}
|
||||
onOwnChange={(val) => updateField('wordDelimiters', val)}
|
||||
placeholder={t('string.statistic.wordDelimitersPlaceholder')}
|
||||
description={t('string.statistic.wordDelimitersDescription')}
|
||||
placeholder={t('string:statistic.wordDelimitersPlaceholder')}
|
||||
description={t('string:statistic.wordDelimitersDescription')}
|
||||
/>
|
||||
</Box>
|
||||
)
|
||||
},
|
||||
{
|
||||
title: t('string.statistic.statisticsOptions'),
|
||||
title: t('string:statistic.statisticsOptions'),
|
||||
component: (
|
||||
<Box>
|
||||
<CheckboxWithDesc
|
||||
checked={values.wordCount}
|
||||
onChange={(value) => updateField('wordCount', value)}
|
||||
title={t('string.statistic.wordFrequencyAnalysis')}
|
||||
description={t('string.statistic.wordFrequencyAnalysisDescription')}
|
||||
title={t('string:statistic.wordFrequencyAnalysis')}
|
||||
description={t('string:statistic.wordFrequencyAnalysisDescription')}
|
||||
/>
|
||||
<CheckboxWithDesc
|
||||
checked={values.characterCount}
|
||||
onChange={(value) => updateField('characterCount', value)}
|
||||
title={t('string.statistic.characterFrequencyAnalysis')}
|
||||
title={t('string:statistic.characterFrequencyAnalysis')}
|
||||
description={t(
|
||||
'string.statistic.characterFrequencyAnalysisDescription'
|
||||
'string:statistic.characterFrequencyAnalysisDescription'
|
||||
)}
|
||||
/>
|
||||
<CheckboxWithDesc
|
||||
checked={values.emptyLines}
|
||||
onChange={(value) => updateField('emptyLines', value)}
|
||||
title={t('string.statistic.includeEmptyLines')}
|
||||
description={t('string.statistic.includeEmptyLinesDescription')}
|
||||
title={t('string:statistic.includeEmptyLines')}
|
||||
description={t('string:statistic.includeEmptyLinesDescription')}
|
||||
/>
|
||||
</Box>
|
||||
)
|
||||
@@ -287,19 +287,19 @@ export default function Truncate({
|
||||
setInput={setInput}
|
||||
inputComponent={
|
||||
<ToolTextInput
|
||||
title={t('string.statistic.inputTitle')}
|
||||
title={t('string:statistic.inputTitle')}
|
||||
value={input}
|
||||
onChange={setInput}
|
||||
/>
|
||||
}
|
||||
resultComponent={
|
||||
<ToolTextResult
|
||||
title={t('string.statistic.resultTitle')}
|
||||
title={t('string:statistic.resultTitle')}
|
||||
value={result}
|
||||
/>
|
||||
}
|
||||
toolInfo={{
|
||||
title: t('string.statistic.toolInfo.title', { title }),
|
||||
title: t('string:statistic.toolInfo.title', { title }),
|
||||
description: longDescription
|
||||
}}
|
||||
exampleCards={exampleCards}
|
||||
|
@@ -13,9 +13,9 @@ export const tool = defineTool('string', {
|
||||
keywords: ['text', 'statistics', 'count', 'lines', 'words', 'characters'],
|
||||
component: lazy(() => import('./index')),
|
||||
i18n: {
|
||||
name: 'string.statistic.name',
|
||||
description: 'string.statistic.description',
|
||||
shortDescription: 'string.statistic.shortDescription',
|
||||
longDescription: 'string.statistic.longDescription'
|
||||
name: 'string:statistic.title',
|
||||
description: 'string:statistic.description',
|
||||
shortDescription: 'string:statistic.shortDescription',
|
||||
longDescription: 'string:statistic.longDescription'
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user