Browse Source

Re-write "since" translations to make it work in FR

master
meriadec 7 years ago
parent
commit
34aced8eb8
No known key found for this signature in database GPG Key ID: 1D2FC2305E2CB399
  1. 4
      src/components/BalanceSummary/BalanceInfos.js
  2. 6
      static/i18n/en/time.yml

4
src/components/BalanceSummary/BalanceInfos.js

@ -46,7 +46,7 @@ export function BalanceSincePercent(props: BalanceSinceProps) {
alwaysShowSign alwaysShowSign
fontSize={7} fontSize={7}
/> />
<Sub>{t('time:since', { since: t(`time:${since}`) })}</Sub> <Sub>{t(`time:since.${since}`)}</Sub>
</Box> </Box>
) )
} }
@ -62,7 +62,7 @@ export function BalanceSinceDiff(props: Props) {
val={totalBalance - sinceBalance} val={totalBalance - sinceBalance}
fontSize={7} fontSize={7}
/> />
<Sub>{t('time:since', { since: t(`time:${since}`) })}</Sub> <Sub>{t(`time:since.${since}`)}</Sub>
</Box> </Box>
) )
} }

6
static/i18n/en/time.yml

@ -3,4 +3,8 @@ week: Week
month: Month month: Month
year: Year year: Year
since: since one {{since}} since:
day: since a day
week: since a week
month: since a month
year: since a year

Loading…
Cancel
Save