Skip to content

Commit

Permalink
refactor: translations of epoch and slot in MainHeader
Browse files Browse the repository at this point in the history
  • Loading branch information
benji-bitfly committed Nov 5, 2024
1 parent 518edc0 commit c332bcf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions frontend/components/bc/header/MainHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ const handleUserMenuSelect = async (value: UserMenuItem) => {
<div class="top-background" />
<div class="rows">
<div class="grid-cell blockchain-info">
<span v-if="latestState?.current_slot"><span>{{ $t("header.current_slot") }}</span>:
<span v-if="latestState?.current_slot"><span>{{ $t("header.slot") }}</span>:
<BcLink
:to="`/slot/${latestState.current_slot}`"
:disabled="!showInDevelopment || null"
Expand All @@ -114,7 +114,7 @@ const handleUserMenuSelect = async (value: UserMenuItem) => {
/>
</BcLink>
</span>
<span v-if="currentEpoch !== undefined"><span>{{ $t("header.current_epoch") }}</span>:
<span v-if="currentEpoch !== undefined"><span>{{ $t("header.epoch") }}</span>:
<BcLink
:to="`/epoch/${currentEpoch}`"
:disabled="!showInDevelopment || null"
Expand Down
6 changes: 3 additions & 3 deletions frontend/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -469,8 +469,7 @@
"terms": "Terms"
},
"header": {
"current_epoch": "Current Epoch",
"current_slot": "Current Slot",
"epoch": "Epoch",
"login": "Log in",
"logout": "Log out",
"megamenu": {
Expand Down Expand Up @@ -525,7 +524,8 @@
"withdrawals": "Withdrawals"
},
"register": "Sign up",
"settings": "Account Settings"
"settings": "Account Settings",
"slot": "Slot"
},
"locales": {
"currency": "en-US",
Expand Down

0 comments on commit c332bcf

Please sign in to comment.