mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-05-15 22:26:58 +00:00
Add minting translations
This commit is contained in:
parent
37a2694678
commit
c5ff69b2f7
@ -1778,6 +1778,7 @@ function App() {
|
||||
<QMailStatus />
|
||||
|
||||
<Spacer height="20px" />
|
||||
|
||||
{extState === 'authenticated' && (
|
||||
<GeneralNotifications address={userInfo?.address} />
|
||||
)}
|
||||
|
@ -536,7 +536,7 @@ export const AddGroup = ({ address, open, setOpen }) => {
|
||||
{t('core:time.hour', { count: 1 })}
|
||||
</MenuItem>
|
||||
<MenuItem value={180}>
|
||||
3{t('core:time.hour', { count: 3 })}
|
||||
{t('core:time.hour', { count: 3 })}
|
||||
</MenuItem>
|
||||
<MenuItem value={300}>
|
||||
{t('core:time.hour', { count: 5 })}
|
||||
|
@ -21,7 +21,7 @@ import {
|
||||
subscribeToEvent,
|
||||
unsubscribeFromEvent,
|
||||
} from '../../utils/events';
|
||||
import { getFee, getNameOrAddress } from '../../background';
|
||||
import { getFee } from '../../background';
|
||||
import { Spacer } from '../../common/Spacer';
|
||||
import { FidgetSpinner } from 'react-loader-spinner';
|
||||
import { useModal } from '../../common/useModal';
|
||||
@ -658,18 +658,34 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => {
|
||||
sx={{
|
||||
backgroundColor: theme.palette.background.default,
|
||||
padding: '10px',
|
||||
}} // TODO translate
|
||||
}}
|
||||
>
|
||||
<Typography>Account: {handleNames(accountInfo?.address)}</Typography>
|
||||
|
||||
<Typography>Level: {accountInfo?.level}</Typography>
|
||||
|
||||
<Typography>
|
||||
blocks remaining until next level: {_levelUpBlocks()}
|
||||
{t('auth:account.account_one', {
|
||||
postProcess: 'capitalize',
|
||||
})}
|
||||
: {handleNames(accountInfo?.address)}
|
||||
</Typography>
|
||||
|
||||
<Typography>
|
||||
This node is minting: {nodeInfos?.isMintingPossible?.toString()}
|
||||
{t('core:level', {
|
||||
postProcess: 'capitalize',
|
||||
})}
|
||||
: {accountInfo?.level}
|
||||
</Typography>
|
||||
|
||||
<Typography>
|
||||
{t('group:message.generic.next_level', {
|
||||
postProcess: 'capitalize',
|
||||
})}{' '}
|
||||
{_levelUpBlocks()}
|
||||
</Typography>
|
||||
|
||||
<Typography>
|
||||
{t('group:message.generic.node_minting', {
|
||||
postProcess: 'capitalize',
|
||||
})}{' '}
|
||||
{nodeInfos?.isMintingPossible?.toString()}
|
||||
</Typography>
|
||||
</Card>
|
||||
|
||||
@ -706,12 +722,16 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => {
|
||||
}}
|
||||
variant="contained"
|
||||
>
|
||||
Start minting
|
||||
{t('core:action.start_minting', {
|
||||
postProcess: 'capitalize',
|
||||
})}
|
||||
</Button>
|
||||
|
||||
{mintingAccounts?.length > 1 && (
|
||||
<Typography>
|
||||
Only 2 minting keys are allowed per node. Please remove one if
|
||||
you would like to mint with this account.
|
||||
{t('group:message.generic.minting_keys_per_node', {
|
||||
postProcess: 'capitalize',
|
||||
})}
|
||||
</Typography>
|
||||
)}
|
||||
</Box>
|
||||
@ -720,7 +740,7 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => {
|
||||
<Spacer height="10px" />
|
||||
|
||||
{mintingAccounts?.length > 0 && (
|
||||
<Typography>Node's minting accounts</Typography>
|
||||
<Typography>Node's minting accounts</Typography> // TODO translate
|
||||
)}
|
||||
<Card
|
||||
sx={{
|
||||
@ -742,7 +762,9 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => {
|
||||
</Typography>
|
||||
</Box>
|
||||
)}
|
||||
|
||||
<Spacer height="10px" />
|
||||
|
||||
{mintingAccounts?.map((acct) => (
|
||||
<Box
|
||||
key={acct?.mintingAccount}
|
||||
|
@ -31,7 +31,8 @@
|
||||
"post_message": "post message",
|
||||
"publish": "publish",
|
||||
"remove": "remove",
|
||||
"save": "save"
|
||||
"save": "save",
|
||||
"start_minting": "start minting"
|
||||
},
|
||||
"admin": "admin",
|
||||
"core": {
|
||||
@ -55,6 +56,7 @@
|
||||
},
|
||||
"general_settings": "general settings",
|
||||
"last_height": "last height",
|
||||
"level": "level",
|
||||
"list": {
|
||||
"invite": "invite list",
|
||||
"join_request": "join request list",
|
||||
|
@ -63,6 +63,9 @@
|
||||
"loading_members": "loading member list with names... please wait.",
|
||||
"max_chars": " Max 200 characters. Publish Fee",
|
||||
"manage_minting": "manage your minting",
|
||||
"minting_keys_per_node": "only 2 minting keys are allowed per node. Please remove one if you would like to mint with this account.",
|
||||
"next_level": "blocks remaining until next level:",
|
||||
"node_minting": "This node is minting:",
|
||||
"no_display": "nothing to display",
|
||||
"no_selection": "no group selected",
|
||||
"not_part_group": "you are not part of the encrypted group of members. Wait until an admin re-encrypts the keys.",
|
||||
|
Loading…
x
Reference in New Issue
Block a user