Browse Source
Re-write "since" translations to make it work in FR
master
meriadec
7 years ago
No known key found for this signature in database
GPG Key ID: 1D2FC2305E2CB399
2 changed files with
7 additions and
3 deletions
-
src/components/BalanceSummary/BalanceInfos.js
-
static/i18n/en/time.yml
|
|
@ -46,7 +46,7 @@ export function BalanceSincePercent(props: BalanceSinceProps) { |
|
|
|
alwaysShowSign |
|
|
|
fontSize={7} |
|
|
|
/> |
|
|
|
<Sub>{t('time:since', { since: t(`time:${since}`) })}</Sub> |
|
|
|
<Sub>{t(`time:since.${since}`)}</Sub> |
|
|
|
</Box> |
|
|
|
) |
|
|
|
} |
|
|
@ -62,7 +62,7 @@ export function BalanceSinceDiff(props: Props) { |
|
|
|
val={totalBalance - sinceBalance} |
|
|
|
fontSize={7} |
|
|
|
/> |
|
|
|
<Sub>{t('time:since', { since: t(`time:${since}`) })}</Sub> |
|
|
|
<Sub>{t(`time:since.${since}`)}</Sub> |
|
|
|
</Box> |
|
|
|
) |
|
|
|
} |
|
|
|
|
|
@ -3,4 +3,8 @@ week: Week |
|
|
|
month: Month |
|
|
|
year: Year |
|
|
|
|
|
|
|
since: since one {{since}} |
|
|
|
since: |
|
|
|
day: since a day |
|
|
|
week: since a week |
|
|
|
month: since a month |
|
|
|
year: since a year |
|
|
|