mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-06-11 18:56:59 +00:00
Add translations
This commit is contained in:
parent
53facb9f2c
commit
9ec1762481
@ -16,8 +16,7 @@
|
|||||||
"export": "export",
|
"export": "export",
|
||||||
"import": "import",
|
"import": "import",
|
||||||
"join": "join",
|
"join": "join",
|
||||||
"logout": "logout",
|
"logout": "logout"
|
||||||
"refetch_page": "refetch page"
|
|
||||||
},
|
},
|
||||||
"core": {
|
"core": {
|
||||||
"block_height": "block height",
|
"block_height": "block height",
|
||||||
@ -37,14 +36,16 @@
|
|||||||
"page": {
|
"page": {
|
||||||
"last": "last",
|
"last": "last",
|
||||||
"first": "first",
|
"first": "first",
|
||||||
|
"next": "next",
|
||||||
"previous": "previous"
|
"previous": "previous"
|
||||||
},
|
},
|
||||||
"downloading_qdn": "downloading from QDN",
|
"downloading_qdn": "downloading from QDN",
|
||||||
"last_height": "last height",
|
"last_height": "last height",
|
||||||
"loading": "loading...",
|
"loading": "loading...",
|
||||||
"loading_posts": "loading posts... please wait.",
|
"loading_posts": "loading posts... please wait.",
|
||||||
|
"message_us": "please message us on Telegram or Discord if you need 4 QORT to start chatting without any limitations",
|
||||||
"minting_status": "minting status",
|
"minting_status": "minting status",
|
||||||
"next": "next",
|
"new_user": "are you a new user?",
|
||||||
"payment_notification": "payment notification",
|
"payment_notification": "payment notification",
|
||||||
"price": "price",
|
"price": "price",
|
||||||
"q_mail": "q-mail",
|
"q_mail": "q-mail",
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
"create_group": "create group",
|
"create_group": "create group",
|
||||||
"find_group": "find group",
|
"find_group": "find group",
|
||||||
"join_group": "join group",
|
"join_group": "join group",
|
||||||
|
"refetch_page": "refetch page",
|
||||||
"return_to_thread": "return to threads"
|
"return_to_thread": "return to threads"
|
||||||
},
|
},
|
||||||
"advanced_options": "advanced options",
|
"advanced_options": "advanced options",
|
||||||
|
@ -510,7 +510,7 @@ function App() {
|
|||||||
console.error(
|
console.error(
|
||||||
'Failed to get API key:',
|
'Failed to get API key:',
|
||||||
error?.message || 'An error occurred'
|
error?.message || 'An error occurred'
|
||||||
); // TODO translate
|
);
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
window
|
window
|
||||||
@ -1887,10 +1887,6 @@ function App() {
|
|||||||
<AppContainer
|
<AppContainer
|
||||||
sx={{
|
sx={{
|
||||||
height: '100vh',
|
height: '100vh',
|
||||||
// backgroundImage: desktopViewMode === "apps" && 'url("appsBg.svg")',
|
|
||||||
// backgroundSize: desktopViewMode === "apps" && "cover",
|
|
||||||
// backgroundPosition: desktopViewMode === "apps" && "center",
|
|
||||||
// backgroundRepeat: desktopViewMode === "apps" && "no-repeat",
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<PdfViewer />
|
<PdfViewer />
|
||||||
@ -3027,7 +3023,7 @@ function App() {
|
|||||||
>
|
>
|
||||||
{t('core:action.close', { postProcess: 'capitalize' })}
|
{t('core:action.close', { postProcess: 'capitalize' })}
|
||||||
</CustomButton>
|
</CustomButton>
|
||||||
</> // TODO translate
|
</>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{countdown && (
|
{countdown && (
|
||||||
|
@ -129,7 +129,7 @@ export const BlockedUsersModal = () => {
|
|||||||
executeEvent('updateChatMessagesWithBlocks', true);
|
executeEvent('updateChatMessagesWithBlocks', true);
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
setOpenSnackGlobal(true); // TODO translate
|
setOpenSnackGlobal(true);
|
||||||
setInfoSnackCustom({
|
setInfoSnackCustom({
|
||||||
type: 'error',
|
type: 'error',
|
||||||
message: error?.message || 'Unable to block user',
|
message: error?.message || 'Unable to block user',
|
||||||
|
@ -724,7 +724,7 @@ export const Thread = ({
|
|||||||
disabled={!hasNextPage}
|
disabled={!hasNextPage}
|
||||||
variant="contained"
|
variant="contained"
|
||||||
>
|
>
|
||||||
{t('core:next', { postProcess: 'capitalize' })}
|
{t('core:page.next', { postProcess: 'capitalize' })}
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
sx={{
|
sx={{
|
||||||
@ -962,7 +962,9 @@ export const Thread = ({
|
|||||||
color: 'white',
|
color: 'white',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{t('core:action.refetch_page', { postProcess: 'capitalize' })}
|
{t('group:action.refetch_page', {
|
||||||
|
postProcess: 'capitalize',
|
||||||
|
})}
|
||||||
</Button>
|
</Button>
|
||||||
</Box>
|
</Box>
|
||||||
</>
|
</>
|
||||||
@ -1036,7 +1038,7 @@ export const Thread = ({
|
|||||||
disabled={!hasNextPage}
|
disabled={!hasNextPage}
|
||||||
variant="contained"
|
variant="contained"
|
||||||
>
|
>
|
||||||
{t('core:next', { postProcess: 'capitalize' })}
|
{t('core:page.next', { postProcess: 'capitalize' })}
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
sx={{
|
sx={{
|
||||||
|
@ -1,46 +1,52 @@
|
|||||||
import { Box, ButtonBase, Typography } from '@mui/material';
|
import { Box, ButtonBase, Typography } from '@mui/material';
|
||||||
import { Spacer } from '../../common/Spacer';
|
import { Spacer } from '../../common/Spacer';
|
||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
export const NewUsersCTA = ({ balance }) => {
|
export const NewUsersCTA = ({ balance }) => {
|
||||||
|
const { t } = useTranslation(['core']);
|
||||||
|
|
||||||
if (balance === undefined || +balance > 0) return null;
|
if (balance === undefined || +balance > 0) return null;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
width: '100%',
|
alignItems: 'center',
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
flexDirection: 'column',
|
flexDirection: 'column',
|
||||||
alignItems: 'center',
|
width: '100%',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Spacer height="40px" />
|
<Spacer height="40px" />
|
||||||
|
|
||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
width: '320px',
|
|
||||||
justifyContent: 'center',
|
|
||||||
flexDirection: 'column',
|
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
padding: '15px',
|
|
||||||
outline: '1px solid gray',
|
|
||||||
borderRadius: '4px',
|
borderRadius: '4px',
|
||||||
|
flexDirection: 'column',
|
||||||
|
justifyContent: 'center',
|
||||||
|
outline: '1px solid gray',
|
||||||
|
padding: '15px',
|
||||||
|
width: '320px',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Typography
|
<Typography
|
||||||
sx={{
|
sx={{
|
||||||
textAlign: 'center',
|
|
||||||
fontSize: '1.2rem',
|
fontSize: '1.2rem',
|
||||||
fontWeight: 'bold',
|
fontWeight: 'bold',
|
||||||
|
textAlign: 'center',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Are you a new user?
|
{t('core:new_user', { postProcess: 'capitalize' })}
|
||||||
</Typography>{' '}
|
|
||||||
// TODO translate
|
|
||||||
<Spacer height="20px" />
|
|
||||||
<Typography>
|
|
||||||
Please message us on Telegram or Discord if you need 4 QORT to start
|
|
||||||
chatting without any limitations
|
|
||||||
</Typography>
|
</Typography>
|
||||||
|
|
||||||
<Spacer height="20px" />
|
<Spacer height="20px" />
|
||||||
|
|
||||||
|
<Typography>
|
||||||
|
{t('core:message_us', { postProcess: 'capitalize' })}
|
||||||
|
</Typography>
|
||||||
|
|
||||||
|
<Spacer height="20px" />
|
||||||
|
|
||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
width: '100%',
|
width: '100%',
|
||||||
@ -68,6 +74,7 @@ export const NewUsersCTA = ({ balance }) => {
|
|||||||
>
|
>
|
||||||
Telegram
|
Telegram
|
||||||
</ButtonBase>
|
</ButtonBase>
|
||||||
|
|
||||||
<ButtonBase
|
<ButtonBase
|
||||||
sx={{
|
sx={{
|
||||||
textDecoration: 'underline',
|
textDecoration: 'underline',
|
||||||
|
@ -265,7 +265,7 @@ export const Minting = ({
|
|||||||
rej({ message: response.error });
|
rej({ message: response.error });
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
rej({ message: error.message || 'An error occurred' }); //TODO translate
|
rej({ message: error.message || 'An error occurred' });
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
@ -280,7 +280,7 @@ export const Minting = ({
|
|||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
const createRewardShare = useCallback(async (publicKey, recipient) => {
|
const createRewardShare = useCallback(async (publicKey, recipient) => {
|
||||||
const fee = await getFee('REWARD_SHARE');
|
const fee = await getFee('REWARD_SHARE'); // TODO translate
|
||||||
await show({
|
await show({
|
||||||
message: 'Would you like to perform an REWARD_SHARE transaction?',
|
message: 'Would you like to perform an REWARD_SHARE transaction?',
|
||||||
publishFee: fee.fee + ' QORT',
|
publishFee: fee.fee + ' QORT',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user