fix: i18n tsc

This commit is contained in:
Ibrahima G. Coulibaly
2025-07-13 14:09:04 +01:00
parent 2bcd88cfd1
commit 0ed18c7231
22 changed files with 268 additions and 271 deletions

View File

@@ -5,15 +5,6 @@
"inputTitle": "Input text",
"resultTitle": "Uppercase text"
},
"reverse": {
"title": "Reverse Text",
"description": "Reverse the order of characters in text.",
"inputTitle": "Input text",
"resultTitle": "Reversed text",
"processMultiLine": "Process as multi-line text (reverse each line separately)",
"skipEmptyLines": "Skip empty lines",
"trimWhitespace": "Trim whitespace from lines"
},
"base64": {
"title": "Base64 Encoder/Decoder",
"description": "Encode or decode text using Base64 encoding.",
@@ -67,24 +58,6 @@
"description": "This tool allows you to add quotes around text. You can choose different quote characters, handle multi-line text, and control how empty lines are processed. It's useful for preparing text for programming, formatting data, or creating stylized text."
}
},
"split": {
"title": "Split Text",
"description": "Split text into parts based on various criteria.",
"resultTitle": "Text pieces",
"splitSeparatorOptions": "Split separator options",
"symbolTitle": "Use a Symbol for Splitting",
"symbolDescription": "Character that will be used to break text into parts. (Space by default.)",
"regexTitle": "Use a Regex for Splitting",
"regexDescription": "Regular expression that will be used to break text into parts. (Multiple spaces by default.)",
"lengthTitle": "Use Length for Splitting",
"lengthDescription": "Number of symbols that will be put in each output chunk.",
"chunksTitle": "Use a Number of Chunks",
"chunksDescription": "Number of chunks of equal length in the output.",
"outputSeparatorOptions": "Output separator options",
"outputSeparatorDescription": "Character that will be put between the split chunks. (It's newline \"\\n\" by default.)",
"charBeforeChunkDescription": "Character before each chunk",
"charAfterChunkDescription": "Character after each chunk"
},
"join": {
"title": "Join Text",
"description": "Join text pieces together with customizable separators.",
@@ -192,5 +165,32 @@
"title": "Text Replacer",
"description": "Easily replace specific text in your content with this simple, browser-based tool. Just input your text, set the text you want to replace and the replacement value, and instantly get the updated version."
}
},
"reverse": {
"reversalOptions": "Reversal options",
"processMultiLine": "Process multi-line text",
"processMultiLineDescription": "Each line will be reversed independently",
"skipEmptyLines": "Skip empty lines",
"skipEmptyLinesDescription": "Empty lines will be removed from the output",
"trimWhitespace": "Trim whitespace",
"trimWhitespaceDescription": "Remove leading and trailing whitespace from each line",
"inputTitle": "Text to reverse",
"resultTitle": "Reversed text"
},
"split": {
"resultTitle": "Text pieces",
"splitSeparatorOptions": "Split separator options",
"symbolTitle": "Use a Symbol for Splitting",
"symbolDescription": "Character that will be used to break text into parts.\n(Space by default.)",
"regexTitle": "Use a Regex for Splitting",
"regexDescription": "Regular expression that will be used to break text into parts.\n(Multiple spaces by default.)",
"lengthTitle": "Use Length for Splitting",
"lengthDescription": "Number of symbols that will be put in each output chunk.",
"chunksTitle": "Use a Number of Chunks",
"chunksDescription": "Number of chunks of equal\nlength in the output.",
"outputSeparatorOptions": "Output separator options",
"outputSeparatorDescription": "Character that will be put between the split chunks.\n(It's newline \"\\n\" by default.)",
"charBeforeChunkDescription": "Character before each chunk",
"charAfterChunkDescription": "Character after each chunk"
}
}

View File

@@ -33,7 +33,7 @@ const mergeOptions = {
const blankTrailingOptions: {
title: string;
description: string;
accessor: keyof InitialValuesType;
accessor: keyof Omit<InitialValuesType, 'joinCharacter'>;
}[] = [
{
title: 'Delete Blank Lines',
@@ -136,10 +136,10 @@ export default function JoinText({ title }: ToolComponentProps) {
component: blankTrailingOptions.map((option) => (
<CheckboxWithDesc
key={option.accessor}
title={t(`string.join.${option.accessor}Title`)}
title={t(`join.${option.accessor}Title`)}
checked={!!values[option.accessor]}
onChange={(value) => updateField(option.accessor, value)}
description={t(`string.join.${option.accessor}Description`)}
description={t(`join.${option.accessor}Description`)}
/>
))
}

View File

@@ -183,9 +183,9 @@ export default function SplitText({ title }: ToolComponentProps) {
<RadioWithTextField
key={type}
checked={type === values.splitSeparatorType}
title={t(`string.split.${type}Title`)}
title={t(`split.${type}Title`)}
fieldName={'splitSeparatorType'}
description={t(`string.split.${type}Description`)}
description={t(`split.${type}Description`)}
value={values[`${type}Value`]}
onRadioClick={() => updateField('splitSeparatorType', type)}
onTextChange={(val) => updateField(`${type}Value`, val)}
@@ -199,7 +199,8 @@ export default function SplitText({ title }: ToolComponentProps) {
key={option.accessor}
value={values[option.accessor]}
onOwnChange={(value) => updateField(option.accessor, value)}
description={t(`string.split.${option.accessor}Description`)}
//@ts-ignore
description={t(`split.${option.accessor}Description`)}
/>
))
}

View File

@@ -262,9 +262,7 @@ export default function Truncate({
checked={values.characterCount}
onChange={(value) => updateField('characterCount', value)}
title={t('statistic.characterFrequencyAnalysis')}
description={t(
'string:statistic.characterFrequencyAnalysisDescription'
)}
description={t('statistic.characterFrequencyAnalysisDescription')}
/>
<CheckboxWithDesc
checked={values.emptyLines}