mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-09-25 08:59:31 +02:00
fix: i18n tsc
This commit is contained in:
@@ -97,25 +97,21 @@ export default function ArithmeticSequence({ title }: ToolComponentProps) {
|
||||
component: (
|
||||
<Box>
|
||||
<TextFieldWithDesc
|
||||
description={t(
|
||||
'number:arithmeticSequence.firstTermDescription'
|
||||
)}
|
||||
description={t('arithmeticSequence.firstTermDescription')}
|
||||
value={values.firstTerm}
|
||||
onOwnChange={(val) => updateField('firstTerm', val)}
|
||||
type="number"
|
||||
/>
|
||||
<TextFieldWithDesc
|
||||
description={t(
|
||||
'number:arithmeticSequence.commonDifferenceDescription'
|
||||
'arithmeticSequence.commonDifferenceDescription'
|
||||
)}
|
||||
value={values.commonDifference}
|
||||
onOwnChange={(val) => updateField('commonDifference', val)}
|
||||
type="number"
|
||||
/>
|
||||
<TextFieldWithDesc
|
||||
description={t(
|
||||
'number:arithmeticSequence.numberOfTermsDescription'
|
||||
)}
|
||||
description={t('arithmeticSequence.numberOfTermsDescription')}
|
||||
value={values.numberOfTerms}
|
||||
onOwnChange={(val) => updateField('numberOfTerms', val)}
|
||||
type="number"
|
||||
|
@@ -1,17 +1,4 @@
|
||||
{
|
||||
"sum": {
|
||||
"title": "Sum Numbers",
|
||||
"description": "Calculate the sum of a list of numbers.",
|
||||
"inputTitle": "Input numbers",
|
||||
"resultTitle": "Sum",
|
||||
"sumOptions": "Sum Options",
|
||||
"ignoreNonNumeric": "Ignore non-numeric values",
|
||||
"ignoreNonNumericDescription": "Skip values that are not numbers",
|
||||
"toolInfo": {
|
||||
"title": "Sum numbers",
|
||||
"description": "This tool allows you to calculate the sum of a list of numbers. You can input numbers separated by various delimiters and get their total sum."
|
||||
}
|
||||
},
|
||||
"generate": {
|
||||
"title": "Generate Numbers",
|
||||
"description": "Generate a sequence of numbers with customizable parameters.",
|
||||
@@ -41,5 +28,27 @@
|
||||
"title": "What is an Arithmetic Sequence?",
|
||||
"description": "An arithmetic sequence is a sequence of numbers where the difference between each consecutive term is constant. This constant difference is called the common difference. Given the first term (a₁) and the common difference (d), each term can be found by adding the common difference to the previous term."
|
||||
}
|
||||
},
|
||||
"sum": {
|
||||
"toolInfo": {
|
||||
"title": "What Is a Number Sum Calculator?",
|
||||
"description": "This is an online browser-based utility for calculating the sum of a bunch of numbers. You can enter the numbers separated by a comma, space, or any other character, including the line break. You can also simply paste a fragment of textual data that contains numerical values that you want to sum up and the utility will extract them and find their sum."
|
||||
},
|
||||
"inputTitle": "Input",
|
||||
"resultTitle": "Total",
|
||||
"numberExtraction": "Number Extraction",
|
||||
"runningSum": "Running Sum",
|
||||
"printRunningSum": "Print Running Sum",
|
||||
"printRunningSumDescription": "Display the sum as it's calculated step by step.",
|
||||
"extractionTypes": {
|
||||
"smart": {
|
||||
"title": "Smart Sum",
|
||||
"description": "Auto detect numbers in the input."
|
||||
},
|
||||
"delimiter": {
|
||||
"title": "Number Delimiter",
|
||||
"description": "Customize the number separator here. (By default a line break.)"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -135,9 +135,9 @@ export default function SumNumbers({ title }: ToolComponentProps) {
|
||||
<RadioWithTextField
|
||||
key={type}
|
||||
checked={type === values.extractionType}
|
||||
title={t(`number.sum.extractionTypes.${type}.title`)}
|
||||
title={t(`sum.extractionTypes.${type}.title`)}
|
||||
fieldName={'extractionType'}
|
||||
description={t(`number.sum.extractionTypes.${type}.description`)}
|
||||
description={t(`sum.extractionTypes.${type}.description`)}
|
||||
value={
|
||||
textValueAccessor ? values[textValueAccessor].toString() : ''
|
||||
}
|
||||
@@ -151,8 +151,8 @@ export default function SumNumbers({ title }: ToolComponentProps) {
|
||||
key={title}
|
||||
onClick={() => updateField('extractionType', type)}
|
||||
checked={values.extractionType === type}
|
||||
description={t(`number.sum.extractionTypes.${type}.description`)}
|
||||
title={t(`number.sum.extractionTypes.${type}.title`)}
|
||||
description={t(`sum.extractionTypes.${type}.description`)}
|
||||
title={t(`sum.extractionTypes.${type}.title`)}
|
||||
/>
|
||||
)
|
||||
)
|
||||
|
Reference in New Issue
Block a user