refactor: use i18n-next style of plurals

This commit is contained in:
Tom French 2022-08-31 00:14:28 +01:00
parent 618dd0f27f
commit 55049da705
5 changed files with 9 additions and 7 deletions

View file

@ -447,7 +447,7 @@ export default function ScheduleDetails() {
</FormField>
<FormField style={{ flex: 1 }}>
<FormLabel title={t('general.account')} />
<FormLabel title={t('general.account_one')} />
<AccountAutocomplete
value={state.fields.account}
inputProps={{ placeholder: t('schedules.none') }}

View file

@ -240,7 +240,7 @@ export function SchedulesTable({
<>
<TableHeader height={ROW_HEIGHT} inset={15} version="v2">
<Field width="flex">{t('general.payee')}</Field>
<Field width="flex">{t('general.account')}</Field>
<Field width="flex">{t('general.account_one')}</Field>
<Field width={110}>{t('schedules.nextDate')}</Field>
<Field width={120}>{t('general.status')}</Field>
<Field width={100} style={{ textAlign: 'right' }}>

View file

@ -53,7 +53,7 @@ export default function Schedules() {
}
return (
<Page title={t('general.schedules')}>
<Page title={t('general.schedule_other')}>
<View
style={{
marginTop: 20,

View file

@ -13,7 +13,8 @@
"tryDemo": "Try Demo"
},
"general": {
"account": "Account",
"account_one": "Account",
"account_other": "Accounts",
"add": "Add",
"amount": "Amount",
"approximatelyWithAmount": "Approximately {{amount}}",
@ -27,7 +28,7 @@
"restart": "Restart",
"save": "Save",
"schedule": "Schedule",
"schedules": "Schedules",
"schedule_other": "Schedules",
"status": "Status"
},
"schedules": {

View file

@ -13,7 +13,8 @@
"tryDemo": "Probar Demo"
},
"general": {
"account": "Cuenta",
"account_one": "Cuenta",
"account_other": "Cuentas",
"add": "Agregar",
"amount": "Monto",
"approximatelyWithAmount": "Aproximadamente {{amount}}",
@ -27,7 +28,7 @@
"restart": "Reiniciar",
"save": "Guardar",
"schedule": "Agenda",
"schedules": "Agendas",
"schedule_other": "Agendas",
"status": "Estado"
},
"schedules": {