[WIP] 🌍 Mark more files for translation (#5209)

* translate more files

* prefer Trans component in JSX where possible

* note

* [autofix.ci] apply automated fixes

* aria-label

* more...

* [autofix.ci] apply automated fixes

* review

* [autofix.ci] apply automated fixes

* more review

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
Matt Fiddaman
2025-06-21 02:11:49 -04:00
committed by GitHub
parent 8231bbbf5a
commit 9952412e1d
43 changed files with 368 additions and 255 deletions

View File

@@ -59,6 +59,7 @@ export function AmountInput({
disabled = false,
autoDecimals = false,
}: AmountInputProps) {
const { t } = useTranslation();
const format = useFormat();
const [symbol, setSymbol] = useState<'+' | '-'>(
initialValue === 0 ? zeroSign : initialValue > 0 ? '+' : '-',
@@ -136,7 +137,7 @@ export function AmountInput({
<Button
variant="bare"
isDisabled={disabled}
aria-label={`Make ${symbol === '-' ? 'positive' : 'negative'}`}
aria-label={symbol === '-' ? t('Make positive') : t('Make negative')}
style={{ padding: '0 7px' }}
onPress={onSwitch}
ref={buttonRef}