mirror of
https://github.com/actualbudget/actual.git
synced 2026-04-30 03:23:51 -05:00
[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:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user