Skip to content

Commit

Permalink
Merge pull request #335 from oasisprotocol/lw/missing-i18n
Browse files Browse the repository at this point in the history
Use i18n everywhere
  • Loading branch information
lukaw3d authored Apr 26, 2023
2 parents 8cf4fce + 25a6bc3 commit a05dafc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/app/components/Transactions/LogEvent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@ const DecodedLogEvent: FC<{ layer: Layer; event: RuntimeEvent }> = ({ layer, eve
const eventName = eventTypeNames[event.type]
switch (event.type) {
case RuntimeEventType.coregas_used:
return <span>Gas used: {event.body.amount.toLocaleString()}</span>
return (
<span>
{t('common.gasUsed')}: {event.body.amount.toLocaleString()}
</span>
)
case RuntimeEventType.evmlog:
return (
<>
Expand Down
2 changes: 1 addition & 1 deletion src/app/pages/DashboardPage/LatestTransactions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const LatestTransactions: FC = () => {
title={t('transactions.latest')}
action={
<Link component={RouterLink} to="transactions" sx={{ color: COLORS.brandExtraDark }}>
View all
{t('common.viewAll')}
</Link>
}
/>
Expand Down

0 comments on commit a05dafc

Please sign in to comment.