diff --git a/.eslintrc.js b/.eslintrc.js index 4dd48183f1..6ec0a628c5 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -15,7 +15,7 @@ module.exports = { 'lingui/no-unlocalized-strings': [ 1, { - ignoreFunction: ['test', 'makeStyles', 'withStyles', 'cn'], + ignoreFunction: ['test', 'makeStyles', 'withStyles', 'cn', 'styled'], ignoreAttribute: [ 'allow', 'sx', @@ -24,6 +24,7 @@ module.exports = { 'labelClassName', 'classes', 'classNames', + 'previewClassName', ], ignoreProperty: [ 'border', diff --git a/web-components/src/components/map/StaticMap.tsx b/web-components/src/components/map/StaticMap.tsx index 1c2ecec95c..db584ecfd4 100644 --- a/web-components/src/components/map/StaticMap.tsx +++ b/web-components/src/components/map/StaticMap.tsx @@ -4,7 +4,6 @@ import bbox from '@turf/bbox'; import { FeatureCollection } from 'geojson'; import { GreenPinIcon } from '../icons/GreenPinIcon'; -import PinIcon from '../icons/PinIcon'; import 'mapbox-gl/dist/mapbox-gl.css'; diff --git a/web-components/src/components/methodologies/index.tsx b/web-components/src/components/methodologies/index.tsx index 6fa165ba8e..3148919a45 100644 --- a/web-components/src/components/methodologies/index.tsx +++ b/web-components/src/components/methodologies/index.tsx @@ -1,3 +1,4 @@ +/* eslint-disable lingui/no-unlocalized-strings */ import React from 'react'; function Methodologies(): JSX.Element { diff --git a/web-components/src/components/modal/EmailConfirmationModal/EmailConfirmationModal.constants.ts b/web-components/src/components/modal/EmailConfirmationModal/EmailConfirmationModal.constants.ts deleted file mode 100644 index d0ae1a95dd..0000000000 --- a/web-components/src/components/modal/EmailConfirmationModal/EmailConfirmationModal.constants.ts +++ /dev/null @@ -1,5 +0,0 @@ -export const EMAIL_CONFIRMATION_TITLE = 'Please check your email'; -export const EMAIL_CONFIRMATION_DESCRIPTION = - 'We’ve just sent a confirmation email to:'; -export const EMAIL_CONFIRMATION_CODE_HELPER = - 'Please enter the code from that email:'; diff --git a/web-components/src/components/modal/EmailConfirmationModal/EmailConfirmationModal.stories.tsx b/web-components/src/components/modal/EmailConfirmationModal/EmailConfirmationModal.stories.tsx index c57b1a9ed5..15d52d6cdc 100644 --- a/web-components/src/components/modal/EmailConfirmationModal/EmailConfirmationModal.stories.tsx +++ b/web-components/src/components/modal/EmailConfirmationModal/EmailConfirmationModal.stories.tsx @@ -55,6 +55,9 @@ export const Basic: Story = { return ( void; } @@ -35,6 +33,9 @@ export const EmailConfirmationModal = ({ error, cancelButton, signInButton, + title, + description, + helperText, onClose, onCodeChange, }: EmailConfirmationModalProps) => { @@ -51,15 +52,14 @@ export const EmailConfirmationModal = ({ }} > - {EMAIL_CONFIRMATION_TITLE} + {title} - {EMAIL_CONFIRMATION_DESCRIPTION}{' '} - {mailLink.text} + {description} {mailLink.text} {'.'} - {EMAIL_CONFIRMATION_CODE_HELPER} + {helperText} ({ }, })); -export interface ProcessingModalProps extends RegenModalProps {} +export interface ProcessingModalProps extends RegenModalProps { + title: string; + bodyText: string; +} const ProcessingModal: React.FC> = - ({ open, onClose }) => { + ({ open, onClose, title, bodyText }) => { const { classes: styles, cx } = useStyles(); return ( - Please wait while transaction processes + {title} - This may take up to 15 seconds. + {bodyText} ); diff --git a/web-components/src/components/modal/SaveChangesWarningModal/SaveChangesWarningModal.tsx b/web-components/src/components/modal/SaveChangesWarningModal/SaveChangesWarningModal.tsx index 0292447a60..f8bdd24332 100644 --- a/web-components/src/components/modal/SaveChangesWarningModal/SaveChangesWarningModal.tsx +++ b/web-components/src/components/modal/SaveChangesWarningModal/SaveChangesWarningModal.tsx @@ -4,21 +4,30 @@ import { CancelButtonFooter } from 'web-components/src/components/organisms/Canc import { Body, Title } from 'web-components/src/components/typography'; interface Props extends RegenModalProps { + title: string; + bodyText: string; + buttonText: string; navigate: () => void; } -export const SaveChangesWarningModal = ({ open, onClose, navigate }: Props) => { +export const SaveChangesWarningModal = ({ + open, + title, + bodyText, + buttonText, + onClose, + navigate, +}: Props) => { return ( - Are you sure you want to discard your changes? + {title} - If you proceed, you will lose all unsaved changes you made. This cannot - be undone. + {bodyText} { navigate(); diff --git a/web-components/src/components/modal/SwitchWalletWarningModal/SwitchWalletWarningModal.constants.ts b/web-components/src/components/modal/SwitchWalletWarningModal/SwitchWalletWarningModal.constants.ts deleted file mode 100644 index 470a5d4d01..0000000000 --- a/web-components/src/components/modal/SwitchWalletWarningModal/SwitchWalletWarningModal.constants.ts +++ /dev/null @@ -1,4 +0,0 @@ -export const SWITCH_WALLET_WARNING_MODAL_TITLE = - 'Please select the following wallet address in Keplr in order to proceed'; -export const SWITCH_WALLET_WARNING_MODAL_MESSAGE = - 'The email address you are using to log in is associated with the above wallet address, so it must be the currently selected account in Keplr in order to continue.'; diff --git a/web-components/src/components/modal/SwitchWalletWarningModal/SwitchWalletWarningModal.stories.tsx b/web-components/src/components/modal/SwitchWalletWarningModal/SwitchWalletWarningModal.stories.tsx index b8c7916b01..ea25e73a0b 100644 --- a/web-components/src/components/modal/SwitchWalletWarningModal/SwitchWalletWarningModal.stories.tsx +++ b/web-components/src/components/modal/SwitchWalletWarningModal/SwitchWalletWarningModal.stories.tsx @@ -24,6 +24,14 @@ export const Basic: Story = { setOpen(false); }; - return ; + return ( + + ); }, }; diff --git a/web-components/src/components/modal/SwitchWalletWarningModal/SwitchWalletWarningModal.tsx b/web-components/src/components/modal/SwitchWalletWarningModal/SwitchWalletWarningModal.tsx index a87722d929..a529d09599 100644 --- a/web-components/src/components/modal/SwitchWalletWarningModal/SwitchWalletWarningModal.tsx +++ b/web-components/src/components/modal/SwitchWalletWarningModal/SwitchWalletWarningModal.tsx @@ -1,18 +1,18 @@ import { SadBeeIcon } from '../../../components/icons/SadBeeIcon'; import { Body, Subtitle, Title } from '../../typography'; import Modal, { RegenModalProps } from '..'; -import { - SWITCH_WALLET_WARNING_MODAL_MESSAGE, - SWITCH_WALLET_WARNING_MODAL_TITLE, -} from './SwitchWalletWarningModal.constants'; export interface KeplrWalletConnectModalProps extends RegenModalProps { address: string; + title: string; + bodyText: string; } const SwitchWalletWarningModal = ({ open, address, + title, + bodyText, onClose, }: KeplrWalletConnectModalProps) => { return ( @@ -20,13 +20,13 @@ const SwitchWalletWarningModal = ({
- {SWITCH_WALLET_WARNING_MODAL_TITLE} + {title} {address} - {SWITCH_WALLET_WARNING_MODAL_MESSAGE} + {bodyText}
diff --git a/web-components/src/components/modal/TxErrorModal.tsx b/web-components/src/components/modal/TxErrorModal.tsx index c6420c3f88..bf94140ad1 100644 --- a/web-components/src/components/modal/TxErrorModal.tsx +++ b/web-components/src/components/modal/TxErrorModal.tsx @@ -32,7 +32,7 @@ const TxErrorModal: React.FC> = ({ } cardItems={cardItems ? cardItems : defaultCardItems} - title={title ?? 'Sorry, your transaction was not successful.'} + title={title} {...props} /> ); diff --git a/web-components/src/components/modal/TxModal.CardItemValue.tsx b/web-components/src/components/modal/TxModal.CardItemValue.tsx index 8977a6c987..983c733371 100644 --- a/web-components/src/components/modal/TxModal.CardItemValue.tsx +++ b/web-components/src/components/modal/TxModal.CardItemValue.tsx @@ -58,6 +58,8 @@ export const CardItemValue = ({ interface CardItemValueListProps { value: ItemValue[]; color?: string; + seeMoreText: string; + seeLessText: string; linkComponent: LinkComponentProp; } @@ -68,6 +70,8 @@ export const CardItemValueList = ( ( ))} diff --git a/web-components/src/components/modal/TxModal.tsx b/web-components/src/components/modal/TxModal.tsx index 1c12674f8e..21a2c543bb 100644 --- a/web-components/src/components/modal/TxModal.tsx +++ b/web-components/src/components/modal/TxModal.tsx @@ -57,7 +57,7 @@ export type LinkComponentProp = React.FC>; export interface TxModalProps extends RegenModalProps { onButtonClick: () => void; cardTitle: string; - buttonTitle?: string; + buttonTitle: string; cardItems?: Item[]; linkComponent: LinkComponentProp; txHash: string; @@ -67,10 +67,16 @@ export interface TxModalProps extends RegenModalProps { description?: string; buttonLink?: string; socialItems?: SocialItems; + blockchainRecordText: string; + seeMoreText: string; + seeLessText: string; + shareTitle?: string; } interface CardItemProps extends Item { linkComponent: LinkComponentProp; + seeMoreText: string; + seeLessText: string; } export const CardItem: React.FC> = ({ @@ -78,6 +84,8 @@ export const CardItem: React.FC> = ({ label, value, linkComponent, + seeMoreText, + seeLessText, }) => { return ( @@ -90,6 +98,8 @@ export const CardItem: React.FC> = ({ value={value} color={color} linkComponent={linkComponent} + seeMoreText={seeMoreText} + seeLessText={seeLessText} /> ) : ( > = ({ icon, title, description, - buttonTitle = 'view your portfolio', + buttonTitle, open, onClose, onButtonClick, @@ -117,6 +127,10 @@ const TxModal: React.FC> = ({ linkComponent, buttonLink, socialItems, + blockchainRecordText, + seeMoreText, + seeLessText, + shareTitle, }) => { const { classes: styles } = useStyles(); const hasCardItems = !!cardItems && cardItems.length > 0; @@ -166,13 +180,21 @@ const TxModal: React.FC> = ({ > {cardTitle} {cardItems?.map((item, i) => ( - + ))} {txHash && ( )} @@ -185,8 +207,12 @@ const TxModal: React.FC> = ({ > {buttonTitle} - {socialItems && ( - + {socialItems && shareTitle && ( + )} ); diff --git a/web-components/src/components/modal/TxSuccessfulModal.tsx b/web-components/src/components/modal/TxSuccessfulModal.tsx index 0ba86eeee1..08ac25f15f 100644 --- a/web-components/src/components/modal/TxSuccessfulModal.tsx +++ b/web-components/src/components/modal/TxSuccessfulModal.tsx @@ -4,7 +4,7 @@ import CelebrateRegenIcon from '../icons/CelebrateRegenIcon'; import { TxModal, TxModalProps } from './TxModal'; export interface TxSuccessfulModalProps extends TxModalProps { - title?: string; + title: string; } const TxSuccessfulModal: React.FC = props => { @@ -12,7 +12,7 @@ const TxSuccessfulModal: React.FC = props => { } - title={props?.title ?? 'Congrats! Your transaction was successful.'} + title={props?.title} /> ); }; diff --git a/web-components/src/components/modal/add-wallet-modal/AddWalletModalConnect.constants.tsx b/web-components/src/components/modal/add-wallet-modal/AddWalletModalConnect.constants.tsx deleted file mode 100644 index a4e9cd0ece..0000000000 --- a/web-components/src/components/modal/add-wallet-modal/AddWalletModalConnect.constants.tsx +++ /dev/null @@ -1,2 +0,0 @@ -export const TITLE = 'Connect wallet address'; -export const SUBTITLE = 'Check your wallet for a confirmation popup.'; diff --git a/web-components/src/components/modal/add-wallet-modal/AddWalletModalConnect.stories.tsx b/web-components/src/components/modal/add-wallet-modal/AddWalletModalConnect.stories.tsx deleted file mode 100644 index 2f22bacc26..0000000000 --- a/web-components/src/components/modal/add-wallet-modal/AddWalletModalConnect.stories.tsx +++ /dev/null @@ -1,29 +0,0 @@ -import { useState } from 'react'; -import { ComponentMeta, ComponentStory } from '@storybook/react'; - -import { truncate } from '../../../utils/truncate'; -import { AddWalletModalConnect } from './AddWalletModalConnect'; - -export default { - title: 'Modal/AddWalletModalConnect', - component: AddWalletModalConnect, -} as ComponentMeta; - -const Template: ComponentStory = args => { - const [open, setOpen] = useState(true); - const onClose = () => { - setOpen(false); - }; - - return ; -}; - -export const Default = Template.bind({}); - -Default.args = { - partyInfo: { - name: 'unnamed', - addr: truncate('regen1df675r9vnf7pdedn4sf26svdsem3ugavgxmy46'), - profileImage: '/illustrations/frog.jpg', - }, -}; diff --git a/web-components/src/components/modal/add-wallet-modal/AddWalletModalConnect.tsx b/web-components/src/components/modal/add-wallet-modal/AddWalletModalConnect.tsx deleted file mode 100644 index 0eab2ecab5..0000000000 --- a/web-components/src/components/modal/add-wallet-modal/AddWalletModalConnect.tsx +++ /dev/null @@ -1,18 +0,0 @@ -import { RegenModalProps } from '..'; -import { SUBTITLE, TITLE } from './AddWalletModalConnect.constants'; -import { AddWalletModalTemplate } from './AddWalletModalTemplate'; - -export interface AddWalletModalConnectProps extends RegenModalProps { - partyInfo?: { - addr: string; - name: string; - profileImage: string; - }; -} -const AddWalletModalConnect: React.FC< - React.PropsWithChildren -> = props => ( - -); - -export { AddWalletModalConnect }; diff --git a/web-components/src/components/modal/add-wallet-modal/AddWalletModalRemove.constants.tsx b/web-components/src/components/modal/add-wallet-modal/AddWalletModalRemove.constants.tsx deleted file mode 100644 index e45c608041..0000000000 --- a/web-components/src/components/modal/add-wallet-modal/AddWalletModalRemove.constants.tsx +++ /dev/null @@ -1,4 +0,0 @@ -export const TITLE = - 'This address is already linked to another account. Remove it from that account and connect it to yours?'; -export const SUBTITLE = 'Check your wallet for a confirmation popup.'; -export const BUTTON_LABEL = 'yes, remove & connect'; diff --git a/web-components/src/components/modal/add-wallet-modal/AddWalletModalRemove.stories.tsx b/web-components/src/components/modal/add-wallet-modal/AddWalletModalRemove.stories.tsx deleted file mode 100644 index 9636740f5f..0000000000 --- a/web-components/src/components/modal/add-wallet-modal/AddWalletModalRemove.stories.tsx +++ /dev/null @@ -1,33 +0,0 @@ -import { useState } from 'react'; -import { ComponentMeta, ComponentStory } from '@storybook/react'; - -import { truncate } from '../../../utils/truncate'; -import { AddWalletModalRemove } from './AddWalletModalRemove'; - -export default { - title: 'Modal/AddWalletModalRemove', - component: AddWalletModalRemove, - argTypes: { - onClick: { action: 'clicked' }, - onCancel: { action: 'cancelled' }, - }, -} as ComponentMeta; - -const Template: ComponentStory = args => { - const [open, setOpen] = useState(true); - const onClose = () => { - setOpen(false); - }; - - return ; -}; - -export const Default = Template.bind({}); - -Default.args = { - partyInfo: { - name: 'unnamed', - addr: truncate('regen1df675r9vnf7pdedn4sf26svdsem3ugavgxmy46'), - profileImage: '/illustrations/frog.jpg', - }, -}; diff --git a/web-components/src/components/modal/add-wallet-modal/AddWalletModalRemove.tsx b/web-components/src/components/modal/add-wallet-modal/AddWalletModalRemove.tsx deleted file mode 100644 index 2c247a1d90..0000000000 --- a/web-components/src/components/modal/add-wallet-modal/AddWalletModalRemove.tsx +++ /dev/null @@ -1,33 +0,0 @@ -import { Box } from '@mui/material'; - -import { - CancelButtonFooter, - Props as CancelButtonFooterProps, -} from '../../organisms/CancelButtonFooter/CancelButtonFooter'; -import { AddWalletModalConnectProps } from './AddWalletModalConnect'; -import { - BUTTON_LABEL, - SUBTITLE, - TITLE, -} from './AddWalletModalRemove.constants'; -import { AddWalletModalTemplate } from './AddWalletModalTemplate'; - -export interface AddWalletModalRemoveProps - extends AddWalletModalConnectProps, - Omit {} - -const AddWalletModalRemove: React.FC< - React.PropsWithChildren -> = ({ onClick, onCancel, ...props }) => ( - - - - - -); - -export { AddWalletModalRemove }; diff --git a/web-components/src/components/modal/add-wallet-modal/AddWalletModalSwitch.constants.tsx b/web-components/src/components/modal/add-wallet-modal/AddWalletModalSwitch.constants.tsx deleted file mode 100644 index 7714014d78..0000000000 --- a/web-components/src/components/modal/add-wallet-modal/AddWalletModalSwitch.constants.tsx +++ /dev/null @@ -1,4 +0,0 @@ -export const TITLE = - 'Switch wallet addresses in Keplr to add another address to your account'; -export const SUBTITLE = - 'The current address is already linked to your account.\nPlease first switch wallet addresses in the Keplr app to be able to add another address to your account.'; diff --git a/web-components/src/components/modal/add-wallet-modal/AddWalletModalSwitch.stories.tsx b/web-components/src/components/modal/add-wallet-modal/AddWalletModalSwitch.stories.tsx deleted file mode 100644 index 72bd320fee..0000000000 --- a/web-components/src/components/modal/add-wallet-modal/AddWalletModalSwitch.stories.tsx +++ /dev/null @@ -1,20 +0,0 @@ -import { useState } from 'react'; -import { ComponentMeta, ComponentStory } from '@storybook/react'; - -import { AddWalletModalSwitch } from './AddWalletModalSwitch'; - -export default { - title: 'Modal/AddWalletModalSwitch', - component: AddWalletModalSwitch, -} as ComponentMeta; - -const Template: ComponentStory = args => { - const [open, setOpen] = useState(true); - const onClose = () => { - setOpen(false); - }; - - return ; -}; - -export const Default = Template.bind({}); diff --git a/web-components/src/components/modal/add-wallet-modal/AddWalletModalSwitch.tsx b/web-components/src/components/modal/add-wallet-modal/AddWalletModalSwitch.tsx deleted file mode 100644 index 703f6c86c1..0000000000 --- a/web-components/src/components/modal/add-wallet-modal/AddWalletModalSwitch.tsx +++ /dev/null @@ -1,10 +0,0 @@ -import { RegenModalProps } from '..'; -import { SUBTITLE, TITLE } from './AddWalletModalSwitch.constants'; -import { AddWalletModalTemplate } from './AddWalletModalTemplate'; - -const AddWalletModalSwitch: React.FC> = - props => ( - - ); - -export { AddWalletModalSwitch }; diff --git a/web-components/src/components/modal/add-wallet-modal/AddWalletModalSwitchWarning.constants.tsx b/web-components/src/components/modal/add-wallet-modal/AddWalletModalSwitchWarning.constants.tsx deleted file mode 100644 index 05e3589d07..0000000000 --- a/web-components/src/components/modal/add-wallet-modal/AddWalletModalSwitchWarning.constants.tsx +++ /dev/null @@ -1,2 +0,0 @@ -export const TITLE = - 'Please switch to this address in Keplr to access this profile.'; diff --git a/web-components/src/components/modal/add-wallet-modal/AddWalletModalSwitchWarning.stories.tsx b/web-components/src/components/modal/add-wallet-modal/AddWalletModalSwitchWarning.stories.tsx index 2b9c798fb7..7153b64cb7 100644 --- a/web-components/src/components/modal/add-wallet-modal/AddWalletModalSwitchWarning.stories.tsx +++ b/web-components/src/components/modal/add-wallet-modal/AddWalletModalSwitchWarning.stories.tsx @@ -15,7 +15,13 @@ const Template: ComponentStory = args => { setTimeout(() => setOpen(true), 1000); }; - return ; + return ( + + ); }; export const Default = Template.bind({}); diff --git a/web-components/src/components/modal/add-wallet-modal/AddWalletModalSwitchWarning.tsx b/web-components/src/components/modal/add-wallet-modal/AddWalletModalSwitchWarning.tsx index dcb7fad513..a839bc59c3 100644 --- a/web-components/src/components/modal/add-wallet-modal/AddWalletModalSwitchWarning.tsx +++ b/web-components/src/components/modal/add-wallet-modal/AddWalletModalSwitchWarning.tsx @@ -1,9 +1,15 @@ import { RegenModalProps } from '..'; -import { TITLE } from './AddWalletModalSwitchWarning.constants'; import { AddWalletModalTemplate } from './AddWalletModalTemplate'; -const AddWalletModalSwitchWarning: React.FC< - React.PropsWithChildren -> = props => ; +type Props = RegenModalProps & { + title: string; + subtitle?: string; +}; + +const AddWalletModalSwitchWarning: React.FC> = ({ + title, + subtitle, + ...props +}) => ; export { AddWalletModalSwitchWarning }; diff --git a/web-components/src/components/modal/add-wallet-modal/AddWalletModalTemplate.tsx b/web-components/src/components/modal/add-wallet-modal/AddWalletModalTemplate.tsx index b2ec70d407..2c37d8cb8c 100644 --- a/web-components/src/components/modal/add-wallet-modal/AddWalletModalTemplate.tsx +++ b/web-components/src/components/modal/add-wallet-modal/AddWalletModalTemplate.tsx @@ -3,13 +3,16 @@ import { Box, Grid } from '@mui/material'; import Card from '../../cards/Card'; import { Body, Title } from '../../typography'; import UserAvatar from '../../user/UserAvatar'; -import Modal from '..'; -import { AddWalletModalConnectProps } from './AddWalletModalConnect'; +import Modal, { RegenModalProps } from '..'; -export interface AddWalletModalTemplateProps - extends AddWalletModalConnectProps { +export interface AddWalletModalTemplateProps extends RegenModalProps { title: string; subtitle?: string; + partyInfo?: { + addr: string; + name: string; + profileImage: string; + }; } const AddWalletModalTemplate: React.FC< diff --git a/web-components/src/components/modal/keplr-wallet-connect-modal/KeplrWalletConnectModal.constants.ts b/web-components/src/components/modal/keplr-wallet-connect-modal/KeplrWalletConnectModal.constants.ts deleted file mode 100644 index 1a1685cd73..0000000000 --- a/web-components/src/components/modal/keplr-wallet-connect-modal/KeplrWalletConnectModal.constants.ts +++ /dev/null @@ -1,4 +0,0 @@ -export const KEPLR_WALLET_CONNECT_TITLE = - 'You must connect a Keplr wallet address to your existing account in order to view this content.'; -export const KEPLR_WALLET_CONNECT_SUBTITLE = - 'Blockchain-based actions such as buying are only possible with a wallet address. Please set up a Keplr wallet in order to continue. '; diff --git a/web-components/src/components/modal/keplr-wallet-connect-modal/KeplrWalletConnectModal.stories.tsx b/web-components/src/components/modal/keplr-wallet-connect-modal/KeplrWalletConnectModal.stories.tsx index 657d499401..5d8522366f 100644 --- a/web-components/src/components/modal/keplr-wallet-connect-modal/KeplrWalletConnectModal.stories.tsx +++ b/web-components/src/components/modal/keplr-wallet-connect-modal/KeplrWalletConnectModal.stories.tsx @@ -34,6 +34,11 @@ export const Basic: Story = { /> ), }, + title: + 'You must connect a Keplr wallet address to your existing account in order to view this content.', + subtitle: + 'Blockchain-based actions such as buying are only possible with a wallet address. Please set up a Keplr wallet in order to continue. ', + learnMoreText: 'Learn how to ', }, render: args => { const [open, setOpen] = useState(true); diff --git a/web-components/src/components/modal/keplr-wallet-connect-modal/KeplrWalletConnectModal.tsx b/web-components/src/components/modal/keplr-wallet-connect-modal/KeplrWalletConnectModal.tsx index b49eff6321..b1deb2058a 100644 --- a/web-components/src/components/modal/keplr-wallet-connect-modal/KeplrWalletConnectModal.tsx +++ b/web-components/src/components/modal/keplr-wallet-connect-modal/KeplrWalletConnectModal.tsx @@ -6,14 +6,13 @@ import { ButtonType } from '../../../types/shared/buttonType'; import { LinkType } from '../../../types/shared/linkType'; import { Body, Title } from '../../typography'; import Modal, { RegenModalProps } from '..'; -import { - KEPLR_WALLET_CONNECT_SUBTITLE, - KEPLR_WALLET_CONNECT_TITLE, -} from './KeplrWalletConnectModal.constants'; export interface KeplrWalletConnectModalProps extends RegenModalProps { helpLink: LinkType; button: ButtonType; + title: string; + subtitle: string; + learnMoreText: string; } const KeplrWalletConnectModal = ({ @@ -21,6 +20,9 @@ const KeplrWalletConnectModal = ({ helpLink, button, onClose, + title, + subtitle, + learnMoreText, }: KeplrWalletConnectModalProps) => { const { text, disabled, onClick, startIcon } = button; @@ -41,13 +43,13 @@ const KeplrWalletConnectModal = ({ }} /> - {KEPLR_WALLET_CONNECT_TITLE} + {title} - {KEPLR_WALLET_CONNECT_SUBTITLE} + {subtitle} - {'Learn how to '} + {`${learnMoreText} `} {helpLink.text} diff --git a/web-components/src/components/modal/modal.stories.tsx b/web-components/src/components/modal/modal.stories.tsx index e2ee4b4402..8506b4809b 100644 --- a/web-components/src/components/modal/modal.stories.tsx +++ b/web-components/src/components/modal/modal.stories.tsx @@ -127,7 +127,12 @@ export const cropRoundImageModal = (): JSX.Element => ( ); export const processingModal = (): JSX.Element => ( - {}} /> + {}} + title="Processing" + bodyText="Processing" + /> ); export const confirmModal = (): JSX.Element => ( ( 'Visit this link to view the transaction.' } socialItems={SocialItemsMock} + title="Put in basket" + buttonTitle="View on portfolio" + blockchainRecordText="Blockchain record" + seeMoreText="+ see more" + seeLessText="- see less" /> ); export const txErrorModal = (): JSX.Element => ( @@ -177,6 +187,10 @@ export const txErrorModal = (): JSX.Element => ( txHash="3F7EFAA3BBD0F4109094FEDA0D06B7E2C4C57A4720D591A1FACD42FC7E2C2583" txHashUrl="https://redwood.regen.aneka.io/txs/3F7EFAA3BBD0F4109094FEDA0D06B7E2C4C57A4720D591A1FACD42FC7E2C2583" error="Lorem ipsum dolor sit apsicing sit amut." + buttonTitle="View on portfolio" + blockchainRecordText="Blockchain record" + seeMoreText="+ see more" + seeLessText="- see less" /> ); @@ -260,5 +274,8 @@ export const saveChangesWarningModal = (): JSX.Element => ( open={true} onClose={() => null} navigate={() => null} + title="Save changes" + bodyText="Are you sure you want to save changes?" + buttonText="Save" /> ); diff --git a/web-components/src/components/organisms/CollapseList/CollapseList.stories.tsx b/web-components/src/components/organisms/CollapseList/CollapseList.stories.tsx index 93db89aa01..572e599c74 100644 --- a/web-components/src/components/organisms/CollapseList/CollapseList.stories.tsx +++ b/web-components/src/components/organisms/CollapseList/CollapseList.stories.tsx @@ -18,4 +18,6 @@ export const Default = Template.bind({}); Default.args = { items: [...Array(10).keys()].map(k =>
{k}
), + seeMoreText: '+ see more', + seeLessText: '- see less', }; diff --git a/web-components/src/components/organisms/CollapseList/CollapseList.tsx b/web-components/src/components/organisms/CollapseList/CollapseList.tsx index 4fa4b5a299..56f5d8eea8 100644 --- a/web-components/src/components/organisms/CollapseList/CollapseList.tsx +++ b/web-components/src/components/organisms/CollapseList/CollapseList.tsx @@ -5,16 +5,14 @@ import { Theme } from '../../../theme/muiTheme'; import { sxToArray } from '../../../utils/mui/sxToArray'; import { TextButton } from '../../buttons/TextButton'; import { LabelSize } from '../../typography/sizing'; -import { - DEFAULT_COLLAPSED_ITEMS, - SEE_LESS, - SEE_MORE, -} from './CollapseList.constants'; +import { DEFAULT_COLLAPSED_ITEMS } from './CollapseList.constants'; type Props = { items: JSX.Element[]; max?: number; buttonTextSize?: LabelSize; + seeMoreText: string; + seeLessText: string; sx?: SxProps; }; @@ -22,6 +20,8 @@ export const CollapseList = ({ items, max = DEFAULT_COLLAPSED_ITEMS, buttonTextSize = 'xs', + seeMoreText, + seeLessText, sx, }: Props): JSX.Element | null => { const [expanded, setExpanded] = useState(false); @@ -48,7 +48,7 @@ export const CollapseList = ({ ':hover': { bgcolor: 'transparent' }, }} > - {expanded ? `${SEE_LESS}` : `${SEE_MORE}`} + {expanded ? `${seeLessText}` : `${seeMoreText}`}
); diff --git a/web-components/src/components/organisms/Gallery/Gallery.BottomBar.tsx b/web-components/src/components/organisms/Gallery/Gallery.BottomBar.tsx index b7d0dad7b5..b42b748297 100644 --- a/web-components/src/components/organisms/Gallery/Gallery.BottomBar.tsx +++ b/web-components/src/components/organisms/Gallery/Gallery.BottomBar.tsx @@ -14,6 +14,7 @@ type Props = { items: GalleryItem[]; itemIndex: number; page: number; + photoCredit: string; setPage: UseStateSetter<[number, number]>; }; @@ -21,6 +22,7 @@ export const GalleryBottomBar = ({ items, itemIndex, page, + photoCredit, setPage, }: Props) => { const [isShowMore, setIsShowMore] = useState(false); @@ -132,7 +134,7 @@ export const GalleryBottomBar = ({ component="span" sx={{ display: 'inline-block', fontWeight: 300 }} > - Photo credit: {credit} + {`${photoCredit}: ${credit}`} )} diff --git a/web-components/src/components/organisms/Gallery/Gallery.tsx b/web-components/src/components/organisms/Gallery/Gallery.tsx index 0b2ad31524..da4d745c19 100644 --- a/web-components/src/components/organisms/Gallery/Gallery.tsx +++ b/web-components/src/components/organisms/Gallery/Gallery.tsx @@ -31,6 +31,7 @@ export interface Props { sx?: SxProps; allImages?: boolean; className?: { root?: string; container?: string }; + photoCredit: string; pdfPageHeight?: number; filesPreviews?: FilesPreviews; } @@ -40,6 +41,7 @@ const Gallery = ({ sx, allImages, className, + photoCredit, pdfPageHeight, filesPreviews, }: Props) => { @@ -164,6 +166,7 @@ const Gallery = ({ itemIndex={itemIndex} page={page} setPage={setPage} + photoCredit={photoCredit} /> ); diff --git a/web-components/src/components/organisms/ImpactTags/ImpactTags.tsx b/web-components/src/components/organisms/ImpactTags/ImpactTags.tsx index 3969a93538..6c4af79c3d 100644 --- a/web-components/src/components/organisms/ImpactTags/ImpactTags.tsx +++ b/web-components/src/components/organisms/ImpactTags/ImpactTags.tsx @@ -18,7 +18,10 @@ export interface Props { ecosystems?: ProjectTagType[]; impact: ProjectImpactCardProps[]; sx?: SxProps; - activitiesLabel?: string; + activitiesLabel: string; + ecosystemLabel: string; + seeMoreText: string; + seeLessText: string; } const ImpactTags = ({ @@ -27,6 +30,9 @@ const ImpactTags = ({ impact, sx, activitiesLabel, + ecosystemLabel, + seeMoreText, + seeLessText, }: Props) => { const isImpactCollapsed = impact.length > DEFAULT_COLLAPSED_ITEMS; return ( @@ -55,6 +61,8 @@ const ImpactTags = ({ ))} + seeMoreText={seeMoreText} + seeLessText={seeLessText} /> {(activities || ecosystems) && ( @@ -65,6 +73,7 @@ const ImpactTags = ({ mb: { xs: 7.5, sm: 10 }, }} activitiesLabel={activitiesLabel} + ecosystemLabel={ecosystemLabel} /> )} diff --git a/web-components/src/components/organisms/PostFiles/PostFiles.PrivateFiles.tsx b/web-components/src/components/organisms/PostFiles/PostFiles.PrivateFiles.tsx index 8ff436fafa..ff988388eb 100644 --- a/web-components/src/components/organisms/PostFiles/PostFiles.PrivateFiles.tsx +++ b/web-components/src/components/organisms/PostFiles/PostFiles.PrivateFiles.tsx @@ -1,9 +1,13 @@ import { OtherDocumentsIcon } from '../../icons/OtherDocumentsIcon'; import { Tag } from './components/Tag'; -const PostFilesPrivateFiles = () => ( +type Props = { + label: string; +}; + +const PostFilesPrivateFiles = ({ label }: Props) => ( } /> ); diff --git a/web-components/src/components/organisms/PostFiles/PostFiles.PrivateLocations.tsx b/web-components/src/components/organisms/PostFiles/PostFiles.PrivateLocations.tsx index b2a1a6d418..21bfa54d17 100644 --- a/web-components/src/components/organisms/PostFiles/PostFiles.PrivateLocations.tsx +++ b/web-components/src/components/organisms/PostFiles/PostFiles.PrivateLocations.tsx @@ -7,16 +7,25 @@ import { Tag } from './components/Tag'; import { PostFilesProps } from './PostFiles'; import { FilesPreviews } from './PostFiles.types'; -type Props = Pick & { filesPreviews: FilesPreviews }; +type Props = Pick & { + filesPreviews: FilesPreviews; + photoCredit: string; + label: string; +}; -const PostFilesPrivateLocations = ({ files, filesPreviews }: Props) => { +const PostFilesPrivateLocations = ({ + files, + filesPreviews, + photoCredit, + label, +}: Props) => { const theme = useTheme(); const mobile = useMediaQuery(theme.breakpoints.down('sm')); return (
} /> { filesPreviews={filesPreviews} className={{ root: 'h-[100%]' }} pdfPageHeight={mobile ? 340 : 550} + photoCredit={photoCredit} />
); diff --git a/web-components/src/components/organisms/PostFiles/PostFiles.Public.tsx b/web-components/src/components/organisms/PostFiles/PostFiles.Public.tsx index a22b6d44c1..4b08eaea50 100644 --- a/web-components/src/components/organisms/PostFiles/PostFiles.Public.tsx +++ b/web-components/src/components/organisms/PostFiles/PostFiles.Public.tsx @@ -40,6 +40,7 @@ type Props = Pick & { privateFiles: boolean; privateLocations: boolean; filesPreviews: FilesPreviews; + adminPrivateLabel: string; }; const PostFilesPublic = ({ @@ -49,6 +50,7 @@ const PostFilesPublic = ({ privateFiles, privateLocations, filesPreviews, + adminPrivateLabel, }: Props) => { const { classes: styles } = useStyles(); const theme = useTheme(); @@ -276,7 +278,7 @@ const PostFilesPublic = ({ } - label={`${privateLocations ? 'Locations' : 'Files'} are private`} + label={adminPrivateLabel} /> )} diff --git a/web-components/src/components/organisms/PostFiles/PostFiles.mock.ts b/web-components/src/components/organisms/PostFiles/PostFiles.mock.ts index b1ef48c2d9..c085771318 100644 --- a/web-components/src/components/organisms/PostFiles/PostFiles.mock.ts +++ b/web-components/src/components/organisms/PostFiles/PostFiles.mock.ts @@ -1,5 +1,7 @@ import { Point } from 'geojson'; +import { FileLocationType } from './PostFiles'; + const location1: Point = { type: 'Point', coordinates: [-74.01592482325455, 40.68983643942107], @@ -23,6 +25,7 @@ export const files = [ 'Far far away, behind the word mountains, far from the countries lorem ipsum dolor sit apsicing Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim ven.', location: location1, mimeType: 'image/jpeg', + locationType: 'public' as FileLocationType, }, { iri: 'regen:123.webm', @@ -31,6 +34,7 @@ export const files = [ description: 'video with a short description', location: location2, mimeType: 'video/webm', + locationType: 'public' as FileLocationType, }, { iri: 'regen:123.mp4', @@ -38,6 +42,7 @@ export const files = [ name: 'audio-file.mp4', location: location2, mimeType: 'audio/mp4', + locationType: 'public' as FileLocationType, }, { iri: 'regen:123.csv', @@ -46,13 +51,14 @@ export const files = [ description: 'csv with a short description', location: location2, mimeType: 'text/csv', + locationType: 'public' as FileLocationType, }, { iri: 'regen:123.json', url: '/json-file.json', name: 'json-file.json', location: location2, - locationType: 'none', + locationType: 'public' as FileLocationType, mimeType: 'application/json', }, { @@ -61,6 +67,7 @@ export const files = [ name: 'image-no-description.jpg', location: location1, mimeType: 'image/png', + locationType: 'public' as FileLocationType, }, { iri: 'regen:123.pdf', @@ -68,6 +75,7 @@ export const files = [ name: 'pdf-file.pdf', location: location3, mimeType: 'application/pdf', + locationType: 'public' as FileLocationType, }, { iri: 'regen:123.bin', @@ -76,6 +84,7 @@ export const files = [ location: location3, mimeType: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', + locationType: 'public' as FileLocationType, }, { iri: 'regen:456.bin', @@ -84,5 +93,6 @@ export const files = [ location: location3, mimeType: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', + locationType: 'public' as FileLocationType, }, ]; diff --git a/web-components/src/components/organisms/PostFiles/PostFiles.stories.tsx b/web-components/src/components/organisms/PostFiles/PostFiles.stories.tsx index ce978c8877..9db26892b3 100644 --- a/web-components/src/components/organisms/PostFiles/PostFiles.stories.tsx +++ b/web-components/src/components/organisms/PostFiles/PostFiles.stories.tsx @@ -17,7 +17,8 @@ export const Public: Story = { Public.args = { privacyType: 'public', mapboxToken: import.meta.env.STORYBOOK_MAPBOX_TOKEN, - files: [], + files, + photoCredit: 'Photo credit', }; export const PrivateLocations: Story = { diff --git a/web-components/src/components/organisms/PostFiles/PostFiles.tsx b/web-components/src/components/organisms/PostFiles/PostFiles.tsx index ca7fd141f7..af6f69d89e 100644 --- a/web-components/src/components/organisms/PostFiles/PostFiles.tsx +++ b/web-components/src/components/organisms/PostFiles/PostFiles.tsx @@ -25,6 +25,10 @@ export type PostFilesProps = { mapboxToken?: string; isAdmin: boolean; hasToken?: boolean; + photoCredit: string; + adminPrivateLabel: string; + privateLocationsLabel: string; + privateFilesLabel: string; }; const PostFiles = ({ @@ -33,6 +37,10 @@ const PostFiles = ({ mapboxToken, isAdmin = false, hasToken = false, + photoCredit, + adminPrivateLabel, + privateLocationsLabel, + privateFilesLabel, }: PostFilesProps) => { const isPublic = privacyType === 'public'; const privateLocations = privacyType === 'private_locations'; @@ -72,15 +80,20 @@ const PostFiles = ({ isAdmin={isAdmin} privateLocations={privateLocations} privateFiles={privateFiles} + adminPrivateLabel={adminPrivateLabel} /> )} {!isAdmin && !hasToken && privateLocations && ( )} - {!isAdmin && !hasToken && privateFiles && } + {!isAdmin && !hasToken && privateFiles && ( + + )} ); }; diff --git a/web-components/src/components/organisms/ProfileHeader/ProfileHeader.constants.tsx b/web-components/src/components/organisms/ProfileHeader/ProfileHeader.constants.tsx index b395feb214..dd0cc701e8 100644 --- a/web-components/src/components/organisms/ProfileHeader/ProfileHeader.constants.tsx +++ b/web-components/src/components/organisms/ProfileHeader/ProfileHeader.constants.tsx @@ -13,11 +13,6 @@ export const PROFILE_AVATAR_MARGIN_TOP_TABLET = (PROFILE_BG_HEIGHT_DESKTOP - PROFILE_AVATAR_SIZE_TABLET / 2) / 4; export const PROFILE_AVATAR_MARGIN_TOP_DESKTOP = (PROFILE_BG_HEIGHT_DESKTOP - PROFILE_AVATAR_SIZE_DESKTOP / 2) / 4; - -export const EDIT_PROFILE = 'Edit Profile'; -export const COPY_PROFILE = 'Copy link to profile'; -export const COPY_SUCCESS = 'Link copied!'; - export const ProfileVariantIconMapping: { [key in ProfileVariant]: JSX.Element; } = { diff --git a/web-components/src/components/organisms/ProfileHeader/ProfileHeader.tsx b/web-components/src/components/organisms/ProfileHeader/ProfileHeader.tsx index 7438c7d5bb..7483575704 100644 --- a/web-components/src/components/organisms/ProfileHeader/ProfileHeader.tsx +++ b/web-components/src/components/organisms/ProfileHeader/ProfileHeader.tsx @@ -12,9 +12,6 @@ import { Theme } from '../../../theme/muiTheme'; import { LinkComponentType } from '../../../types/shared/linkComponentType'; import copyTextToClipboard from '../../../utils/copy'; import { - COPY_PROFILE, - COPY_SUCCESS, - EDIT_PROFILE, PROFILE_AVATAR_MARGIN_TOP_DESKTOP, PROFILE_AVATAR_MARGIN_TOP_MOBILE, PROFILE_AVATAR_MARGIN_TOP_TABLET, @@ -35,6 +32,11 @@ export interface Props { infos: ProfileInfos; editLink: string; profileLink: string; + editProfileText: string; + copyProfileText: string; + copySuccessText: string; + altBackgroundImage: string; + altAvatar: string; LinkComponent: LinkComponentType; sx?: SxProps; } @@ -47,6 +49,11 @@ const ProfileHeader = ({ variant, editLink, profileLink, + editProfileText, + copyProfileText, + copySuccessText, + altBackgroundImage, + altAvatar, LinkComponent, sx = [], }: Props): JSX.Element => { @@ -66,7 +73,7 @@ const ProfileHeader = ({ > {showProfileLinkSuccessBanner && ( { setShowProfileLinkSuccessBanner(false); }} @@ -97,7 +104,7 @@ const ProfileHeader = ({ - {EDIT_PROFILE} + {editProfileText} )} {profileLink !== '' && ( - + ; activitiesLabel?: string; + ecosystemLabel: string; } const ProjectTags = ({ activities = [], ecosystems = [], sx = [], - activitiesLabel = PROJECT_ACTIVITY_LABEL, + activitiesLabel, + ecosystemLabel, }: Props): JSX.Element => { const hasActivities = activities.length > 0; const hasManyActivities = activities.length > 1; @@ -74,7 +72,7 @@ const ProjectTags = ({ )} {hasEcosystems && ( - + > = ({ formContainer = false, - exampleProjectUrl, + exampleProjectChildren, classes, title, description, @@ -87,14 +87,7 @@ const OnBoardingSection: React.FC< !!classes && classes.formWrap, )} > - {exampleProjectUrl && ( - - See an example{' '} - - project page» - - - )} + {exampleProjectChildren ? exampleProjectChildren : null} {children} diff --git a/web-components/src/components/seo/index.tsx b/web-components/src/components/seo/index.tsx index 67546e5e6a..d7dae22839 100644 --- a/web-components/src/components/seo/index.tsx +++ b/web-components/src/components/seo/index.tsx @@ -1,3 +1,4 @@ +/* eslint-disable lingui/no-unlocalized-strings */ import React from 'react'; import { Helmet } from 'react-helmet'; diff --git a/web-components/src/components/share-section/ShareSection.constants.ts b/web-components/src/components/share-section/ShareSection.constants.ts deleted file mode 100644 index b21f149259..0000000000 --- a/web-components/src/components/share-section/ShareSection.constants.ts +++ /dev/null @@ -1 +0,0 @@ -export const SHARE_DEFAULT_TITLE = 'Share'; diff --git a/web-components/src/components/share-section/ShareSection.tsx b/web-components/src/components/share-section/ShareSection.tsx index 5f0748d487..6562076fbd 100644 --- a/web-components/src/components/share-section/ShareSection.tsx +++ b/web-components/src/components/share-section/ShareSection.tsx @@ -1,7 +1,6 @@ import { Box, BoxProps, Link } from '@mui/material'; import { Subtitle } from '../typography'; -import { SHARE_DEFAULT_TITLE } from './ShareSection.constants'; import { ShareItem } from './ShareSection.Item'; import { SocialItems } from './ShareSection.types'; @@ -10,12 +9,7 @@ export interface Props extends BoxProps { items: SocialItems; } -const ShareSection = ({ - title = SHARE_DEFAULT_TITLE, - items, - sx, - ...props -}: Props): JSX.Element => { +const ShareSection = ({ title, items, sx, ...props }: Props): JSX.Element => { return ( ()( ); function getThumbnailStyle(thumbsTranslate: number): object { + // eslint-disable-next-line lingui/no-unlocalized-strings const translate: string = `translate(${thumbsTranslate}px, 0)`; return { WebkitTransform: translate, diff --git a/web-components/src/components/sliders/ResponsiveSlider.Header.tsx b/web-components/src/components/sliders/ResponsiveSlider.Header.tsx index 4563158f25..fb3ea59f4a 100644 --- a/web-components/src/components/sliders/ResponsiveSlider.Header.tsx +++ b/web-components/src/components/sliders/ResponsiveSlider.Header.tsx @@ -4,8 +4,8 @@ import useMediaQuery from '@mui/material/useMediaQuery'; import PrevNextButton from '../buttons/PrevNextButton'; import { Title } from '../typography'; -import { useStyles } from './ResponsiveSlider.Header.styles'; import { ResponsiveSliderProps } from './ResponsiveSlider'; +import { useStyles } from './ResponsiveSlider.Header.styles'; type Props = { slickPrev: () => void; diff --git a/web-components/src/components/sliders/ResponsiveSlider.tsx b/web-components/src/components/sliders/ResponsiveSlider.tsx index b523d1e349..f75b30e902 100644 --- a/web-components/src/components/sliders/ResponsiveSlider.tsx +++ b/web-components/src/components/sliders/ResponsiveSlider.tsx @@ -4,10 +4,10 @@ import { useTheme } from '@mui/material'; import { Variant } from '@mui/material/styles/createTypography'; import useMediaQuery from '@mui/material/useMediaQuery'; -import { useStyles } from './ResponsiveSlider.styles'; import { cn } from '../../utils/styles/cn'; import { Root } from '../section'; import { Header } from './ResponsiveSlider.Header'; +import { useStyles } from './ResponsiveSlider.styles'; export interface ResponsiveSliderProps { items?: JSX.Element[]; diff --git a/web-components/src/components/table/ActionsTable.tsx b/web-components/src/components/table/ActionsTable.tsx index 407bc77d33..e103ee81e8 100644 --- a/web-components/src/components/table/ActionsTable.tsx +++ b/web-components/src/components/table/ActionsTable.tsx @@ -66,6 +66,7 @@ interface ActionsTableProps { initialPaginationParams?: TablePaginationParams; sortCallbacks?: SortCallbacksType; isIgnoreOffset?: boolean; + actionButtonsText: string; sx?: { root?: SxProps; }; @@ -80,6 +81,7 @@ const ActionsTable: React.FC> = ({ initialPaginationParams = DEFAULT_TABLE_PAGINATION_PARAMS, sortCallbacks = [], isIgnoreOffset = false, + actionButtonsText, sx, }) => { const { @@ -195,7 +197,7 @@ const ActionsTable: React.FC> = ({ > - Actions + {actionButtonsText} )} diff --git a/web-components/src/components/table/DocumentationTable/DocumentationTable.mock.ts b/web-components/src/components/table/DocumentationTable/DocumentationTable.mock.ts new file mode 100644 index 0000000000..9f9d645246 --- /dev/null +++ b/web-components/src/components/table/DocumentationTable/DocumentationTable.mock.ts @@ -0,0 +1,9 @@ +/* eslint-disable lingui/no-unlocalized-strings */ +import { HeadCell } from './DocumentationTable'; + +export const DOCUMENTATION_HEAD_CELLS: HeadCell[] = [ + { id: 'name', numeric: false, label: 'Name of document' }, + { id: 'type', numeric: true, label: 'Document type' }, + { id: 'date', numeric: true, label: 'Date of upload' }, + { id: 'url', numeric: true, label: '' }, +]; diff --git a/web-components/src/components/table/DocumentationTable/DocumentationTable.tsx b/web-components/src/components/table/DocumentationTable/DocumentationTable.tsx index 70a6dbc9e8..faa29c8f17 100644 --- a/web-components/src/components/table/DocumentationTable/DocumentationTable.tsx +++ b/web-components/src/components/table/DocumentationTable/DocumentationTable.tsx @@ -37,15 +37,20 @@ export interface DocumentationTableProps { canClickRow?: boolean; onViewOnLedger?: (ledgerData: any) => void; txClient?: ServiceClientImpl; + headCells: HeadCell[]; + viewLedgerText: string; + viewDocumentText: string; + tableAriaLabel: string; } -interface HeadCell { +export interface HeadCell { id: keyof DocumentRowData; label: string; numeric: boolean; } interface EnhancedTableProps { + headCells: HeadCell[]; classes: Record; onRequestSort: ( event: React.MouseEvent, @@ -57,21 +62,16 @@ interface EnhancedTableProps { } function EnhancedTableHead(props: EnhancedTableProps): JSX.Element { - const { order, orderBy, onRequestSort, hasViewOnLedgerColumn } = props; + const { order, orderBy, onRequestSort, hasViewOnLedgerColumn, headCells } = + props; + const headCellsCopy = [...headCells]; const createSortHandler = (property: keyof DocumentRowData) => (event: React.MouseEvent) => { onRequestSort(event, property); }; - let headCells: HeadCell[] = [ - { id: 'name', numeric: false, label: 'Name of document' }, - { id: 'type', numeric: true, label: 'Document type' }, - { id: 'date', numeric: true, label: 'Date of upload' }, - { id: 'url', numeric: true, label: '' }, - ]; - const ledgerColumnCell: HeadCell = { id: 'ledger', numeric: true, label: '' }; - if (hasViewOnLedgerColumn) headCells.splice(3, 0, ledgerColumnCell); // don't show this headerCell if no ledger data + if (hasViewOnLedgerColumn) headCellsCopy.splice(3, 0, ledgerColumnCell); // don't show this headerCell if no ledger data return ( @@ -99,7 +99,17 @@ function EnhancedTableHead(props: EnhancedTableProps): JSX.Element { const DocumentationTable: React.FC< React.PropsWithChildren -> = ({ rows, canClickRow = false, onViewOnLedger, txClient, className }) => { +> = ({ + rows, + canClickRow = false, + onViewOnLedger, + txClient, + className, + headCells, + viewLedgerText, + viewDocumentText, + tableAriaLabel, +}) => { const { classes: styles, cx } = useDocumentationTableStyles(); const [order, setOrder] = useState('asc'); const [orderBy, setOrderBy] = useState('name'); @@ -134,9 +144,10 @@ const DocumentationTable: React.FC< return ( - +
} > - view on ledger + {viewLedgerText} )} @@ -207,7 +218,7 @@ const DocumentationTable: React.FC< startIcon={} className={styles.button} > - view document + {viewDocumentText} diff --git a/web-components/src/components/table/table.stories.tsx b/web-components/src/components/table/table.stories.tsx index 9873bb6d87..27205d84b5 100644 --- a/web-components/src/components/table/table.stories.tsx +++ b/web-components/src/components/table/table.stories.tsx @@ -8,6 +8,7 @@ import { DocumentationTable, DocumentRowData, } from './DocumentationTable/DocumentationTable'; +import { DOCUMENTATION_HEAD_CELLS } from './DocumentationTable/DocumentationTable.mock'; import { TablePagination } from './Table.TablePagination'; export default { @@ -40,7 +41,13 @@ const data: DocumentRowData[] = [ ]; export const documentationTable = (): JSX.Element => ( - + ); export const tablePagination = (): JSX.Element => ( @@ -63,6 +70,7 @@ export const tablePagination = (): JSX.Element => ( export const actionsTable = (): JSX.Element => ( ( , + content: ( + + ), }; const tabs: RegenTab[] = [creditDetailsTab, documentationTab]; diff --git a/web-components/src/components/timeline/TimelineItem.tsx b/web-components/src/components/timeline/TimelineItem.tsx index bcbf545e24..c25607af9a 100644 --- a/web-components/src/components/timeline/TimelineItem.tsx +++ b/web-components/src/components/timeline/TimelineItem.tsx @@ -13,6 +13,7 @@ interface TimelineItemProps extends Event { odd: boolean; last: boolean; txClient?: ServiceClientImpl; + viewLedgerText: string; onViewOnLedger: (creditVintage: any) => void; creditVintage?: any; } @@ -168,6 +169,7 @@ export default function TimelineItem({ odd, last, txClient, + viewLedgerText, onViewOnLedger, }: TimelineItemProps): JSX.Element { const { classes } = useStyles({ circleColor, barColor, odd, last }); @@ -188,7 +190,7 @@ export default function TimelineItem({ onClick={() => onViewOnLedger(creditVintage)} startIcon={} > - view on ledger + {viewLedgerText} )} diff --git a/web-components/src/components/timeline/index.tsx b/web-components/src/components/timeline/index.tsx index e2406a1a77..ec5fcb1806 100644 --- a/web-components/src/components/timeline/index.tsx +++ b/web-components/src/components/timeline/index.tsx @@ -18,6 +18,7 @@ interface TimelineProps { events: Event[]; txClient?: ServiceClientImpl; completedItemIndex?: number; + viewLedgerText: string; onViewOnLedger: (creditVintage: any) => void; } @@ -49,6 +50,7 @@ export default function Timeline({ events, completedItemIndex, txClient, + viewLedgerText, onViewOnLedger, }: TimelineProps): JSX.Element { const { classes } = useStyles(); @@ -99,6 +101,7 @@ export default function Timeline({ odd={index % 2 !== 0} last={index === events.length - 1} txClient={txClient} + viewLedgerText={viewLedgerText} onViewOnLedger={onViewOnLedger} /> diff --git a/web-components/src/components/timeline/timeline.stories.tsx b/web-components/src/components/timeline/timeline.stories.tsx index 6df916812d..9346fa133a 100644 --- a/web-components/src/components/timeline/timeline.stories.tsx +++ b/web-components/src/components/timeline/timeline.stories.tsx @@ -44,7 +44,12 @@ const events: Event[] = [ const voidFunc = (): void => void null; export const timeline = (): JSX.Element => ( - + ); export const timelineItem = (): JSX.Element => ( ( barColor={theme.palette.secondary.main} odd={false} last={false} + viewLedgerText="View on ledger" /> ); diff --git a/web-components/src/components/views/ErrorView.tsx b/web-components/src/components/views/ErrorView.tsx index 8b280ea020..f3ec060b22 100644 --- a/web-components/src/components/views/ErrorView.tsx +++ b/web-components/src/components/views/ErrorView.tsx @@ -9,6 +9,9 @@ export interface ErrorViewProps { img?: JSX.Element; home?: string; msg?: string; + title: string; + bodyText: string; + buttonText: string; } const useStyles = makeStyles()((theme: Theme) => ({ @@ -43,7 +46,14 @@ const useStyles = makeStyles()((theme: Theme) => ({ }, })); -const ErrorView = ({ img, home = '/', msg }: ErrorViewProps): JSX.Element => { +const ErrorView = ({ + img, + home = '/', + msg, + title, + bodyText, + buttonText, +}: ErrorViewProps): JSX.Element => { const { classes } = useStyles(); return ( @@ -54,7 +64,7 @@ const ErrorView = ({ img, home = '/', msg }: ErrorViewProps): JSX.Element => { variant="h1" sx={{ textAlign: 'center', color: 'primary.contrastText', mb: 4.25 }} > - {'That’s an error.'} + {title} {msg && ( { {msg} )} - - {'For help resolving an issue, reach out to support@regen.network.'} - + {bodyText} - {'Visit Our Homepage'}{' '} - + {buttonText} diff --git a/web-components/src/components/views/NotFoundView.tsx b/web-components/src/components/views/NotFoundView.tsx index e2d5a7235d..538c9cbdbc 100644 --- a/web-components/src/components/views/NotFoundView.tsx +++ b/web-components/src/components/views/NotFoundView.tsx @@ -1,4 +1,4 @@ -import React from 'react'; +import React, { ReactNode } from 'react'; import Box from '@mui/material/Box'; import { Theme } from '@mui/material/styles'; import { makeStyles } from 'tss-react/mui'; @@ -9,6 +9,9 @@ import { Body, Label, Title } from '../typography'; export interface NotFoundProps { img?: JSX.Element; home?: string; + title: string; + bodyText: string; + buttonChildren: ReactNode; } const useStyles = makeStyles()((theme: Theme) => ({ @@ -49,7 +52,13 @@ const useStyles = makeStyles()((theme: Theme) => ({ }, })); -const NotFound = ({ img, home = '/' }: NotFoundProps): JSX.Element => { +const NotFound = ({ + img, + home = '/', + title, + bodyText, + buttonChildren, +}: NotFoundProps): JSX.Element => { const { classes } = useStyles(); return ( @@ -71,20 +80,16 @@ const NotFound = ({ img, home = '/' }: NotFoundProps): JSX.Element => { variant="h1" sx={{ textAlign: 'center', color: 'primary.contrastText', mb: 4.25 }} > - Oops! Page not found. + {title} - - The page you are looking for might have been temporarily removed or - had its name changed. - + {bodyText} - Visit Our Homepage{' '} - {'\u00A0'}Instead + {buttonChildren} diff --git a/web-components/src/components/views/views.stories.tsx b/web-components/src/components/views/views.stories.tsx index 9e9818d97e..5ea2754283 100644 --- a/web-components/src/components/views/views.stories.tsx +++ b/web-components/src/components/views/views.stories.tsx @@ -1,3 +1,5 @@ +import { Box } from '@mui/material'; + import ErrorView from './ErrorView'; import NotFound from './NotFoundView'; @@ -6,5 +8,22 @@ export default { component: NotFound, }; -export const notFoundView = (): JSX.Element => ; -export const errorView = (): JSX.Element => ; +export const notFoundView = (): JSX.Element => ( + + Visit Our Homepage{' '} + {'\u00A0'}Instead + + } + /> +); +export const errorView = (): JSX.Element => ( + +); diff --git a/web-marketplace/src/components/organisms/BasketEcocreditsTable/BasketEcocreditsTable.tsx b/web-marketplace/src/components/organisms/BasketEcocreditsTable/BasketEcocreditsTable.tsx index 328b2418a3..abb98b65bd 100644 --- a/web-marketplace/src/components/organisms/BasketEcocreditsTable/BasketEcocreditsTable.tsx +++ b/web-marketplace/src/components/organisms/BasketEcocreditsTable/BasketEcocreditsTable.tsx @@ -14,6 +14,7 @@ import { import { formatDate, formatNumber } from 'web-components/src/utils/format'; import { UseStateSetter } from 'types/react/use-state'; +import { ACTIONS_TABLE_ACTIONS_TEXT } from 'lib/constants/shared.constants'; import { BasketBatchInfoWithBalance } from 'pages/BasketDetails/utils/normalizeBasketEcocredits'; import { BreakText, GreyText, Link } from 'components/atoms'; @@ -51,6 +52,7 @@ export const BasketEcocreditsTable: React.FC< onTableChange={onTableChange} initialPaginationParams={initialPaginationParams} isIgnoreOffset={isIgnoreOffset} + actionButtonsText={_(ACTIONS_TABLE_ACTIONS_TEXT)} headerRows={[ Project diff --git a/web-marketplace/src/components/organisms/BasketsTable.tsx b/web-marketplace/src/components/organisms/BasketsTable.tsx index cf3ed858f2..0504bb4e4d 100644 --- a/web-marketplace/src/components/organisms/BasketsTable.tsx +++ b/web-marketplace/src/components/organisms/BasketsTable.tsx @@ -11,6 +11,8 @@ import { } from 'web-components/src/components/table/ActionsTable'; import { formatNumber } from 'web-components/src/utils/format'; +import { ACTIONS_TABLE_ACTIONS_TEXT } from 'lib/constants/shared.constants'; + import { ReactComponent as BasketIcon } from '../../assets/svgs/rNCT.svg'; import { BasketTokens } from '../../hooks/useBasketTokens'; import { NoCredits } from '../molecules'; @@ -36,6 +38,7 @@ export const BasketsTable: React.FC> = return ( ( > = ({ const table = ( ( { + const { _ } = useLingui(); + switch (props.activeStep) { case 0: return ( @@ -55,7 +63,13 @@ const CurrentStep = (props: { case 2: return ; default: - return } />; + return ( + + ); } }; diff --git a/web-marketplace/src/components/organisms/Documentation/Documentation.constants.ts b/web-marketplace/src/components/organisms/Documentation/Documentation.constants.ts new file mode 100644 index 0000000000..ed9f935e05 --- /dev/null +++ b/web-marketplace/src/components/organisms/Documentation/Documentation.constants.ts @@ -0,0 +1,16 @@ +import { msg } from '@lingui/macro'; + +import { HeadCell } from 'web-components/src/components/table/DocumentationTable/DocumentationTable'; + +import { TranslatorType } from 'lib/i18n/i18n.types'; + +export const getDocumentationHeadCells = (_: TranslatorType): HeadCell[] => [ + { id: 'name', numeric: false, label: _(msg`Name of document`) }, + { id: 'type', numeric: true, label: _(msg`Document type`) }, + { id: 'date', numeric: true, label: _(msg`Date of upload`) }, + { id: 'url', numeric: true, label: _(msg``) }, +]; + +export const DOCUMENTATION_TABLE_ARIA_LABEL = msg`documentation table`; +export const DOCUMENTATION_TABLE_VIEW_LEDGER_TEXT = msg`view on ledger`; +export const DOCUMENTATION_TABLE_VIEW_DOCUMENT_TEXT = msg`view document`; diff --git a/web-marketplace/src/components/organisms/Documentation.tsx b/web-marketplace/src/components/organisms/Documentation/Documentation.tsx similarity index 75% rename from web-marketplace/src/components/organisms/Documentation.tsx rename to web-marketplace/src/components/organisms/Documentation/Documentation.tsx index 0ce945a0a1..3dca04cf3e 100644 --- a/web-marketplace/src/components/organisms/Documentation.tsx +++ b/web-marketplace/src/components/organisms/Documentation/Documentation.tsx @@ -1,3 +1,4 @@ +import { useMemo } from 'react'; import { msg } from '@lingui/macro'; import { useLingui } from '@lingui/react'; import { ServiceClientImpl } from '@regen-network/api/lib/generated/cosmos/tx/v1beta1/service'; @@ -10,6 +11,13 @@ import { } from 'web-components/src/components/table/DocumentationTable/DocumentationTable'; import { Theme } from 'web-components/src/theme/muiTheme'; +import { + DOCUMENTATION_TABLE_ARIA_LABEL, + DOCUMENTATION_TABLE_VIEW_DOCUMENT_TEXT, + DOCUMENTATION_TABLE_VIEW_LEDGER_TEXT, + getDocumentationHeadCells, +} from './Documentation.constants'; + export interface DocumentationProps { txClient?: ServiceClientImpl; onViewOnLedger: (ledgerData: any) => void; @@ -43,6 +51,8 @@ function Documentation({ const { _ } = useLingui(); const { classes: styles } = useStyles(); + const headCells = useMemo(() => getDocumentationHeadCells(_), [_]); + return (
); diff --git a/web-marketplace/src/components/organisms/EcocreditsTable.tsx b/web-marketplace/src/components/organisms/EcocreditsTable.tsx index 31505c08e7..41562bbc3d 100644 --- a/web-marketplace/src/components/organisms/EcocreditsTable.tsx +++ b/web-marketplace/src/components/organisms/EcocreditsTable.tsx @@ -17,6 +17,7 @@ import { formatDate, formatNumber } from 'web-components/src/utils/format'; import type { BatchInfoWithBalance } from 'types/ledger/ecocredit'; import { UseStateSetter } from 'types/react/use-state'; +import { ACTIONS_TABLE_ACTIONS_TEXT } from 'lib/constants/shared.constants'; import { AccountLink, BreakText, GreyText, Link } from 'components/atoms'; import WithLoader from 'components/atoms/WithLoader'; @@ -40,6 +41,7 @@ export const EcocreditsTable: React.FC< isIgnoreOffset = false, }) => { const { _ } = useLingui(); + const hasMorePages = (initialPaginationParams?.count ?? 0) > (initialPaginationParams?.rowsPerPage ?? 0); @@ -55,6 +57,7 @@ export const EcocreditsTable: React.FC< return ( {loginDisabled && ( setShowOnCloseWarning(false)} navigate={() => onClose(false)} + title={_(DISCARD_CHANGES_TITLE)} + bodyText={_(DISCARD_CHANGES_BODY)} + buttonText={_(DISCARD_CHANGES_BUTTON)} /> ); diff --git a/web-marketplace/src/components/organisms/ProjectTopSection/ProjectTopSection.tsx b/web-marketplace/src/components/organisms/ProjectTopSection/ProjectTopSection.tsx index a7b40e97ac..43d59cccb6 100644 --- a/web-marketplace/src/components/organisms/ProjectTopSection/ProjectTopSection.tsx +++ b/web-marketplace/src/components/organisms/ProjectTopSection/ProjectTopSection.tsx @@ -14,6 +14,12 @@ import { Body, Label, Title } from 'web-components/src/components/typography'; import { useLedger } from 'ledger'; import { client as sanityClient } from 'lib/clients/sanity'; +import { + ECOSYSTEM_LABEL, + PROJECT_ACTIVITY_LABEL, + SEE_LESS, + SEE_MORE, +} from 'lib/constants/shared.constants'; import { CreditClassMetadataLD } from 'lib/db/types/json-ld'; import { getCreditTypeQuery } from 'lib/queries/react-query/ecocredit/getCreditTypeQuery/getCreditTypeQuery'; import { getAllCreditCertificationQuery } from 'lib/queries/react-query/sanity/getAllCreditCertificationQuery/getAllCreditCertificationQuery'; @@ -294,9 +300,13 @@ function ProjectTopSection({ {columnLayout && ( {ratingsAndCertificationsData && ( { - const [{ open, partyInfo }, setAddWalletModalConnectAtom] = useAtom( - addWalletModalConnectAtom, - ); - const onClose = (): void => - setAddWalletModalConnectAtom(atom => void (atom.open = false)); - - return ( - - ); -}; diff --git a/web-marketplace/src/components/organisms/RegistryLayout/RegistryLayout.AddWalletModalRemove.tsx b/web-marketplace/src/components/organisms/RegistryLayout/RegistryLayout.AddWalletModalRemove.tsx deleted file mode 100644 index 1e75ceaac7..0000000000 --- a/web-marketplace/src/components/organisms/RegistryLayout/RegistryLayout.AddWalletModalRemove.tsx +++ /dev/null @@ -1,23 +0,0 @@ -import { useAtom } from 'jotai'; - -import { AddWalletModalRemove } from 'web-components/src/components/modal/add-wallet-modal/AddWalletModalRemove'; - -import { addWalletModalRemoveAtom } from 'lib/atoms/modals.atoms'; - -export const RegistryLayoutAddWalletModalRemove = (): JSX.Element => { - const [{ open, partyInfo, onClick }, setAddWalletModalRemoveAtom] = useAtom( - addWalletModalRemoveAtom, - ); - const onClose = (): void => - setAddWalletModalRemoveAtom(atom => void (atom.open = false)); - - return ( - - ); -}; diff --git a/web-marketplace/src/components/organisms/RegistryLayout/RegistryLayout.AddWalletModalSwitch.tsx b/web-marketplace/src/components/organisms/RegistryLayout/RegistryLayout.AddWalletModalSwitch.tsx deleted file mode 100644 index 347bbb1f69..0000000000 --- a/web-marketplace/src/components/organisms/RegistryLayout/RegistryLayout.AddWalletModalSwitch.tsx +++ /dev/null @@ -1,15 +0,0 @@ -import { useAtom } from 'jotai'; - -import { AddWalletModalSwitch } from 'web-components/src/components/modal/add-wallet-modal/AddWalletModalSwitch'; - -import { addWalletModalSwitchAtom } from 'lib/atoms/modals.atoms'; - -export const RegistryLayoutAddWalletModalSwitch = (): JSX.Element => { - const [{ open }, setAddWalletModalSwitchAtom] = useAtom( - addWalletModalSwitchAtom, - ); - const onClose = (): void => - setAddWalletModalSwitchAtom(atom => void (atom.open = false)); - - return ; -}; diff --git a/web-marketplace/src/components/organisms/RegistryLayout/RegistryLayout.AddWalletModalSwitchWarning.tsx b/web-marketplace/src/components/organisms/RegistryLayout/RegistryLayout.AddWalletModalSwitchWarning.tsx index 8c436238f1..2626b137e4 100644 --- a/web-marketplace/src/components/organisms/RegistryLayout/RegistryLayout.AddWalletModalSwitchWarning.tsx +++ b/web-marketplace/src/components/organisms/RegistryLayout/RegistryLayout.AddWalletModalSwitchWarning.tsx @@ -1,15 +1,25 @@ +import { useLingui } from '@lingui/react'; import { useAtom } from 'jotai'; import { AddWalletModalSwitchWarning } from 'web-components/src/components/modal/add-wallet-modal/AddWalletModalSwitchWarning'; import { addWalletModalSwitchWarningAtom } from 'lib/atoms/modals.atoms'; +import { ADD_WALLET_MODAL_SWITCH_WARNING_TITLE } from './RegistryLayout.constants'; + export const RegistryLayoutAddWalletModalSwitchWarning = (): JSX.Element => { + const { _ } = useLingui(); const [{ open }, setAddWalletModalSwitchWarningAtom] = useAtom( addWalletModalSwitchWarningAtom, ); const onClose = (): void => setAddWalletModalSwitchWarningAtom(atom => void (atom.open = false)); - return ; + return ( + + ); }; diff --git a/web-marketplace/src/components/organisms/RegistryLayout/RegistryLayout.ConnectWalletModal.tsx b/web-marketplace/src/components/organisms/RegistryLayout/RegistryLayout.ConnectWalletModal.tsx index d8b332bed9..2691678f3f 100644 --- a/web-marketplace/src/components/organisms/RegistryLayout/RegistryLayout.ConnectWalletModal.tsx +++ b/web-marketplace/src/components/organisms/RegistryLayout/RegistryLayout.ConnectWalletModal.tsx @@ -17,6 +17,9 @@ import { KEPLR_CONNECT_BUTTON, KEPLR_LINK_TEXT, KEPLR_LINK_URL, + KEPLR_WALLET_CONNECT_LEARN_HOW_TEXT, + KEPLR_WALLET_CONNECT_SUBTITLE, + KEPLR_WALLET_CONNECT_TITLE, } from './RegistryLayout.constants'; export const RegistryLayoutConnectWalletModal = (): JSX.Element => { @@ -73,6 +76,9 @@ export const RegistryLayoutConnectWalletModal = (): JSX.Element => { /> ), }} + title={_(KEPLR_WALLET_CONNECT_TITLE)} + subtitle={_(KEPLR_WALLET_CONNECT_SUBTITLE)} + learnMoreText={_(KEPLR_WALLET_CONNECT_LEARN_HOW_TEXT)} /> )} { + const { _ } = useLingui(); const [{ open }, setProcessingModalAtom] = useAtom(processingModalAtom); const onClose = (): void => setProcessingModalAtom(atom => void (atom.open = false)); - return ; + return ( + + ); }; diff --git a/web-marketplace/src/components/organisms/RegistryLayout/RegistryLayout.SwitchWalletModal.tsx b/web-marketplace/src/components/organisms/RegistryLayout/RegistryLayout.SwitchWalletModal.tsx index 0d50d474ef..048e25bc4d 100644 --- a/web-marketplace/src/components/organisms/RegistryLayout/RegistryLayout.SwitchWalletModal.tsx +++ b/web-marketplace/src/components/organisms/RegistryLayout/RegistryLayout.SwitchWalletModal.tsx @@ -1,4 +1,5 @@ import { useCallback, useEffect } from 'react'; +import { useLingui } from '@lingui/react'; import { useAtom } from 'jotai'; import { SwitchWalletWarningModal } from 'web-components/src/components/modal/SwitchWalletWarningModal/SwitchWalletWarningModal'; @@ -7,7 +8,13 @@ import { switchWalletModalAtom } from 'lib/atoms/modals.atoms'; import { useAuth } from 'lib/auth/auth'; import { useWallet } from 'lib/wallet/wallet'; +import { + SWITCH_WALLET_WARNING_MODAL_MESSAGE, + SWITCH_WALLET_WARNING_MODAL_TITLE, +} from './RegistryLayout.constants'; + export const RegistryLayoutSwitchWalletModal = (): JSX.Element => { + const { _ } = useLingui(); const [switchWalletModal, setSwitchWalletModal] = useAtom( switchWalletModalAtom, ); @@ -31,6 +38,8 @@ export const RegistryLayoutSwitchWalletModal = (): JSX.Element => { open={open ?? false} address={String(activeAccount?.addr)} onClose={onCloseModal} + title={_(SWITCH_WALLET_WARNING_MODAL_TITLE)} + bodyText={_(SWITCH_WALLET_WARNING_MODAL_MESSAGE)} /> ); }; diff --git a/web-marketplace/src/components/organisms/RegistryLayout/RegistryLayout.TxErrorModal.tsx b/web-marketplace/src/components/organisms/RegistryLayout/RegistryLayout.TxErrorModal.tsx index 474bce96d2..569e3cf0a7 100644 --- a/web-marketplace/src/components/organisms/RegistryLayout/RegistryLayout.TxErrorModal.tsx +++ b/web-marketplace/src/components/organisms/RegistryLayout/RegistryLayout.TxErrorModal.tsx @@ -8,6 +8,12 @@ import { TxErrorModal } from 'web-components/src/components/modal/TxErrorModal'; import { errorCodeAtom } from 'lib/atoms/error.atoms'; import { errorModalAtom } from 'lib/atoms/modals.atoms'; import { getHashUrl } from 'lib/block-explorer'; +import { + BLOCKCHAIN_RECORD, + SEE_LESS, + SEE_MORE, + TX_ERROR_MODAL_TITLE, +} from 'lib/constants/shared.constants'; import { Link } from 'components/atoms'; @@ -38,12 +44,17 @@ export const RegistryLayoutTxErrorModal = (): JSX.Element => { return ( <> { buttonLink={findFirstNonEmptyString([buttonLink, error.buttonLink])} cardItems={cardItems} icon={} + blockchainRecordText={_(BLOCKCHAIN_RECORD)} /> ); diff --git a/web-marketplace/src/components/organisms/RegistryLayout/RegistryLayout.TxSuccessfulModal.tsx b/web-marketplace/src/components/organisms/RegistryLayout/RegistryLayout.TxSuccessfulModal.tsx index fbd4635f32..a38fe16467 100644 --- a/web-marketplace/src/components/organisms/RegistryLayout/RegistryLayout.TxSuccessfulModal.tsx +++ b/web-marketplace/src/components/organisms/RegistryLayout/RegistryLayout.TxSuccessfulModal.tsx @@ -1,15 +1,24 @@ import { useCallback, useEffect } from 'react'; import { useLocation } from 'react-router-dom'; +import { useLingui } from '@lingui/react'; import { useAtom } from 'jotai'; import { TxSuccessfulModal } from 'web-components/src/components/modal/TxSuccessfulModal'; import { txSuccessfulModalAtom } from 'lib/atoms/modals.atoms'; import { getHashUrl } from 'lib/block-explorer'; +import { + BLOCKCHAIN_RECORD, + SEE_LESS, + SEE_MORE, + TX_MODAL_TITLE, + TX_SUCCESSFUL_MODAL_TITLE, +} from 'lib/constants/shared.constants'; import { Link } from 'components/atoms'; export const RegistryLayoutTxSuccessfulModal = (): JSX.Element => { + const { _ } = useLingui(); const location = useLocation(); const [ @@ -29,17 +38,20 @@ export const RegistryLayoutTxSuccessfulModal = (): JSX.Element => { return ( ); }; diff --git a/web-marketplace/src/components/organisms/RegistryLayout/RegistryLayout.constants.ts b/web-marketplace/src/components/organisms/RegistryLayout/RegistryLayout.constants.ts index b0105fd3d4..b52a5c68ee 100644 --- a/web-marketplace/src/components/organisms/RegistryLayout/RegistryLayout.constants.ts +++ b/web-marketplace/src/components/organisms/RegistryLayout/RegistryLayout.constants.ts @@ -10,3 +10,16 @@ export const KEPLR_LINK_URL = 'https://guides.regen.network/guides/wallets/wallet-setup/create-a-keplr-wallet'; export const LOGOUT_TEXT = msg`Log out`; export const AVATAR_ALT = msg`default avatar`; +export const ADD_WALLET_MODAL_CONNECT_TITLE = msg`Connect wallet address`; +export const ADD_WALLET_MODAL_CONNECT_SUBTITLE = msg`Check your wallet for a confirmation popup.`; +export const ADD_WALLET_MODAL_REMOVE_TITLE = msg`This address is already linked to another account. Remove it from that account and connect it to yours?`; +export const ADD_WALLET_MODAL_REMOVE_SUBTITLE = msg`Check your wallet for a confirmation popup.`; +export const ADD_WALLET_MODAL_REMOVE_BUTTON_LABEL = msg`yes, remove & connect`; +export const ADD_WALLET_MODAL_SWITCH_TITLE = msg`Switch wallet addresses in Keplr to add another address to your account`; +export const ADD_WALLET_MODAL_SWITCH_SUBTITLE = msg`The current address is already linked to your account.\nPlease first switch wallet addresses in the Keplr app to be able to add another address to your account.`; +export const ADD_WALLET_MODAL_SWITCH_WARNING_TITLE = msg`Please switch to this address in Keplr to access this profile.`; +export const KEPLR_WALLET_CONNECT_TITLE = msg`You must connect a Keplr wallet address to your existing account in order to view this content.`; +export const KEPLR_WALLET_CONNECT_SUBTITLE = msg`Blockchain-based actions such as buying are only possible with a wallet address. Please set up a Keplr wallet in order to continue.`; +export const KEPLR_WALLET_CONNECT_LEARN_HOW_TEXT = msg`Learn how to `; +export const SWITCH_WALLET_WARNING_MODAL_TITLE = msg`Please select the following wallet address in Keplr in order to proceed`; +export const SWITCH_WALLET_WARNING_MODAL_MESSAGE = msg`The email address you are using to log in is associated with the above wallet address, so it must be the currently selected account in Keplr in order to continue.`; diff --git a/web-marketplace/src/components/organisms/RegistryLayout/RegistryLayout.tsx b/web-marketplace/src/components/organisms/RegistryLayout/RegistryLayout.tsx index cef71451ad..44bfb8a21f 100644 --- a/web-marketplace/src/components/organisms/RegistryLayout/RegistryLayout.tsx +++ b/web-marketplace/src/components/organisms/RegistryLayout/RegistryLayout.tsx @@ -5,9 +5,6 @@ import { PageViewTracking } from 'components/molecules/PageViewTracking'; import { ScrollToTop } from '../../atoms'; import { RegistryLayoutAccountSwitchModal } from './RegistryLayout.AccountSwitchModal'; -import { RegistryLayoutAddWalletModalConnect } from './RegistryLayout.AddWalletModalConnect'; -import { RegistryLayoutAddWalletModalRemove } from './RegistryLayout.AddWalletModalRemove'; -import { RegistryLayoutAddWalletModalSwitch } from './RegistryLayout.AddWalletModalSwitch'; import { RegistryLayoutAddWalletModalSwitchWarning } from './RegistryLayout.AddWalletModalSwitchWarning'; import { RegistryLayoutBannerModal } from './RegistryLayout.Banner'; import { RegistryLayoutConnectWalletModal } from './RegistryLayout.ConnectWalletModal'; @@ -38,9 +35,6 @@ const RegistryLayout: React.FC = () => { - - - diff --git a/web-marketplace/src/components/organisms/RetirementCertificatesTable/RetirementCertificatesTable.tsx b/web-marketplace/src/components/organisms/RetirementCertificatesTable/RetirementCertificatesTable.tsx index 957fca49ef..67a88ade6c 100644 --- a/web-marketplace/src/components/organisms/RetirementCertificatesTable/RetirementCertificatesTable.tsx +++ b/web-marketplace/src/components/organisms/RetirementCertificatesTable/RetirementCertificatesTable.tsx @@ -15,6 +15,7 @@ import { import { formatDate, formatNumber } from 'web-components/src/utils/format'; import { UseStateSetter } from 'types/react/use-state'; +import { ACTIONS_TABLE_ACTIONS_TEXT } from 'lib/constants/shared.constants'; import { NormalizedRetirement } from 'lib/normalizers/retirements/normalizeRetirement'; import { GreyText, Link } from 'components/atoms'; @@ -58,6 +59,7 @@ export const RetirementCertificatesTable: React.FC< return ( { const { _ } = useLingui(); + const hasSellOrders = sellOrders.length > 0; - const SellOrdersRow = useMemo(() => getSellOrdersRow(_), [_]); + const sellOrdersRow = useMemo(() => getSellOrdersRow(_), [_]); return ( <> {hasSellOrders && ( getSellOrdersTableRow({ sellOrder, _ }), )} diff --git a/web-marketplace/src/components/organisms/Stakeholders/Stakeholders.tsx b/web-marketplace/src/components/organisms/Stakeholders/Stakeholders.tsx index e3a8ebb297..a99ddfd32f 100644 --- a/web-marketplace/src/components/organisms/Stakeholders/Stakeholders.tsx +++ b/web-marketplace/src/components/organisms/Stakeholders/Stakeholders.tsx @@ -1,3 +1,4 @@ +import { useLingui } from '@lingui/react'; import { Grid, TooltipProps } from '@mui/material'; import { CollapseList } from 'web-components/src/components/organisms/CollapseList/CollapseList'; @@ -5,6 +6,8 @@ import UserInfo, { Account } from 'web-components/src/components/user/UserInfo'; import UserInfoWithTitle from 'web-components/src/components/user/UserInfoWithTitle'; import { defaultFontFamily } from 'web-components/src/theme/muiTheme'; +import { SEE_LESS, SEE_MORE } from 'lib/constants/shared.constants'; + export type Stakeholder = { accounts: Account | Account[] | undefined; title: string; @@ -16,6 +19,8 @@ type Props = { }; export const Stakeholders = ({ stakeholders }: Props) => { + const { _ } = useLingui(); + const filtered = stakeholders.filter(u => Array.isArray(u.accounts) ? u.accounts.length > 0 : Boolean(u.accounts), ); @@ -39,6 +44,8 @@ export const Stakeholders = ({ stakeholders }: Props) => { /> {accounts.length > 1 && ( ( { {_(CONNECTED_EMAIL_ERROR_TITLE)} - {_(CONNECTED_EMAIL_ERROR_DESCRIPTION_START)} - {email} + {_(CONNECTED_EMAIL_ERROR_DESCRIPTION_START)} {email} {_(CONNECTED_EMAIL_ERROR_DESCRIPTION_END)} diff --git a/web-marketplace/src/components/organisms/UserAccountSettings/UserAccountSettings.constants.ts b/web-marketplace/src/components/organisms/UserAccountSettings/UserAccountSettings.constants.ts index 3f50ed498f..6f882de17b 100644 --- a/web-marketplace/src/components/organisms/UserAccountSettings/UserAccountSettings.constants.ts +++ b/web-marketplace/src/components/organisms/UserAccountSettings/UserAccountSettings.constants.ts @@ -1,5 +1,7 @@ import { msg } from '@lingui/macro'; +export const CONNECTED_EMAIL_ERROR = + 'Sorry, this email is already connected to another account'; export const CONNECTED_EMAIL_ERROR_TITLE = msg`Sorry, this email is already connected to another account`; export const CONNECTED_EMAIL_ERROR_DESCRIPTION_START = msg`You entered: `; export const CONNECTED_EMAIL_ERROR_DESCRIPTION_END = msg`. Please use a different email address.`; diff --git a/web-marketplace/src/components/organisms/UserAccountSettings/UserAccountSettings.tsx b/web-marketplace/src/components/organisms/UserAccountSettings/UserAccountSettings.tsx index 2680ee82d2..f4f31d5630 100644 --- a/web-marketplace/src/components/organisms/UserAccountSettings/UserAccountSettings.tsx +++ b/web-marketplace/src/components/organisms/UserAccountSettings/UserAccountSettings.tsx @@ -7,7 +7,12 @@ import TextField from 'web-components/src/components/inputs/new/TextField/TextFi import { EmailConfirmationModal } from 'web-components/src/components/modal/EmailConfirmationModal/EmailConfirmationModal'; import { Body, Subtitle } from 'web-components/src/components/typography'; -import { EMAIL_CONFIRMATION_ARIA_LABEL } from 'lib/constants/shared.constants'; +import { + EMAIL_CONFIRMATION_ARIA_LABEL, + EMAIL_CONFIRMATION_CODE_HELPER, + EMAIL_CONFIRMATION_DESCRIPTION, + EMAIL_CONFIRMATION_TITLE, +} from 'lib/constants/shared.constants'; import { Link } from 'components/atoms'; import Form from 'components/molecules/Form/Form'; @@ -87,6 +92,9 @@ export const UserAccountSettings = ({ { setCopySuccessBanner(false); }} diff --git a/web-marketplace/src/components/templates/ProjectDetails/ProjectDetails.DataStream.Post.tsx b/web-marketplace/src/components/templates/ProjectDetails/ProjectDetails.DataStream.Post.tsx index 89685e63c3..3db991f498 100644 --- a/web-marketplace/src/components/templates/ProjectDetails/ProjectDetails.DataStream.Post.tsx +++ b/web-marketplace/src/components/templates/ProjectDetails/ProjectDetails.DataStream.Post.tsx @@ -30,12 +30,12 @@ import { } from 'web-components/src/components/inputs/new/FileDrop/FileDrop.utils'; import { FileToPreview } from 'web-components/src/components/organisms/PostFiles/components/FilePreview'; import { parseFile } from 'web-components/src/components/organisms/PostFiles/PostFiles.utils'; -import { COPY_SUCCESS } from 'web-components/src/components/organisms/ProfileHeader/ProfileHeader.constants'; import { Subtitle } from 'web-components/src/components/typography'; import { UseStateSetter } from 'web-components/src/types/react/useState'; import copyTextToClipboard from 'web-components/src/utils/copy'; import { bannerTextAtom } from 'lib/atoms/banner.atoms'; +import { COPY_SUCCESS } from 'lib/constants/shared.constants'; import { Post } from 'lib/queries/react-query/registry-server/getPostQuery/getPostQuery.types'; import { getAccountByIdQuery } from 'lib/queries/react-query/registry-server/graphql/getAccountByIdQuery/getAccountByIdQuery'; @@ -215,7 +215,7 @@ export const DataStreamPost = ({ copyTextToClipboard( `${window.location.origin}/post/${post.iri}`, ); - setBannerText(COPY_SUCCESS); + setBannerText(_(COPY_SUCCESS)); }} onDelete={onOpen} numberOfFiles={post.contents.files?.length} diff --git a/web-marketplace/src/components/templates/ProjectDetails/ProjectDetails.ProjectTimeline.tsx b/web-marketplace/src/components/templates/ProjectDetails/ProjectDetails.ProjectTimeline.tsx index 61d9d6085a..02dd6c0919 100644 --- a/web-marketplace/src/components/templates/ProjectDetails/ProjectDetails.ProjectTimeline.tsx +++ b/web-marketplace/src/components/templates/ProjectDetails/ProjectDetails.ProjectTimeline.tsx @@ -9,6 +9,7 @@ import Section from 'web-components/src/components/section'; import Timeline from 'web-components/src/components/timeline'; import { getFormattedDate } from 'web-components/src/utils/format'; +import { VIEW_ON_LEDGER_TEXT } from 'lib/constants/shared.constants'; import { useWallet } from 'lib/wallet/wallet'; interface InputProps { @@ -33,6 +34,7 @@ export function ProjectTimeline({
({ diff --git a/web-marketplace/src/components/templates/ProjectDetails/ProjectDetails.tsx b/web-marketplace/src/components/templates/ProjectDetails/ProjectDetails.tsx index 13802b587e..8c60ab17ed 100644 --- a/web-marketplace/src/components/templates/ProjectDetails/ProjectDetails.tsx +++ b/web-marketplace/src/components/templates/ProjectDetails/ProjectDetails.tsx @@ -23,6 +23,7 @@ import { } from 'lib/atoms/modals.atoms'; import { useAuth } from 'lib/auth/auth'; import { onBtnClick } from 'lib/button'; +import { PHOTO_CREDIT } from 'lib/constants/shared.constants'; import { AnchoredProjectMetadataLD, CreditClassMetadataLD, @@ -546,7 +547,12 @@ function ProjectDetails(): JSX.Element { /> {hasProjectPhotos && ( - + )} { + const { _ } = useLingui(); + return ( getDocumentationTableRow({ document }))} sortCallbacks={sortCallbacks} diff --git a/web-marketplace/src/features/ecocredit/CreateBatchBySteps/CreateBatchMultiStepForm/CreateBatchMultiStepForm.tsx b/web-marketplace/src/features/ecocredit/CreateBatchBySteps/CreateBatchMultiStepForm/CreateBatchMultiStepForm.tsx index fea0308b80..34c003443b 100644 --- a/web-marketplace/src/features/ecocredit/CreateBatchBySteps/CreateBatchMultiStepForm/CreateBatchMultiStepForm.tsx +++ b/web-marketplace/src/features/ecocredit/CreateBatchBySteps/CreateBatchMultiStepForm/CreateBatchMultiStepForm.tsx @@ -16,6 +16,11 @@ import { INVALID_PAST_DATE, INVALID_REGEN_ADDRESS, INVALID_VCS_RETIREMENT, + PAGE_NOT_FOUND_BODY, + PAGE_NOT_FOUND_BUTTON, + PAGE_NOT_FOUND_TITLE, + PROCESSING_MODAL_BODY, + PROCESSING_MODAL_TITLE, REQUIRED_MESSAGE, RETIREMENT_INFO_TEXT, SAVE_EXIT_TEXT, @@ -183,7 +188,13 @@ export default function CreateBatchMultiStepForm(): React.ReactElement { case 2: return ; default: - return } />; + return ( + + ); } } @@ -216,7 +227,12 @@ export default function CreateBatchMultiStepForm(): React.ReactElement { )} - + ); } diff --git a/web-marketplace/src/features/ecocredit/CreateBatchBySteps/CreateBatchMultiStepForm/Result.tsx b/web-marketplace/src/features/ecocredit/CreateBatchBySteps/CreateBatchMultiStepForm/Result.tsx index e8ae2d97ae..f24932afa6 100644 --- a/web-marketplace/src/features/ecocredit/CreateBatchBySteps/CreateBatchMultiStepForm/Result.tsx +++ b/web-marketplace/src/features/ecocredit/CreateBatchBySteps/CreateBatchMultiStepForm/Result.tsx @@ -1,5 +1,6 @@ import React from 'react'; import { DeliverTxResponse } from '@cosmjs/stargate'; +import { useLingui } from '@lingui/react'; import { Box } from '@mui/material'; import OutlinedButton from 'web-components/src/components/buttons/OutlinedButton'; @@ -14,6 +15,7 @@ import { import { truncate } from 'web-components/src/utils/truncate'; import { getAccountUrl, getHashUrl } from 'lib/block-explorer'; +import { SEE_LESS, SEE_MORE } from 'lib/constants/shared.constants'; import { Link } from 'components/atoms'; @@ -129,11 +131,15 @@ const SuccessResult = ({ recipients, txHash, }: SuccessProps): React.ReactElement => { + const { _ } = useLingui(); + return ( <> Create Credit Batch { + const { _ } = useLingui(); + return ( <> { Create Credit Batch setIsProcessingModalOpen(false)} + title={_(PROCESSING_MODAL_TITLE)} + bodyText={_(PROCESSING_MODAL_BODY)} /> } + blockchainRecordText={_(BLOCKCHAIN_RECORD)} /> } + blockchainRecordText={_(BLOCKCHAIN_RECORD)} /> ); diff --git a/web-marketplace/src/features/marketplace/BuySellOrderFlow/BuySellOrderFlow.tsx b/web-marketplace/src/features/marketplace/BuySellOrderFlow/BuySellOrderFlow.tsx index 77b159516e..79a73cfa52 100644 --- a/web-marketplace/src/features/marketplace/BuySellOrderFlow/BuySellOrderFlow.tsx +++ b/web-marketplace/src/features/marketplace/BuySellOrderFlow/BuySellOrderFlow.tsx @@ -19,6 +19,17 @@ import { UseStateSetter } from 'types/react/use-state'; import { switchWalletModalAtom } from 'lib/atoms/modals.atoms'; import { getHashUrl } from 'lib/block-explorer'; import { client } from 'lib/clients/sanity'; +import { + BLOCKCHAIN_RECORD, + CLOSE_BUTTON_TEXT, + PROCESSING_MODAL_BODY, + PROCESSING_MODAL_TITLE, + SEE_LESS, + SEE_MORE, + SHARE_TITLE, + TX_ERROR_MODAL_TITLE, + TX_MODAL_TITLE, +} from 'lib/constants/shared.constants'; import { getBuyModalOptionsQuery } from 'lib/queries/react-query/sanity/getBuyModalOptionsQuery/getBuyModalOptionsQuery'; import { Track } from 'lib/tracker/types'; import { useWallet } from 'lib/wallet/wallet'; @@ -271,15 +282,19 @@ export const BuySellOrderFlow = ({ } + blockchainRecordText={_(BLOCKCHAIN_RECORD)} /> ); diff --git a/web-marketplace/src/features/marketplace/CreateSellOrderFlow/CreateSellOrderFlow.tsx b/web-marketplace/src/features/marketplace/CreateSellOrderFlow/CreateSellOrderFlow.tsx index 7a685ac207..74403926ca 100644 --- a/web-marketplace/src/features/marketplace/CreateSellOrderFlow/CreateSellOrderFlow.tsx +++ b/web-marketplace/src/features/marketplace/CreateSellOrderFlow/CreateSellOrderFlow.tsx @@ -21,6 +21,16 @@ import { switchWalletModalAtom, } from 'lib/atoms/modals.atoms'; import { getHashUrl } from 'lib/block-explorer'; +import { + BLOCKCHAIN_RECORD, + PROCESSING_MODAL_BODY, + PROCESSING_MODAL_TITLE, + SEE_LESS, + SEE_MORE, + TX_ERROR_MODAL_TITLE, + TX_MODAL_TITLE, + TX_SUCCESSFUL_MODAL_TITLE, +} from 'lib/constants/shared.constants'; import { getAllowedDenomQuery } from 'lib/queries/react-query/ecocredit/marketplace/getAllowedDenomQuery/getAllowedDenomQuery'; import { useWallet } from 'lib/wallet/wallet'; @@ -170,21 +180,28 @@ export const CreateSellOrderFlow = ({ } + blockchainRecordText={_(BLOCKCHAIN_RECORD)} /> ); diff --git a/web-marketplace/src/lib/atoms/modals.atoms.ts b/web-marketplace/src/lib/atoms/modals.atoms.ts index 52488f7655..4902c2ba7b 100644 --- a/web-marketplace/src/lib/atoms/modals.atoms.ts +++ b/web-marketplace/src/lib/atoms/modals.atoms.ts @@ -1,8 +1,6 @@ import { atomWithImmer } from 'jotai-immer'; import { RegenModalProps } from 'web-components/src/components/modal'; -import { AddWalletModalConnectProps } from 'web-components/src/components/modal/add-wallet-modal/AddWalletModalConnect'; -import { AddWalletModalRemoveProps } from 'web-components/src/components/modal/add-wallet-modal/AddWalletModalRemove'; import { ProcessingModalProps } from 'web-components/src/components/modal/ProcessingModal'; import { TxErrorModalProps } from 'web-components/src/components/modal/TxErrorModal'; import { Item } from 'web-components/src/components/modal/TxModal'; @@ -47,24 +45,6 @@ export const addWalletModalSwitchWarningAtom = atomWithImmer({ open: false, } as Partial); -export const addWalletModalConnectAtom = atomWithImmer({ - open: false, - partyInfo: { - addr: '', - name: '', - profileImage: '', - }, -} as Partial); - -export const addWalletModalRemoveAtom = atomWithImmer({ - open: false, - partyInfo: { - addr: '', - name: '', - profileImage: '', - }, -} as Partial); - export const accountSwitchModalAtom = atomWithImmer({ open: false, prevAddr: '', diff --git a/web-marketplace/src/lib/constants/shared.constants.tsx b/web-marketplace/src/lib/constants/shared.constants.tsx index 5ecf2590ae..c36b8dcf71 100644 --- a/web-marketplace/src/lib/constants/shared.constants.tsx +++ b/web-marketplace/src/lib/constants/shared.constants.tsx @@ -1,5 +1,5 @@ import { msg, Trans } from '@lingui/macro'; -import { Link } from '@mui/material'; +import { Box, Link } from '@mui/material'; import { MAX_FRACTION_DIGITS, @@ -108,3 +108,36 @@ export const getMaximumDecimalMessage = ({ maximumFractionDigits, }: GetMaximumDecimalMessageProps) => _(msg`Maximum ${maximumFractionDigits} decimal places`); +export const EMAIL_CONFIRMATION_TITLE = msg`Please check your email`; +export const EMAIL_CONFIRMATION_DESCRIPTION = msg`We've just sent a confirmation email to:`; +export const EMAIL_CONFIRMATION_CODE_HELPER = msg`Please enter the code from that email:`; +export const DISCARD_CHANGES_TITLE = msg`Are you sure you want to discard your changes?`; +export const DISCARD_CHANGES_BODY = msg`If you proceed, you will lose all unsaved changes you made. This cannot be undone.`; +export const DISCARD_CHANGES_BUTTON = msg`yes, discard`; +export const PROCESSING_MODAL_TITLE = msg`Please wait while transaction processes`; +export const PROCESSING_MODAL_BODY = msg`This may take up to 15 seconds.`; +export const TX_ERROR_MODAL_TITLE = msg`Sorry, your transaction was not successful.`; +export const TX_MODAL_TITLE = msg`view your portfolio`; +export const TX_SUCCESSFUL_MODAL_TITLE = msg`Congrats! Your transaction was successful.`; +export const BLOCKCHAIN_RECORD = msg`blockchain record`; +export const CLOSE_BUTTON_TEXT = msg`CLOSE WINDOW`; +export const SEE_LESS = msg`- see less`; +export const SEE_MORE = msg`+ see more`; +export const PHOTO_CREDIT = msg`Photo credit`; +export const EDIT_PROFILE_TEXT = msg`Edit Profile`; +export const COPY_PROFILE_TEXT = msg`Copy link to profile`; +export const ALT_PROFILE_BACKGROUND_IMAGE = msg`user profile background image`; +export const ALT_PROFILE_AVATAR = msg`user profile avatar`; +export const PROJECT_ACTIVITY_LABEL = msg`Project Activity`; +export const ECOSYSTEM_LABEL = msg`Ecosystem`; +export const SHARE_TITLE = msg`Share`; +export const ACTIONS_TABLE_ACTIONS_TEXT = msg`Actions`; +export const VIEW_ON_LEDGER_TEXT = msg`view on ledger`; +export const PAGE_NOT_FOUND_TITLE = msg`Oops! Page not found.`; +export const PAGE_NOT_FOUND_BODY = msg`The page you are looking for might have been temporarily removed or had its name changed.`; +export const PAGE_NOT_FOUND_BUTTON = ( + + Visit Our Homepage{' '} + {'\u00A0'}Instead + +); diff --git a/web-marketplace/src/lib/i18n/locales/en.po b/web-marketplace/src/lib/i18n/locales/en.po index 8266991a42..46b04376f1 100644 --- a/web-marketplace/src/lib/i18n/locales/en.po +++ b/web-marketplace/src/lib/i18n/locales/en.po @@ -1,6 +1,6 @@ msgid "" msgstr "" -"POT-Creation-Date: 2024-09-17 15:39+0200\n" +"POT-Creation-Date: 2024-09-18 09:25+0200\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -8,11 +8,16 @@ msgstr "" "Language: en\n" #: src/components/organisms/CreditActivityTable/CreditActivityTable.tsx:65 +#: src/components/organisms/Documentation/Documentation.constants.ts:11 #: src/pages/CreditClassDetails/CreditClassDetailsWithContent/CreditClassDetailsWithContent.constants.ts:31 msgid "" msgstr "" -#: src/components/organisms/UserAccountSettings/UserAccountSettings.constants.ts:5 +#: src/lib/constants/shared.constants.tsx:124 +msgid "- see less" +msgstr "" + +#: src/components/organisms/UserAccountSettings/UserAccountSettings.constants.ts:7 msgid ". Please use a different email address." msgstr "" @@ -100,6 +105,10 @@ msgstr "" msgid "+ create post" msgstr "" +#: src/lib/constants/shared.constants.tsx:125 +msgid "+ see more" +msgstr "" + #: src/components/templates/ProjectDetails/ProjectDetails.constant.ts:14 msgid "+ view timeline" msgstr "" @@ -193,6 +202,10 @@ msgstr "" msgid "actions" msgstr "" +#: src/lib/constants/shared.constants.tsx:134 +msgid "Actions" +msgstr "" + #: src/components/organisms/RegistryLayout/RegistryLayout.config.tsx:66 #: src/components/organisms/RegistryLayout/RegistryLayout.Footer.tsx:46 #: src/pages/Activity/Activity.tsx:12 @@ -295,13 +308,13 @@ msgid "amount" msgstr "" #: src/components/molecules/CreditsAmount/CreditsAmount.Header.tsx:31 -#: src/components/organisms/BasketEcocreditsTable/BasketEcocreditsTable.tsx:62 +#: src/components/organisms/BasketEcocreditsTable/BasketEcocreditsTable.tsx:64 #: src/components/organisms/BridgeForm/BridgeForm.tsx:127 #: src/lib/constants/shared.constants.tsx:32 msgid "Amount" msgstr "" -#: src/components/organisms/BasketsTable.tsx:53 +#: src/components/organisms/BasketsTable.tsx:56 msgid "Amount available" msgstr "" @@ -310,11 +323,11 @@ msgstr "" msgid "AMOUNT AVAILABLE" msgstr "" -#: src/components/organisms/BridgableEcocreditsTable/BridgableEcocreditsTable.tsx:123 +#: src/components/organisms/BridgableEcocreditsTable/BridgableEcocreditsTable.tsx:125 msgid "Amount Bridgable" msgstr "" -#: src/components/organisms/BridgedEcocreditsTable/BridgedEcocreditsTable.tsx:139 +#: src/components/organisms/BridgedEcocreditsTable/BridgedEcocreditsTable.tsx:141 msgid "Amount Bridged" msgstr "" @@ -326,7 +339,7 @@ msgstr "" msgid "Amount cannot exceed" msgstr "" -#: src/components/organisms/EcocreditsTable.tsx:87 +#: src/components/organisms/EcocreditsTable.tsx:90 msgid "Amount Escrowed" msgstr "" @@ -349,7 +362,7 @@ msgstr "" msgid "Amount retired" msgstr "" -#: src/components/organisms/EcocreditsTable.tsx:83 +#: src/components/organisms/EcocreditsTable.tsx:86 #: src/components/organisms/RetirementCertificatesTable/RetirementCertificatesTable.headers.tsx:42 #: src/features/ecocredit/CreateBatchBySteps/CreateBatchMultiStepForm/CreateBatchMultiStepForm.constants.ts:9 msgid "Amount Retired" @@ -367,7 +380,7 @@ msgstr "" msgid "Amount tradable" msgstr "" -#: src/components/organisms/EcocreditsTable.tsx:80 +#: src/components/organisms/EcocreditsTable.tsx:83 msgid "Amount Tradable" msgstr "" @@ -392,7 +405,7 @@ msgstr "" msgid "approved methodologies" msgstr "" -#: src/pages/Marketplace/Storefront/Storefront.tsx:379 +#: src/pages/Marketplace/Storefront/Storefront.tsx:399 msgid "Are you sure would you like to cancel this sell order?" msgstr "" @@ -404,7 +417,11 @@ msgstr "" msgid "Are you sure you want to delete this post?" msgstr "" -#: src/components/organisms/BasketsTable.tsx:51 +#: src/lib/constants/shared.constants.tsx:114 +msgid "Are you sure you want to discard your changes?" +msgstr "" + +#: src/components/organisms/BasketsTable.tsx:54 msgid "Asset" msgstr "" @@ -432,7 +449,7 @@ msgstr "" msgid "Available" msgstr "" -#: src/pages/ProjectEdit/ProjectEdit.tsx:245 +#: src/pages/ProjectEdit/ProjectEdit.tsx:250 msgid "back to projects" msgstr "" @@ -441,11 +458,11 @@ msgid "Background image" msgstr "" #: src/pages/BasicInfo/BasicInfo.tsx:66 -#: src/pages/ProjectReview/ProjectReview.tsx:187 +#: src/pages/ProjectReview/ProjectReview.tsx:193 msgid "Basic Info" msgstr "" -#: src/components/organisms/BasketEcocreditsTable/BasketEcocreditsTable.tsx:49 +#: src/components/organisms/BasketEcocreditsTable/BasketEcocreditsTable.tsx:50 msgid "basket ecocredits table" msgstr "" @@ -453,7 +470,7 @@ msgstr "" msgid "Basket Tokens" msgstr "" -#: src/components/organisms/BasketsTable.tsx:38 +#: src/components/organisms/BasketsTable.tsx:40 msgid "baskets table" msgstr "" @@ -466,8 +483,8 @@ msgid "Batch denom" msgstr "" #: src/components/molecules/BatchInfoGrid.tsx:34 -#: src/components/organisms/BasketEcocreditsTable/BasketEcocreditsTable.tsx:59 -#: src/components/organisms/EcocreditsTable.tsx:76 +#: src/components/organisms/BasketEcocreditsTable/BasketEcocreditsTable.tsx:61 +#: src/components/organisms/EcocreditsTable.tsx:79 msgid "Batch Denom" msgstr "" @@ -483,10 +500,10 @@ msgstr "" msgid "Batch denom:" msgstr "" -#: src/components/organisms/BasketEcocreditsTable/BasketEcocreditsTable.tsx:70 -#: src/components/organisms/BridgableEcocreditsTable/BridgableEcocreditsTable.tsx:140 -#: src/components/organisms/BridgedEcocreditsTable/BridgedEcocreditsTable.tsx:153 -#: src/components/organisms/EcocreditsTable.tsx:100 +#: src/components/organisms/BasketEcocreditsTable/BasketEcocreditsTable.tsx:72 +#: src/components/organisms/BridgableEcocreditsTable/BridgableEcocreditsTable.tsx:142 +#: src/components/organisms/BridgedEcocreditsTable/BridgedEcocreditsTable.tsx:155 +#: src/components/organisms/EcocreditsTable.tsx:103 #: src/components/organisms/RetirementCertificatesTable/RetirementCertificatesTable.headers.tsx:51 msgid "Batch End Date" msgstr "" @@ -499,10 +516,10 @@ msgstr "" msgid "Batch start and end date" msgstr "" -#: src/components/organisms/BasketEcocreditsTable/BasketEcocreditsTable.tsx:67 -#: src/components/organisms/BridgableEcocreditsTable/BridgableEcocreditsTable.tsx:135 -#: src/components/organisms/BridgedEcocreditsTable/BridgedEcocreditsTable.tsx:148 -#: src/components/organisms/EcocreditsTable.tsx:99 +#: src/components/organisms/BasketEcocreditsTable/BasketEcocreditsTable.tsx:69 +#: src/components/organisms/BridgableEcocreditsTable/BridgableEcocreditsTable.tsx:137 +#: src/components/organisms/BridgedEcocreditsTable/BridgedEcocreditsTable.tsx:150 +#: src/components/organisms/EcocreditsTable.tsx:102 #: src/components/organisms/RetirementCertificatesTable/RetirementCertificatesTable.headers.tsx:48 msgid "Batch Start Date" msgstr "" @@ -516,7 +533,8 @@ msgid "block height" msgstr "" #: src/components/organisms/PostFlow/PostFlow.constants.ts:49 -#: src/pages/ProjectFinished/ProjectFinished.tsx:82 +#: src/lib/constants/shared.constants.tsx:122 +#: src/pages/ProjectFinished/ProjectFinished.tsx:89 msgid "blockchain record" msgstr "" @@ -528,6 +546,10 @@ msgstr "" msgid "blockchain record:" msgstr "" +#: src/components/organisms/RegistryLayout/RegistryLayout.constants.ts:22 +msgid "Blockchain-based actions such as buying are only possible with a wallet address. Please set up a Keplr wallet in order to continue." +msgstr "" + #: src/components/organisms/SellOrdersActionsBar/SellOrdersActionsBar.constants.ts:8 msgid "book a call" msgstr "" @@ -536,7 +558,7 @@ msgstr "" msgid "Bridgable ecocredits" msgstr "" -#: src/components/organisms/BridgableEcocreditsTable/BridgableEcocreditsTable.tsx:80 +#: src/components/organisms/BridgableEcocreditsTable/BridgableEcocreditsTable.tsx:81 msgid "bridgable ecocredits table" msgstr "" @@ -554,7 +576,7 @@ msgstr "" msgid "Bridged ecocredits" msgstr "" -#: src/components/organisms/BridgedEcocreditsTable/BridgedEcocreditsTable.tsx:84 +#: src/components/organisms/BridgedEcocreditsTable/BridgedEcocreditsTable.tsx:85 msgid "bridged ecocredits table" msgstr "" @@ -600,8 +622,8 @@ msgstr "" msgid "BUY CREDITS" msgstr "" -#: src/features/marketplace/BuySellOrderFlow/BuySellOrderFlow.tsx:124 -#: src/features/marketplace/CreateSellOrderFlow/CreateSellOrderFlow.tsx:80 +#: src/features/marketplace/BuySellOrderFlow/BuySellOrderFlow.tsx:135 +#: src/features/marketplace/CreateSellOrderFlow/CreateSellOrderFlow.tsx:90 msgid "Buy Credits Error" msgstr "" @@ -689,7 +711,7 @@ msgstr "" msgid "change admin" msgstr "" -#: src/pages/ProjectEdit/ProjectEdit.tsx:277 +#: src/pages/ProjectEdit/ProjectEdit.tsx:282 msgid "Changes have been saved" msgstr "" @@ -697,6 +719,11 @@ msgstr "" msgid "Character" msgstr "" +#: src/components/organisms/RegistryLayout/RegistryLayout.constants.ts:14 +#: src/components/organisms/RegistryLayout/RegistryLayout.constants.ts:16 +msgid "Check your wallet for a confirmation popup." +msgstr "" + #: src/components/organisms/MediaForm/MediaForm.constants.ts:9 msgid "Choose 2-10 photos for the photo gallery." msgstr "" @@ -762,7 +789,7 @@ msgstr "" msgid "Class ID: unique identifier of the credit class on Regen Ledger." msgstr "" -#: src/pages/Projects/AllProjects/AllProjects.SideFilter.tsx:164 +#: src/pages/Projects/AllProjects/AllProjects.SideFilter.tsx:165 msgid "Clear all" msgstr "" @@ -770,12 +797,14 @@ msgstr "" msgid "Click on the confirmation link to return to Regen Network." msgstr "" -#: src/features/marketplace/CreateSellOrderFlow/CreateSellOrderFlow.tsx:196 +#: src/features/marketplace/CreateSellOrderFlow/CreateSellOrderFlow.tsx:213 +#: src/pages/ProjectReview/ProjectReview.tsx:376 msgid "close" msgstr "" #: src/components/organisms/RegistryLayout/RegistryLayout.constants.ts:4 -#: src/features/marketplace/BridgeFlow/BridgeFlow.tsx:191 +#: src/features/marketplace/BridgeFlow/BridgeFlow.tsx:209 +#: src/lib/constants/shared.constants.tsx:123 msgid "CLOSE WINDOW" msgstr "" @@ -808,7 +837,11 @@ msgstr "" msgid "Congrats! Your purchase was successful." msgstr "" -#: src/components/organisms/UserAccountSettings/UserAccountSettings.tsx:82 +#: src/lib/constants/shared.constants.tsx:121 +msgid "Congrats! Your transaction was successful." +msgstr "" + +#: src/components/organisms/UserAccountSettings/UserAccountSettings.tsx:87 msgid "connect" msgstr "" @@ -816,7 +849,7 @@ msgstr "" msgid "CONNECT" msgstr "" -#: src/components/organisms/UserAccountSettings/UserAccountSettings.tsx:147 +#: src/components/organisms/UserAccountSettings/UserAccountSettings.tsx:155 msgid "Connect a wallet address to be able to perform on chain tasks such as buying and selling credits, and creating projects on Regen Ledger." msgstr "" @@ -828,6 +861,10 @@ msgstr "" msgid "connect wallet" msgstr "" +#: src/components/organisms/RegistryLayout/RegistryLayout.constants.ts:13 +msgid "Connect wallet address" +msgstr "" + #: src/pages/CreditClassDetails/CreditClassDetailsWithContent/CreditClassDetailsWithContent.constants.ts:35 msgid "Consumer/Individual/myself" msgstr "" @@ -844,6 +881,10 @@ msgstr "" msgid "Copy and paste an embeddable video url. Supported types include: YouTube, Facebook, Vimeo, Twitch, and DailyMotion." msgstr "" +#: src/lib/constants/shared.constants.tsx:128 +msgid "Copy link to profile" +msgstr "" + #: src/components/templates/ProjectDetails/ProjectDetails.constant.ts:15 msgid "Copy link to project page" msgstr "" @@ -871,8 +912,8 @@ msgstr "" msgid "Create Credit Batch" msgstr "" -#: src/components/organisms/CreditClassForms/CreateCreditClassForm.tsx:24 -#: src/components/organisms/CreditClassForms/CreateCreditClassForm.tsx:25 +#: src/components/organisms/CreditClassForms/CreateCreditClassForm.tsx:30 +#: src/components/organisms/CreditClassForms/CreateCreditClassForm.tsx:31 #: src/components/organisms/CreditClassForms/CreditClassFinished.tsx:28 msgid "Create Credit Class" msgstr "" @@ -886,7 +927,7 @@ msgid "create post" msgstr "" #: src/components/molecules/PlanStepper.tsx:16 -#: src/pages/ProjectFinished/ProjectFinished.tsx:61 +#: src/pages/ProjectFinished/ProjectFinished.tsx:62 msgid "Create Project" msgstr "" @@ -928,19 +969,19 @@ msgstr "" msgid "credit batch id" msgstr "" -#: src/components/organisms/BridgableEcocreditsTable/BridgableEcocreditsTable.tsx:113 -#: src/components/organisms/BridgedEcocreditsTable/BridgedEcocreditsTable.tsx:129 +#: src/components/organisms/BridgableEcocreditsTable/BridgableEcocreditsTable.tsx:115 +#: src/components/organisms/BridgedEcocreditsTable/BridgedEcocreditsTable.tsx:131 msgid "Credit Batch Id" msgstr "" -#: src/components/organisms/CreditBatches/CreditBatches.tsx:112 +#: src/components/organisms/CreditBatches/CreditBatches.tsx:113 msgid "credit batch table" msgstr "" -#: src/components/organisms/CreditBatches/CreditBatches.tsx:224 +#: src/components/organisms/CreditBatches/CreditBatches.tsx:226 #: src/components/organisms/CreditBatchesSection/CreditBatchesSection.tsx:24 #: src/pages/Dashboard/Dashboard.constants.tsx:37 -#: src/pages/EcocreditsByAccount/EcocreditsByAccount.tsx:86 +#: src/pages/EcocreditsByAccount/EcocreditsByAccount.tsx:93 msgid "Credit Batches" msgstr "" @@ -954,10 +995,10 @@ msgid "Credit class" msgstr "" #: src/components/molecules/BatchInfoGrid.tsx:47 -#: src/components/organisms/BasketEcocreditsTable/BasketEcocreditsTable.tsx:64 -#: src/components/organisms/BridgableEcocreditsTable/BridgableEcocreditsTable.tsx:120 -#: src/components/organisms/BridgedEcocreditsTable/BridgedEcocreditsTable.tsx:136 -#: src/components/organisms/EcocreditsTable.tsx:78 +#: src/components/organisms/BasketEcocreditsTable/BasketEcocreditsTable.tsx:66 +#: src/components/organisms/BridgableEcocreditsTable/BridgableEcocreditsTable.tsx:122 +#: src/components/organisms/BridgedEcocreditsTable/BridgedEcocreditsTable.tsx:138 +#: src/components/organisms/EcocreditsTable.tsx:81 #: src/components/organisms/RetirementCertificatesTable/RetirementCertificatesTable.headers.tsx:39 #: src/pages/Projects/AllProjects/AllProjects.constants.ts:10 msgid "Credit Class" @@ -968,7 +1009,7 @@ msgstr "" msgid "CREDIT CLASS" msgstr "" -#: src/pages/CreditClassDetails/CreditClassDetailsSimple/CreditClassDetailsSimple.tsx:168 +#: src/pages/CreditClassDetails/CreditClassDetailsSimple/CreditClassDetailsSimple.tsx:173 msgid "credit class <0/>" msgstr "" @@ -998,7 +1039,7 @@ msgstr "" #: src/components/organisms/RegistryLayout/RegistryLayout.Footer.tsx:28 #: src/pages/Dashboard/Dashboard.constants.tsx:31 -#: src/pages/EcocreditsByAccount/EcocreditsByAccount.tsx:80 +#: src/pages/EcocreditsByAccount/EcocreditsByAccount.tsx:87 #: src/pages/Home/Home.tsx:177 msgid "Credit Classes" msgstr "" @@ -1049,7 +1090,7 @@ msgstr "" msgid "Credits" msgstr "" -#: src/components/organisms/EcocreditsTable.tsx:93 +#: src/components/organisms/EcocreditsTable.tsx:96 msgid "Credits are held in escrow when a sell order is created, and taken out of escrow when the sell order is either cancelled, updated with a reduced quantity, or processed." msgstr "" @@ -1144,7 +1185,7 @@ msgstr "" msgid "Customer info" msgstr "" -#: src/pages/Dashboard/Dashboard.tsx:136 +#: src/pages/Dashboard/Dashboard.tsx:148 msgid "dashboard tabs" msgstr "" @@ -1156,6 +1197,10 @@ msgstr "" msgid "date" msgstr "" +#: src/components/organisms/Documentation/Documentation.constants.ts:10 +msgid "Date of upload" +msgstr "" + #: src/components/organisms/ConnectWalletFlow/ConnectWalletFlow.SelectAccountModal.tsx:65 #: src/components/organisms/RegistryLayout/RegistryLayout.constants.ts:12 msgid "default avatar" @@ -1173,7 +1218,7 @@ msgstr "" #: src/components/organisms/EditProfileForm/EditProfileForm.tsx:206 #: src/components/organisms/RolesForm/components/ProfileModal/ProfileModal.tsx:155 #: src/pages/Description/Description.tsx:48 -#: src/pages/ProjectReview/ProjectReview.tsx:215 +#: src/pages/ProjectReview/ProjectReview.tsx:221 msgid "Description" msgstr "" @@ -1185,11 +1230,19 @@ msgstr "" msgid "DISCOVER PROJECTS" msgstr "" -#: src/components/organisms/Documentation.tsx:49 +#: src/components/organisms/Documentation/Documentation.constants.ts:9 +msgid "Document type" +msgstr "" + +#: src/components/organisms/Documentation/Documentation.tsx:59 #: src/components/organisms/MethodologyDocumentationSection.tsx:79 msgid "Documentation" msgstr "" +#: src/components/organisms/Documentation/Documentation.constants.ts:14 +msgid "documentation table" +msgstr "" + #: src/components/organisms/IncludesGrasslandsForm.tsx:65 msgid "Does your project include grasslands?" msgstr "" @@ -1268,11 +1321,11 @@ msgstr "" msgid "ecocredits retired" msgstr "" -#: src/components/organisms/EcocreditsTable.tsx:57 +#: src/components/organisms/EcocreditsTable.tsx:59 msgid "ecocredits table" msgstr "" -#: src/components/organisms/RetirementCertificatesTable/RetirementCertificatesTable.tsx:60 +#: src/components/organisms/RetirementCertificatesTable/RetirementCertificatesTable.tsx:61 msgid "Ecocredits table" msgstr "" @@ -1293,11 +1346,15 @@ msgstr "" msgid "Ecological Outcomes" msgstr "" +#: src/lib/constants/shared.constants.tsx:132 +msgid "Ecosystem" +msgstr "" + #: src/pages/CreditClassDetails/CreditClassDetails.AdditionalInfo.tsx:93 msgid "ecosystem type" msgstr "" -#: src/pages/ProjectFinished/ProjectFinished.tsx:108 +#: src/pages/ProjectFinished/ProjectFinished.tsx:117 msgid "edit" msgstr "" @@ -1322,6 +1379,10 @@ msgstr "" msgid "Edit profile" msgstr "" +#: src/lib/constants/shared.constants.tsx:127 +msgid "Edit Profile" +msgstr "" + #: src/pages/ProjectEdit/ProjectEdit.constants.ts:5 msgid "edit project" msgstr "" @@ -1330,7 +1391,7 @@ msgstr "" msgid "Edit Project - Access Denied" msgstr "" -#: src/pages/ProjectEdit/ProjectEdit.tsx:263 +#: src/pages/ProjectEdit/ProjectEdit.tsx:268 msgid "Edit Project Page" msgstr "" @@ -1371,7 +1432,7 @@ msgstr "" msgid "Equivalent to" msgstr "" -#: src/pages/ProjectReview/ProjectReview.tsx:158 +#: src/pages/ProjectReview/ProjectReview.tsx:164 msgid "Error getting ISO string for jurisdiction. Please edit your location." msgstr "" @@ -1433,9 +1494,14 @@ msgid "Files" msgstr "" #: src/components/templates/ProjectDetails/ProjectDetails.constant.ts:21 +#: src/pages/Post/Post.constants.ts:21 msgid "Files are private" msgstr "" +#: src/pages/Post/Post.constants.ts:18 +msgid "Files available on request" +msgstr "" + #: src/components/organisms/PostForm/PostForm.tsx:453 msgid "Files can still be shared privately via secret link." msgstr "" @@ -1445,8 +1511,8 @@ msgid "Filters" msgstr "" #: src/components/molecules/PlanStepper.tsx:18 -#: src/components/organisms/CreditClassForms/CreateCreditClassForm.tsx:36 -#: src/components/organisms/CreditClassForms/CreateCreditClassForm.tsx:37 +#: src/components/organisms/CreditClassForms/CreateCreditClassForm.tsx:42 +#: src/components/organisms/CreditClassForms/CreateCreditClassForm.tsx:43 #: src/features/ecocredit/CreateBatchBySteps/form-model.ts:72 msgid "Finished" msgstr "" @@ -1459,6 +1525,10 @@ msgstr "" msgid "For Buyers" msgstr "" +#: src/pages/ErrorPage/ErrorPage.contants.ts:4 +msgid "For help resolving an issue, reach out to support@regen.network." +msgstr "" + #: src/pages/LandStewards/LandStewards.tsx:99 msgid "For Land Stewards" msgstr "" @@ -1550,6 +1620,10 @@ msgstr "" msgid "If you merge these accounts, you can log in with either your wallet address, email or google to the same account." msgstr "" +#: src/lib/constants/shared.constants.tsx:115 +msgid "If you proceed, you will lose all unsaved changes you made. This cannot be undone." +msgstr "" + #: src/components/organisms/PostForm/PostForm.constants.ts:4 msgid "If you select one of the following options, you will still be able to share the post, files, or location data privately via a secret link." msgstr "" @@ -1574,7 +1648,7 @@ msgstr "" msgid "In one sentence, summarize the story above." msgstr "" -#: src/components/organisms/UserAccountSettings/UserAccountSettings.tsx:167 +#: src/components/organisms/UserAccountSettings/UserAccountSettings.tsx:175 msgid "In order to buy and retire ecocredits using credit card payment, we may generate a dedicated hosted wallet address to use as the recipient of the retired blockchain credits. Please do not send funds or tradable credits to this address, as you will not have the ability to initiate transactions from this account.<0>Learn more»" msgstr "" @@ -1618,10 +1692,10 @@ msgstr "" msgid "issuer" msgstr "" -#: src/components/organisms/BasketEcocreditsTable/BasketEcocreditsTable.tsx:61 -#: src/components/organisms/BridgableEcocreditsTable/BridgableEcocreditsTable.tsx:132 -#: src/components/organisms/BridgedEcocreditsTable/BridgedEcocreditsTable.tsx:145 -#: src/components/organisms/EcocreditsTable.tsx:98 +#: src/components/organisms/BasketEcocreditsTable/BasketEcocreditsTable.tsx:63 +#: src/components/organisms/BridgableEcocreditsTable/BridgableEcocreditsTable.tsx:134 +#: src/components/organisms/BridgedEcocreditsTable/BridgedEcocreditsTable.tsx:147 +#: src/components/organisms/EcocreditsTable.tsx:101 #: src/components/organisms/RetirementCertificatesTable/RetirementCertificatesTable.headers.tsx:45 msgid "Issuer" msgstr "" @@ -1639,7 +1713,7 @@ msgstr "" msgid "join the community" msgstr "" -#: src/pages/ProjectReview/ProjectReview.tsx:212 +#: src/pages/ProjectReview/ProjectReview.tsx:218 msgid "Jurisdiction" msgstr "" @@ -1673,6 +1747,7 @@ msgid "Last Updated:" msgstr "" #: src/components/organisms/RegistryLayout/components/ConnectWalletModal/ConnectWalletModal.constants.ts:5 +#: src/components/organisms/RegistryLayout/RegistryLayout.constants.ts:23 msgid "Learn how to" msgstr "" @@ -1725,7 +1800,7 @@ msgid "listen to podcast" msgstr "" #: src/components/organisms/MediaForm/MediaForm.constants.ts:24 -#: src/pages/ProjectReview/ProjectReview.tsx:272 +#: src/pages/ProjectReview/ProjectReview.tsx:278 msgid "Loading video player..." msgstr "" @@ -1736,16 +1811,21 @@ msgstr "" #: src/components/organisms/EditFileForm/EditFileForm.tsx:135 #: src/lib/constants/shared.constants.tsx:70 #: src/pages/ProjectLocation/ProjectLocation.tsx:44 -#: src/pages/ProjectReview/ProjectReview.tsx:205 +#: src/pages/ProjectReview/ProjectReview.tsx:211 msgid "Location" msgstr "" +#: src/pages/Post/Post.constants.ts:19 +msgid "Location data available on request" +msgstr "" + #: src/components/molecules/BottomCreditRetireFields/BottomCreditRetireFields.tsx:99 #: src/lib/constants/shared.constants.tsx:45 msgid "Location of retirement" msgstr "" #: src/components/templates/ProjectDetails/ProjectDetails.constant.ts:22 +#: src/pages/Post/Post.constants.ts:20 msgid "Locations are private" msgstr "" @@ -1755,7 +1835,7 @@ msgstr "" msgid "log in" msgstr "" -#: src/components/organisms/UserAccountSettings/UserAccountSettings.constants.ts:6 +#: src/components/organisms/UserAccountSettings/UserAccountSettings.constants.ts:8 msgid "Log in email successfully added" msgstr "" @@ -1767,7 +1847,7 @@ msgstr "" msgid "Log out" msgstr "" -#: src/components/organisms/UserAccountSettings/UserAccountSettings.tsx:70 +#: src/components/organisms/UserAccountSettings/UserAccountSettings.tsx:75 msgid "Login Email" msgstr "" @@ -1824,7 +1904,7 @@ msgid "measurement approach" msgstr "" #: src/pages/Media/Media.tsx:72 -#: src/pages/ProjectReview/ProjectReview.tsx:230 +#: src/pages/ProjectReview/ProjectReview.tsx:236 msgid "Media" msgstr "" @@ -1840,7 +1920,7 @@ msgstr "" #: src/components/organisms/CreditClassForms/CreditClassForm.tsx:105 #: src/components/organisms/CreditClassForms/CreditClassReview.tsx:40 #: src/pages/ProjectMetadata/ProjectMetadata.tsx:72 -#: src/pages/ProjectReview/ProjectReview.tsx:309 +#: src/pages/ProjectReview/ProjectReview.tsx:315 msgid "Metadata" msgstr "" @@ -1890,7 +1970,7 @@ msgstr "" msgid "Move up" msgstr "" -#: src/pages/ProjectReview/ProjectReview.tsx:99 +#: src/pages/ProjectReview/ProjectReview.tsx:105 msgid "MsgCreateProject Error" msgstr "" @@ -1909,10 +1989,14 @@ msgstr "" #: src/components/organisms/EditProfileForm/EditProfileForm.tsx:158 #: src/components/organisms/RolesForm/components/ProfileModal/ProfileModal.tsx:131 -#: src/pages/ProjectReview/ProjectReview.tsx:192 +#: src/pages/ProjectReview/ProjectReview.tsx:198 msgid "Name" msgstr "" +#: src/components/organisms/Documentation/Documentation.constants.ts:8 +msgid "Name of document" +msgstr "" + #: src/components/organisms/AdditionalityForm.tsx:214 msgid "Natural ecosystem, unmanaged" msgstr "" @@ -1947,7 +2031,7 @@ msgstr "" msgid "Next" msgstr "" -#: src/components/organisms/BasketsTable.tsx:30 +#: src/components/organisms/BasketsTable.tsx:32 msgid "No basket tokens to display" msgstr "" @@ -1963,12 +2047,12 @@ msgstr "" msgid "No credit batches to display" msgstr "" -#: src/components/organisms/CreditBatches/CreditBatches.tsx:92 +#: src/components/organisms/CreditBatches/CreditBatches.tsx:93 msgid "No credits issued" msgstr "" -#: src/components/organisms/BasketEcocreditsTable/BasketEcocreditsTable.tsx:44 -#: src/components/organisms/EcocreditsTable.tsx:49 +#: src/components/organisms/BasketEcocreditsTable/BasketEcocreditsTable.tsx:45 +#: src/components/organisms/EcocreditsTable.tsx:51 msgid "No ecocredits to display" msgstr "" @@ -1980,11 +2064,11 @@ msgstr "" msgid "No options available" msgstr "" -#: src/components/organisms/RetirementCertificatesTable/RetirementCertificatesTable.tsx:52 +#: src/components/organisms/RetirementCertificatesTable/RetirementCertificatesTable.tsx:53 msgid "No retirements to display" msgstr "" -#: src/components/organisms/SellOrdersTable/SellOrdersTable.tsx:52 +#: src/components/organisms/SellOrdersTable/SellOrdersTable.tsx:55 msgid "No sell orders found" msgstr "" @@ -2004,7 +2088,7 @@ msgstr "" msgid "Not connected" msgstr "" -#: src/components/organisms/BridgedEcocreditsTable/BridgedEcocreditsTable.tsx:112 +#: src/components/organisms/BridgedEcocreditsTable/BridgedEcocreditsTable.tsx:114 msgid "Note / Link" msgstr "" @@ -2046,6 +2130,10 @@ msgstr "" msgid "Only the locations of the files will be hidden from public view." msgstr "" +#: src/lib/constants/shared.constants.tsx:136 +msgid "Oops! Page not found." +msgstr "" + #: src/components/organisms/LoginModal/components/LoginModal.Select.tsx:64 msgid "or, log in with email / social" msgstr "" @@ -2082,9 +2170,14 @@ msgstr "" #: src/components/organisms/MediaForm/MediaFormPhotos.tsx:221 #: src/components/organisms/MediaForm/MediaFormPhotos.tsx:340 #: src/components/organisms/MediaForm/MediaFormStory.tsx:209 +#: src/lib/constants/shared.constants.tsx:126 msgid "Photo credit" msgstr "" +#: src/lib/constants/shared.constants.tsx:111 +msgid "Please check your email" +msgstr "" + #: src/lib/constants/shared.constants.tsx:96 msgid "Please choose a denom" msgstr "" @@ -2136,6 +2229,10 @@ msgstr "" msgid "Please enter a valid VCS Project ID" msgstr "" +#: src/lib/constants/shared.constants.tsx:113 +msgid "Please enter the code from that email:" +msgstr "" + #: src/lib/constants/shared.constants.tsx:93 msgid "Please enter valid JSON-LD" msgstr "" @@ -2144,6 +2241,10 @@ msgstr "" msgid "Please purchase some REGEN to cover the transaction fees for this action." msgstr "" +#: src/components/organisms/RegistryLayout/RegistryLayout.constants.ts:24 +msgid "Please select the following wallet address in Keplr in order to proceed" +msgstr "" + #: src/components/organisms/ProjectDenied/ProjectDenied.tsx:71 msgid "Please select this address in keplr in order to access this page." msgstr "" @@ -2152,8 +2253,16 @@ msgstr "" msgid "Please select which profile info you want to keep for your new merged account" msgstr "" +#: src/components/organisms/RegistryLayout/RegistryLayout.constants.ts:20 +msgid "Please switch to this address in Keplr to access this profile." +msgstr "" + +#: src/lib/constants/shared.constants.tsx:117 +msgid "Please wait while transaction processes" +msgstr "" + #: src/pages/Dashboard/Dashboard.constants.tsx:19 -#: src/pages/EcocreditsByAccount/EcocreditsByAccount.tsx:67 +#: src/pages/EcocreditsByAccount/EcocreditsByAccount.tsx:74 msgid "Portfolio" msgstr "" @@ -2294,10 +2403,10 @@ msgstr "" #: src/components/molecules/BatchInfoGrid.tsx:37 #: src/components/molecules/ProjectSelect.tsx:84 -#: src/components/organisms/BasketEcocreditsTable/BasketEcocreditsTable.tsx:56 -#: src/components/organisms/BridgableEcocreditsTable/BridgableEcocreditsTable.tsx:100 -#: src/components/organisms/BridgedEcocreditsTable/BridgedEcocreditsTable.tsx:116 -#: src/components/organisms/EcocreditsTable.tsx:65 +#: src/components/organisms/BasketEcocreditsTable/BasketEcocreditsTable.tsx:58 +#: src/components/organisms/BridgableEcocreditsTable/BridgableEcocreditsTable.tsx:102 +#: src/components/organisms/BridgedEcocreditsTable/BridgedEcocreditsTable.tsx:118 +#: src/components/organisms/EcocreditsTable.tsx:68 #: src/components/organisms/RetirementCertificatesTable/RetirementCertificatesTable.headers.tsx:18 #: src/pages/Certificate/Certificate.constants.ts:14 #: src/pages/Certificate/Certificate.utils.ts:36 @@ -2308,7 +2417,7 @@ msgstr "" msgid "PROJECT" msgstr "" -#: src/components/organisms/ProjectTopSection/ProjectTopSection.tsx:142 +#: src/components/organisms/ProjectTopSection/ProjectTopSection.tsx:148 msgid "Project {onChainProjectId}" msgstr "" @@ -2321,6 +2430,10 @@ msgstr "" msgid "Project activity" msgstr "" +#: src/lib/constants/shared.constants.tsx:131 +msgid "Project Activity" +msgstr "" + #: src/pages/ProjectReview/ProjectReview.VCSMetadata.tsx:28 msgid "Project activity url" msgstr "" @@ -2345,12 +2458,12 @@ msgstr "" msgid "project end date" msgstr "" -#: src/pages/ProjectFinished/ProjectFinished.tsx:49 +#: src/pages/ProjectFinished/ProjectFinished.tsx:50 msgid "Project has been created!" msgstr "" #: src/components/molecules/ProjectPageMetadata/ProjectPageMetadata.tsx:72 -#: src/pages/ProjectFinished/ProjectFinished.tsx:65 +#: src/pages/ProjectFinished/ProjectFinished.tsx:68 msgid "project id" msgstr "" @@ -2366,10 +2479,10 @@ msgstr "" msgid "Project location" msgstr "" -#: src/components/organisms/BasketEcocreditsTable/BasketEcocreditsTable.tsx:72 -#: src/components/organisms/BridgableEcocreditsTable/BridgableEcocreditsTable.tsx:143 -#: src/components/organisms/BridgedEcocreditsTable/BridgedEcocreditsTable.tsx:156 -#: src/components/organisms/EcocreditsTable.tsx:101 +#: src/components/organisms/BasketEcocreditsTable/BasketEcocreditsTable.tsx:74 +#: src/components/organisms/BridgableEcocreditsTable/BridgableEcocreditsTable.tsx:145 +#: src/components/organisms/BridgedEcocreditsTable/BridgedEcocreditsTable.tsx:158 +#: src/components/organisms/EcocreditsTable.tsx:104 #: src/components/organisms/RetirementCertificatesTable/RetirementCertificatesTable.headers.tsx:57 msgid "Project Location" msgstr "" @@ -2386,7 +2499,7 @@ msgstr "" msgid "Project methodology" msgstr "" -#: src/pages/ProjectFinished/ProjectFinished.tsx:73 +#: src/pages/ProjectFinished/ProjectFinished.tsx:78 msgid "project name" msgstr "" @@ -2440,7 +2553,7 @@ msgstr "" #: src/components/organisms/RegistryLayout/RegistryLayout.Footer.tsx:24 #: src/pages/CreditClassDetails/CreditClassDetails.Projects.tsx:43 #: src/pages/Dashboard/Dashboard.constants.tsx:25 -#: src/pages/EcocreditsByAccount/EcocreditsByAccount.tsx:74 +#: src/pages/EcocreditsByAccount/EcocreditsByAccount.tsx:81 msgid "Projects" msgstr "" @@ -2448,7 +2561,7 @@ msgstr "" msgid "projects tabs" msgstr "" -#: src/pages/EcocreditsByAccount/EcocreditsByAccount.tsx:152 +#: src/pages/EcocreditsByAccount/EcocreditsByAccount.tsx:164 msgid "public profile tabs" msgstr "" @@ -2511,7 +2624,7 @@ msgstr "" msgid "Regen Data Provider" msgstr "" -#: src/components/organisms/UserAccountSettings/UserAccountSettings.tsx:164 +#: src/components/organisms/UserAccountSettings/UserAccountSettings.tsx:172 msgid "Regen impact address" msgstr "" @@ -2658,11 +2771,11 @@ msgid "Retirement reason" msgstr "" #: src/components/molecules/PlanStepper.tsx:17 -#: src/components/organisms/CreditClassForms/CreateCreditClassForm.tsx:31 -#: src/components/organisms/CreditClassForms/CreateCreditClassForm.tsx:32 +#: src/components/organisms/CreditClassForms/CreateCreditClassForm.tsx:37 +#: src/components/organisms/CreditClassForms/CreateCreditClassForm.tsx:38 #: src/features/ecocredit/CreateBatchBySteps/form-model.ts:67 #: src/features/ecocredit/CreateBatchBySteps/form-model.ts:68 -#: src/pages/ProjectReview/ProjectReview.tsx:183 +#: src/pages/ProjectReview/ProjectReview.tsx:189 msgid "Review" msgstr "" @@ -2747,7 +2860,7 @@ msgstr "" msgid "Select a wallet" msgstr "" -#: src/pages/Projects/AllProjects/AllProjects.SideFilter.tsx:142 +#: src/pages/Projects/AllProjects/AllProjects.SideFilter.tsx:143 msgid "Select all" msgstr "" @@ -2772,8 +2885,8 @@ msgstr "" msgid "sell order id:" msgstr "" -#: src/components/organisms/SellOrdersTable/SellOrdersTable.tsx:40 -#: src/pages/Marketplace/Storefront/Storefront.tsx:237 +#: src/components/organisms/SellOrdersTable/SellOrdersTable.tsx:42 +#: src/pages/Marketplace/Storefront/Storefront.tsx:248 msgid "Sell orders" msgstr "" @@ -2808,6 +2921,7 @@ msgstr "" msgid "share" msgstr "" +#: src/lib/constants/shared.constants.tsx:133 #: src/pages/Certificate/Certificate.tsx:74 msgid "Share" msgstr "" @@ -2848,7 +2962,7 @@ msgstr "" msgid "Signing failed" msgstr "" -#: src/pages/ProjectReview/ProjectReview.tsx:195 +#: src/pages/ProjectReview/ProjectReview.tsx:201 msgid "Size" msgstr "" @@ -2873,7 +2987,7 @@ msgstr "" msgid "Small or Medium Sized Business" msgstr "" -#: src/components/organisms/UserAccountSettings/UserAccountSettings.tsx:119 +#: src/components/organisms/UserAccountSettings/UserAccountSettings.tsx:127 msgid "Social Accounts" msgstr "" @@ -2889,7 +3003,7 @@ msgstr "" msgid "Sorry, something went wrong!" msgstr "" -#: src/components/organisms/UserAccountSettings/UserAccountSettings.constants.ts:3 +#: src/components/organisms/UserAccountSettings/UserAccountSettings.constants.ts:5 msgid "Sorry, this email is already connected to another account" msgstr "" @@ -2898,6 +3012,7 @@ msgid "Sorry, you don’t have any REGEN to cover transaction fees" msgstr "" #: src/features/ecocredit/CreateBatchBySteps/form-model.ts:75 +#: src/lib/constants/shared.constants.tsx:119 msgid "Sorry, your transaction was not successful." msgstr "" @@ -2934,7 +3049,7 @@ msgstr "" msgid "Stats" msgstr "" -#: src/components/organisms/BridgedEcocreditsTable/BridgedEcocreditsTable.tsx:93 +#: src/components/organisms/BridgedEcocreditsTable/BridgedEcocreditsTable.tsx:95 msgid "Status" msgstr "" @@ -2999,6 +3114,10 @@ msgstr "" msgid "Support" msgstr "" +#: src/components/organisms/RegistryLayout/RegistryLayout.constants.ts:18 +msgid "Switch wallet addresses in Keplr to add another address to your account" +msgstr "" + #: src/lib/constants/shared.constants.tsx:38 msgid "take from basket" msgstr "" @@ -3025,6 +3144,10 @@ msgstr "" msgid "Thanks for submitting your information!" msgstr "" +#: src/pages/ErrorPage/ErrorPage.contants.ts:3 +msgid "That's an error." +msgstr "" + #: src/components/organisms/RolesForm/components/AdminModal/AdminModal.constants.ts:3 msgid "The address should be different from the current address" msgstr "" @@ -3041,10 +3164,22 @@ msgstr "" msgid "The creator of this basket has chosen that all credits must be retired upon take." msgstr "" +#: src/components/organisms/RegistryLayout/RegistryLayout.constants.ts:19 +msgid "The current address is already linked to your account.\\nPlease first switch wallet addresses in the Keplr app to be able to add another address to your account." +msgstr "" + +#: src/components/organisms/RegistryLayout/RegistryLayout.constants.ts:25 +msgid "The email address you are using to log in is associated with the above wallet address, so it must be the currently selected account in Keplr in order to continue." +msgstr "" + #: src/components/organisms/RolesForm/RolesForm.tsx:216 msgid "The individual or organization that is in charge of managing the project and will appear on the project page." msgstr "" +#: src/lib/constants/shared.constants.tsx:137 +msgid "The page you are looking for might have been temporarily removed or had its name changed." +msgstr "" + #: src/components/organisms/PostForm/PostForm.tsx:475 msgid "The post and all of its contents will be hidden from public view." msgstr "" @@ -3109,6 +3244,10 @@ msgstr "" msgid "These credits will be retired upon purchase and will not be tradeable. Retirement is permanent and non-reversible." msgstr "" +#: src/components/organisms/RegistryLayout/RegistryLayout.constants.ts:15 +msgid "This address is already linked to another account. Remove it from that account and connect it to yours?" +msgstr "" + #: src/components/organisms/RolesForm/components/AdminModal/AdminModal.tsx:92 msgid "This change will only be made after you save the change and sign the transaction." msgstr "" @@ -3163,6 +3302,10 @@ msgstr "" msgid "This may take some time if your file size is large." msgstr "" +#: src/lib/constants/shared.constants.tsx:118 +msgid "This may take up to 15 seconds." +msgstr "" + #: src/components/organisms/PaymentInfoForm/PaymentInfoForm.CustomerInfo.tsx:61 msgid "This name will appear on the retirement certificate unless you choose to retire anonymously in the next step. It is also your user profile name." msgstr "" @@ -3187,12 +3330,12 @@ msgstr "" msgid "This wallet address is already in use by another account." msgstr "" -#: src/components/templates/ProjectDetails/ProjectDetails.ProjectTimeline.tsx:33 +#: src/components/templates/ProjectDetails/ProjectDetails.ProjectTimeline.tsx:34 #: src/pages/Post/Post.constants.ts:10 msgid "Timeline" msgstr "" -#: src/components/organisms/BridgedEcocreditsTable/BridgedEcocreditsTable.tsx:90 +#: src/components/organisms/BridgedEcocreditsTable/BridgedEcocreditsTable.tsx:92 msgid "Timestamp" msgstr "" @@ -3277,7 +3420,7 @@ msgstr "" msgid "tx hash" msgstr "" -#: src/components/organisms/BridgedEcocreditsTable/BridgedEcocreditsTable.tsx:89 +#: src/components/organisms/BridgedEcocreditsTable/BridgedEcocreditsTable.tsx:91 msgid "Tx Hash" msgstr "" @@ -3325,7 +3468,7 @@ msgstr "" msgid "Uploading image" msgstr "" -#: src/pages/ProjectFinished/ProjectFinished.tsx:91 +#: src/pages/ProjectFinished/ProjectFinished.tsx:100 msgid "url" msgstr "" @@ -3341,7 +3484,7 @@ msgstr "" msgid "Use my credit card on file ending in {0}" msgstr "" -#: src/components/organisms/UserAccountSettings/UserAccountSettings.tsx:122 +#: src/components/organisms/UserAccountSettings/UserAccountSettings.tsx:130 msgid "Use your social account to log in to Regen Marketplace." msgstr "" @@ -3349,6 +3492,14 @@ msgstr "" msgid "useMultiStep must be used within a MultiStepProvider" msgstr "" +#: src/lib/constants/shared.constants.tsx:130 +msgid "user profile avatar" +msgstr "" + +#: src/lib/constants/shared.constants.tsx:129 +msgid "user profile background image" +msgstr "" + #: src/components/organisms/BridgedEcocreditsTable/BridgedEcocreditsTable.Note.tsx:33 msgid "Usually takes <30 minutes to process. Please contact us at <0>support@regen.networkif more time has passed." msgstr "" @@ -3425,6 +3576,7 @@ msgstr "" msgid "view credit class doc" msgstr "" +#: src/components/organisms/Documentation/Documentation.constants.ts:16 #: src/components/organisms/MethodologyDocumentationSection.tsx:86 msgid "view document" msgstr "" @@ -3437,6 +3589,11 @@ msgstr "" msgid "view methodology" msgstr "" +#: src/components/organisms/Documentation/Documentation.constants.ts:15 +#: src/lib/constants/shared.constants.tsx:135 +msgid "view on ledger" +msgstr "" + #: src/features/marketplace/BridgeFlow/BridgeFlow.constants.ts:5 msgid "view pending bridged credits" msgstr "" @@ -3473,6 +3630,10 @@ msgstr "" msgid "View your ecocredits" msgstr "" +#: src/lib/constants/shared.constants.tsx:120 +msgid "view your portfolio" +msgstr "" + #: src/pages/Dashboard/MyEcocredits/MyEcocredits.constants.ts:14 msgid "VIEW YOUR PORTFOLIO" msgstr "" @@ -3481,11 +3642,15 @@ msgstr "" msgid "Visit toucan.earth to view the transaction." msgstr "" +#: src/lib/constants/shared.constants.tsx:139 +msgid "Visit Our Homepage <0> Instead" +msgstr "" + #: src/pages/EcocreditsByAccount/EcocreditsByAccount.constants.tsx:4 msgid "visit our homepage instead" msgstr "" -#: src/components/organisms/UserAccountSettings/UserAccountSettings.tsx:144 +#: src/components/organisms/UserAccountSettings/UserAccountSettings.tsx:152 msgid "Wallet integration" msgstr "" @@ -3509,6 +3674,7 @@ msgstr "" msgid "We will send your receipt to the email address below, which is already linked to your account." msgstr "" +#: src/lib/constants/shared.constants.tsx:112 #: src/pages/VerifyEmail/VerifyEmail.tsx:48 msgid "We've just sent a confirmation email to:" msgstr "" @@ -3529,7 +3695,7 @@ msgstr "" msgid "whoops, cancel" msgstr "" -#: src/pages/Marketplace/Storefront/Storefront.tsx:378 +#: src/pages/Marketplace/Storefront/Storefront.tsx:398 msgid "WHOOPS, EXIT" msgstr "" @@ -3553,7 +3719,7 @@ msgstr "" msgid "Write a short comment or longer project update." msgstr "" -#: src/pages/Marketplace/Storefront/Storefront.tsx:377 +#: src/pages/Marketplace/Storefront/Storefront.tsx:397 msgid "Yes, cancel sell order" msgstr "" @@ -3561,6 +3727,10 @@ msgstr "" msgid "yes, delete" msgstr "" +#: src/lib/constants/shared.constants.tsx:116 +msgid "yes, discard" +msgstr "" + #: src/pages/CreditClassDetails/CreditClassDetailsWithContent/CreditClassDetailsWithContent.constants.ts:3 msgid "Yes, I'm interested in buying credits for myself or my organization!" msgstr "" @@ -3577,6 +3747,10 @@ msgstr "" msgid "Yes, please create an account for me so I can easily see my purchase details and retirement certificate when I log in" msgstr "" +#: src/components/organisms/RegistryLayout/RegistryLayout.constants.ts:17 +msgid "yes, remove & connect" +msgstr "" + #: src/pages/ChooseCreditClass/ChooseCreditClass.tsx:59 msgid "You are not yet listed as an issuer on any credit classes" msgstr "" @@ -3622,7 +3796,7 @@ msgstr "" msgid "You don't have enough basket tokens" msgstr "" -#: src/components/organisms/UserAccountSettings/UserAccountSettings.constants.ts:4 +#: src/components/organisms/UserAccountSettings/UserAccountSettings.constants.ts:6 msgid "You entered:" msgstr "" @@ -3646,6 +3820,10 @@ msgstr "" msgid "You must agree to continue" msgstr "" +#: src/components/organisms/RegistryLayout/RegistryLayout.constants.ts:21 +msgid "You must connect a Keplr wallet address to your existing account in order to view this content." +msgstr "" + #: src/pages/ConnectWalletPage/ConnectWalletPage.constants.ts:3 msgid "You must connect to Keplr in order to view the content of this page." msgstr "" diff --git a/web-marketplace/src/lib/i18n/locales/es.po b/web-marketplace/src/lib/i18n/locales/es.po index 7ed67699d2..facbd9c1fb 100644 --- a/web-marketplace/src/lib/i18n/locales/es.po +++ b/web-marketplace/src/lib/i18n/locales/es.po @@ -1,6 +1,6 @@ msgid "" msgstr "" -"POT-Creation-Date: 2024-09-17 15:39+0200\n" +"POT-Creation-Date: 2024-09-18 09:25+0200\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -8,11 +8,16 @@ msgstr "" "Language: es\n" #: src/components/organisms/CreditActivityTable/CreditActivityTable.tsx:65 +#: src/components/organisms/Documentation/Documentation.constants.ts:11 #: src/pages/CreditClassDetails/CreditClassDetailsWithContent/CreditClassDetailsWithContent.constants.ts:31 msgid "" msgstr "" -#: src/components/organisms/UserAccountSettings/UserAccountSettings.constants.ts:5 +#: src/lib/constants/shared.constants.tsx:124 +msgid "- see less" +msgstr "" + +#: src/components/organisms/UserAccountSettings/UserAccountSettings.constants.ts:7 msgid ". Please use a different email address." msgstr "" @@ -100,6 +105,10 @@ msgstr "" msgid "+ create post" msgstr "" +#: src/lib/constants/shared.constants.tsx:125 +msgid "+ see more" +msgstr "" + #: src/components/templates/ProjectDetails/ProjectDetails.constant.ts:14 msgid "+ view timeline" msgstr "" @@ -193,6 +202,10 @@ msgstr "" msgid "actions" msgstr "" +#: src/lib/constants/shared.constants.tsx:134 +msgid "Actions" +msgstr "" + #: src/components/organisms/RegistryLayout/RegistryLayout.config.tsx:66 #: src/components/organisms/RegistryLayout/RegistryLayout.Footer.tsx:46 #: src/pages/Activity/Activity.tsx:12 @@ -295,13 +308,13 @@ msgid "amount" msgstr "" #: src/components/molecules/CreditsAmount/CreditsAmount.Header.tsx:31 -#: src/components/organisms/BasketEcocreditsTable/BasketEcocreditsTable.tsx:62 +#: src/components/organisms/BasketEcocreditsTable/BasketEcocreditsTable.tsx:64 #: src/components/organisms/BridgeForm/BridgeForm.tsx:127 #: src/lib/constants/shared.constants.tsx:32 msgid "Amount" msgstr "" -#: src/components/organisms/BasketsTable.tsx:53 +#: src/components/organisms/BasketsTable.tsx:56 msgid "Amount available" msgstr "" @@ -310,11 +323,11 @@ msgstr "" msgid "AMOUNT AVAILABLE" msgstr "" -#: src/components/organisms/BridgableEcocreditsTable/BridgableEcocreditsTable.tsx:123 +#: src/components/organisms/BridgableEcocreditsTable/BridgableEcocreditsTable.tsx:125 msgid "Amount Bridgable" msgstr "" -#: src/components/organisms/BridgedEcocreditsTable/BridgedEcocreditsTable.tsx:139 +#: src/components/organisms/BridgedEcocreditsTable/BridgedEcocreditsTable.tsx:141 msgid "Amount Bridged" msgstr "" @@ -326,7 +339,7 @@ msgstr "" msgid "Amount cannot exceed" msgstr "" -#: src/components/organisms/EcocreditsTable.tsx:87 +#: src/components/organisms/EcocreditsTable.tsx:90 msgid "Amount Escrowed" msgstr "" @@ -349,7 +362,7 @@ msgstr "" msgid "Amount retired" msgstr "" -#: src/components/organisms/EcocreditsTable.tsx:83 +#: src/components/organisms/EcocreditsTable.tsx:86 #: src/components/organisms/RetirementCertificatesTable/RetirementCertificatesTable.headers.tsx:42 #: src/features/ecocredit/CreateBatchBySteps/CreateBatchMultiStepForm/CreateBatchMultiStepForm.constants.ts:9 msgid "Amount Retired" @@ -367,7 +380,7 @@ msgstr "" msgid "Amount tradable" msgstr "" -#: src/components/organisms/EcocreditsTable.tsx:80 +#: src/components/organisms/EcocreditsTable.tsx:83 msgid "Amount Tradable" msgstr "" @@ -392,7 +405,7 @@ msgstr "" msgid "approved methodologies" msgstr "" -#: src/pages/Marketplace/Storefront/Storefront.tsx:379 +#: src/pages/Marketplace/Storefront/Storefront.tsx:399 msgid "Are you sure would you like to cancel this sell order?" msgstr "" @@ -404,7 +417,11 @@ msgstr "" msgid "Are you sure you want to delete this post?" msgstr "" -#: src/components/organisms/BasketsTable.tsx:51 +#: src/lib/constants/shared.constants.tsx:114 +msgid "Are you sure you want to discard your changes?" +msgstr "" + +#: src/components/organisms/BasketsTable.tsx:54 msgid "Asset" msgstr "" @@ -432,7 +449,7 @@ msgstr "" msgid "Available" msgstr "" -#: src/pages/ProjectEdit/ProjectEdit.tsx:245 +#: src/pages/ProjectEdit/ProjectEdit.tsx:250 msgid "back to projects" msgstr "" @@ -441,11 +458,11 @@ msgid "Background image" msgstr "" #: src/pages/BasicInfo/BasicInfo.tsx:66 -#: src/pages/ProjectReview/ProjectReview.tsx:187 +#: src/pages/ProjectReview/ProjectReview.tsx:193 msgid "Basic Info" msgstr "" -#: src/components/organisms/BasketEcocreditsTable/BasketEcocreditsTable.tsx:49 +#: src/components/organisms/BasketEcocreditsTable/BasketEcocreditsTable.tsx:50 msgid "basket ecocredits table" msgstr "" @@ -453,7 +470,7 @@ msgstr "" msgid "Basket Tokens" msgstr "" -#: src/components/organisms/BasketsTable.tsx:38 +#: src/components/organisms/BasketsTable.tsx:40 msgid "baskets table" msgstr "" @@ -466,8 +483,8 @@ msgid "Batch denom" msgstr "" #: src/components/molecules/BatchInfoGrid.tsx:34 -#: src/components/organisms/BasketEcocreditsTable/BasketEcocreditsTable.tsx:59 -#: src/components/organisms/EcocreditsTable.tsx:76 +#: src/components/organisms/BasketEcocreditsTable/BasketEcocreditsTable.tsx:61 +#: src/components/organisms/EcocreditsTable.tsx:79 msgid "Batch Denom" msgstr "" @@ -483,10 +500,10 @@ msgstr "" msgid "Batch denom:" msgstr "" -#: src/components/organisms/BasketEcocreditsTable/BasketEcocreditsTable.tsx:70 -#: src/components/organisms/BridgableEcocreditsTable/BridgableEcocreditsTable.tsx:140 -#: src/components/organisms/BridgedEcocreditsTable/BridgedEcocreditsTable.tsx:153 -#: src/components/organisms/EcocreditsTable.tsx:100 +#: src/components/organisms/BasketEcocreditsTable/BasketEcocreditsTable.tsx:72 +#: src/components/organisms/BridgableEcocreditsTable/BridgableEcocreditsTable.tsx:142 +#: src/components/organisms/BridgedEcocreditsTable/BridgedEcocreditsTable.tsx:155 +#: src/components/organisms/EcocreditsTable.tsx:103 #: src/components/organisms/RetirementCertificatesTable/RetirementCertificatesTable.headers.tsx:51 msgid "Batch End Date" msgstr "" @@ -499,10 +516,10 @@ msgstr "" msgid "Batch start and end date" msgstr "" -#: src/components/organisms/BasketEcocreditsTable/BasketEcocreditsTable.tsx:67 -#: src/components/organisms/BridgableEcocreditsTable/BridgableEcocreditsTable.tsx:135 -#: src/components/organisms/BridgedEcocreditsTable/BridgedEcocreditsTable.tsx:148 -#: src/components/organisms/EcocreditsTable.tsx:99 +#: src/components/organisms/BasketEcocreditsTable/BasketEcocreditsTable.tsx:69 +#: src/components/organisms/BridgableEcocreditsTable/BridgableEcocreditsTable.tsx:137 +#: src/components/organisms/BridgedEcocreditsTable/BridgedEcocreditsTable.tsx:150 +#: src/components/organisms/EcocreditsTable.tsx:102 #: src/components/organisms/RetirementCertificatesTable/RetirementCertificatesTable.headers.tsx:48 msgid "Batch Start Date" msgstr "" @@ -516,7 +533,8 @@ msgid "block height" msgstr "" #: src/components/organisms/PostFlow/PostFlow.constants.ts:49 -#: src/pages/ProjectFinished/ProjectFinished.tsx:82 +#: src/lib/constants/shared.constants.tsx:122 +#: src/pages/ProjectFinished/ProjectFinished.tsx:89 msgid "blockchain record" msgstr "" @@ -528,6 +546,10 @@ msgstr "" msgid "blockchain record:" msgstr "" +#: src/components/organisms/RegistryLayout/RegistryLayout.constants.ts:22 +msgid "Blockchain-based actions such as buying are only possible with a wallet address. Please set up a Keplr wallet in order to continue." +msgstr "" + #: src/components/organisms/SellOrdersActionsBar/SellOrdersActionsBar.constants.ts:8 msgid "book a call" msgstr "" @@ -536,7 +558,7 @@ msgstr "" msgid "Bridgable ecocredits" msgstr "" -#: src/components/organisms/BridgableEcocreditsTable/BridgableEcocreditsTable.tsx:80 +#: src/components/organisms/BridgableEcocreditsTable/BridgableEcocreditsTable.tsx:81 msgid "bridgable ecocredits table" msgstr "" @@ -554,7 +576,7 @@ msgstr "" msgid "Bridged ecocredits" msgstr "" -#: src/components/organisms/BridgedEcocreditsTable/BridgedEcocreditsTable.tsx:84 +#: src/components/organisms/BridgedEcocreditsTable/BridgedEcocreditsTable.tsx:85 msgid "bridged ecocredits table" msgstr "" @@ -600,8 +622,8 @@ msgstr "" msgid "BUY CREDITS" msgstr "" -#: src/features/marketplace/BuySellOrderFlow/BuySellOrderFlow.tsx:124 -#: src/features/marketplace/CreateSellOrderFlow/CreateSellOrderFlow.tsx:80 +#: src/features/marketplace/BuySellOrderFlow/BuySellOrderFlow.tsx:135 +#: src/features/marketplace/CreateSellOrderFlow/CreateSellOrderFlow.tsx:90 msgid "Buy Credits Error" msgstr "" @@ -689,7 +711,7 @@ msgstr "" msgid "change admin" msgstr "" -#: src/pages/ProjectEdit/ProjectEdit.tsx:277 +#: src/pages/ProjectEdit/ProjectEdit.tsx:282 msgid "Changes have been saved" msgstr "" @@ -697,6 +719,11 @@ msgstr "" msgid "Character" msgstr "" +#: src/components/organisms/RegistryLayout/RegistryLayout.constants.ts:14 +#: src/components/organisms/RegistryLayout/RegistryLayout.constants.ts:16 +msgid "Check your wallet for a confirmation popup." +msgstr "" + #: src/components/organisms/MediaForm/MediaForm.constants.ts:9 msgid "Choose 2-10 photos for the photo gallery." msgstr "" @@ -762,7 +789,7 @@ msgstr "" msgid "Class ID: unique identifier of the credit class on Regen Ledger." msgstr "" -#: src/pages/Projects/AllProjects/AllProjects.SideFilter.tsx:164 +#: src/pages/Projects/AllProjects/AllProjects.SideFilter.tsx:165 msgid "Clear all" msgstr "" @@ -770,12 +797,14 @@ msgstr "" msgid "Click on the confirmation link to return to Regen Network." msgstr "" -#: src/features/marketplace/CreateSellOrderFlow/CreateSellOrderFlow.tsx:196 +#: src/features/marketplace/CreateSellOrderFlow/CreateSellOrderFlow.tsx:213 +#: src/pages/ProjectReview/ProjectReview.tsx:376 msgid "close" msgstr "" #: src/components/organisms/RegistryLayout/RegistryLayout.constants.ts:4 -#: src/features/marketplace/BridgeFlow/BridgeFlow.tsx:191 +#: src/features/marketplace/BridgeFlow/BridgeFlow.tsx:209 +#: src/lib/constants/shared.constants.tsx:123 msgid "CLOSE WINDOW" msgstr "" @@ -808,7 +837,11 @@ msgstr "" msgid "Congrats! Your purchase was successful." msgstr "" -#: src/components/organisms/UserAccountSettings/UserAccountSettings.tsx:82 +#: src/lib/constants/shared.constants.tsx:121 +msgid "Congrats! Your transaction was successful." +msgstr "" + +#: src/components/organisms/UserAccountSettings/UserAccountSettings.tsx:87 msgid "connect" msgstr "" @@ -816,7 +849,7 @@ msgstr "" msgid "CONNECT" msgstr "" -#: src/components/organisms/UserAccountSettings/UserAccountSettings.tsx:147 +#: src/components/organisms/UserAccountSettings/UserAccountSettings.tsx:155 msgid "Connect a wallet address to be able to perform on chain tasks such as buying and selling credits, and creating projects on Regen Ledger." msgstr "" @@ -828,6 +861,10 @@ msgstr "" msgid "connect wallet" msgstr "" +#: src/components/organisms/RegistryLayout/RegistryLayout.constants.ts:13 +msgid "Connect wallet address" +msgstr "" + #: src/pages/CreditClassDetails/CreditClassDetailsWithContent/CreditClassDetailsWithContent.constants.ts:35 msgid "Consumer/Individual/myself" msgstr "" @@ -844,6 +881,10 @@ msgstr "" msgid "Copy and paste an embeddable video url. Supported types include: YouTube, Facebook, Vimeo, Twitch, and DailyMotion." msgstr "" +#: src/lib/constants/shared.constants.tsx:128 +msgid "Copy link to profile" +msgstr "" + #: src/components/templates/ProjectDetails/ProjectDetails.constant.ts:15 msgid "Copy link to project page" msgstr "" @@ -871,8 +912,8 @@ msgstr "" msgid "Create Credit Batch" msgstr "" -#: src/components/organisms/CreditClassForms/CreateCreditClassForm.tsx:24 -#: src/components/organisms/CreditClassForms/CreateCreditClassForm.tsx:25 +#: src/components/organisms/CreditClassForms/CreateCreditClassForm.tsx:30 +#: src/components/organisms/CreditClassForms/CreateCreditClassForm.tsx:31 #: src/components/organisms/CreditClassForms/CreditClassFinished.tsx:28 msgid "Create Credit Class" msgstr "" @@ -886,7 +927,7 @@ msgid "create post" msgstr "" #: src/components/molecules/PlanStepper.tsx:16 -#: src/pages/ProjectFinished/ProjectFinished.tsx:61 +#: src/pages/ProjectFinished/ProjectFinished.tsx:62 msgid "Create Project" msgstr "" @@ -928,19 +969,19 @@ msgstr "" msgid "credit batch id" msgstr "" -#: src/components/organisms/BridgableEcocreditsTable/BridgableEcocreditsTable.tsx:113 -#: src/components/organisms/BridgedEcocreditsTable/BridgedEcocreditsTable.tsx:129 +#: src/components/organisms/BridgableEcocreditsTable/BridgableEcocreditsTable.tsx:115 +#: src/components/organisms/BridgedEcocreditsTable/BridgedEcocreditsTable.tsx:131 msgid "Credit Batch Id" msgstr "" -#: src/components/organisms/CreditBatches/CreditBatches.tsx:112 +#: src/components/organisms/CreditBatches/CreditBatches.tsx:113 msgid "credit batch table" msgstr "" -#: src/components/organisms/CreditBatches/CreditBatches.tsx:224 +#: src/components/organisms/CreditBatches/CreditBatches.tsx:226 #: src/components/organisms/CreditBatchesSection/CreditBatchesSection.tsx:24 #: src/pages/Dashboard/Dashboard.constants.tsx:37 -#: src/pages/EcocreditsByAccount/EcocreditsByAccount.tsx:86 +#: src/pages/EcocreditsByAccount/EcocreditsByAccount.tsx:93 msgid "Credit Batches" msgstr "" @@ -954,10 +995,10 @@ msgid "Credit class" msgstr "" #: src/components/molecules/BatchInfoGrid.tsx:47 -#: src/components/organisms/BasketEcocreditsTable/BasketEcocreditsTable.tsx:64 -#: src/components/organisms/BridgableEcocreditsTable/BridgableEcocreditsTable.tsx:120 -#: src/components/organisms/BridgedEcocreditsTable/BridgedEcocreditsTable.tsx:136 -#: src/components/organisms/EcocreditsTable.tsx:78 +#: src/components/organisms/BasketEcocreditsTable/BasketEcocreditsTable.tsx:66 +#: src/components/organisms/BridgableEcocreditsTable/BridgableEcocreditsTable.tsx:122 +#: src/components/organisms/BridgedEcocreditsTable/BridgedEcocreditsTable.tsx:138 +#: src/components/organisms/EcocreditsTable.tsx:81 #: src/components/organisms/RetirementCertificatesTable/RetirementCertificatesTable.headers.tsx:39 #: src/pages/Projects/AllProjects/AllProjects.constants.ts:10 msgid "Credit Class" @@ -968,7 +1009,7 @@ msgstr "" msgid "CREDIT CLASS" msgstr "" -#: src/pages/CreditClassDetails/CreditClassDetailsSimple/CreditClassDetailsSimple.tsx:168 +#: src/pages/CreditClassDetails/CreditClassDetailsSimple/CreditClassDetailsSimple.tsx:173 msgid "credit class <0/>" msgstr "" @@ -998,7 +1039,7 @@ msgstr "" #: src/components/organisms/RegistryLayout/RegistryLayout.Footer.tsx:28 #: src/pages/Dashboard/Dashboard.constants.tsx:31 -#: src/pages/EcocreditsByAccount/EcocreditsByAccount.tsx:80 +#: src/pages/EcocreditsByAccount/EcocreditsByAccount.tsx:87 #: src/pages/Home/Home.tsx:177 msgid "Credit Classes" msgstr "" @@ -1049,7 +1090,7 @@ msgstr "" msgid "Credits" msgstr "" -#: src/components/organisms/EcocreditsTable.tsx:93 +#: src/components/organisms/EcocreditsTable.tsx:96 msgid "Credits are held in escrow when a sell order is created, and taken out of escrow when the sell order is either cancelled, updated with a reduced quantity, or processed." msgstr "" @@ -1144,7 +1185,7 @@ msgstr "" msgid "Customer info" msgstr "" -#: src/pages/Dashboard/Dashboard.tsx:136 +#: src/pages/Dashboard/Dashboard.tsx:148 msgid "dashboard tabs" msgstr "" @@ -1156,6 +1197,10 @@ msgstr "" msgid "date" msgstr "" +#: src/components/organisms/Documentation/Documentation.constants.ts:10 +msgid "Date of upload" +msgstr "" + #: src/components/organisms/ConnectWalletFlow/ConnectWalletFlow.SelectAccountModal.tsx:65 #: src/components/organisms/RegistryLayout/RegistryLayout.constants.ts:12 msgid "default avatar" @@ -1173,7 +1218,7 @@ msgstr "" #: src/components/organisms/EditProfileForm/EditProfileForm.tsx:206 #: src/components/organisms/RolesForm/components/ProfileModal/ProfileModal.tsx:155 #: src/pages/Description/Description.tsx:48 -#: src/pages/ProjectReview/ProjectReview.tsx:215 +#: src/pages/ProjectReview/ProjectReview.tsx:221 msgid "Description" msgstr "" @@ -1185,11 +1230,19 @@ msgstr "" msgid "DISCOVER PROJECTS" msgstr "" -#: src/components/organisms/Documentation.tsx:49 +#: src/components/organisms/Documentation/Documentation.constants.ts:9 +msgid "Document type" +msgstr "" + +#: src/components/organisms/Documentation/Documentation.tsx:59 #: src/components/organisms/MethodologyDocumentationSection.tsx:79 msgid "Documentation" msgstr "" +#: src/components/organisms/Documentation/Documentation.constants.ts:14 +msgid "documentation table" +msgstr "" + #: src/components/organisms/IncludesGrasslandsForm.tsx:65 msgid "Does your project include grasslands?" msgstr "" @@ -1268,11 +1321,11 @@ msgstr "" msgid "ecocredits retired" msgstr "" -#: src/components/organisms/EcocreditsTable.tsx:57 +#: src/components/organisms/EcocreditsTable.tsx:59 msgid "ecocredits table" msgstr "" -#: src/components/organisms/RetirementCertificatesTable/RetirementCertificatesTable.tsx:60 +#: src/components/organisms/RetirementCertificatesTable/RetirementCertificatesTable.tsx:61 msgid "Ecocredits table" msgstr "" @@ -1293,11 +1346,15 @@ msgstr "" msgid "Ecological Outcomes" msgstr "" +#: src/lib/constants/shared.constants.tsx:132 +msgid "Ecosystem" +msgstr "" + #: src/pages/CreditClassDetails/CreditClassDetails.AdditionalInfo.tsx:93 msgid "ecosystem type" msgstr "" -#: src/pages/ProjectFinished/ProjectFinished.tsx:108 +#: src/pages/ProjectFinished/ProjectFinished.tsx:117 msgid "edit" msgstr "" @@ -1322,6 +1379,10 @@ msgstr "" msgid "Edit profile" msgstr "" +#: src/lib/constants/shared.constants.tsx:127 +msgid "Edit Profile" +msgstr "" + #: src/pages/ProjectEdit/ProjectEdit.constants.ts:5 msgid "edit project" msgstr "" @@ -1330,7 +1391,7 @@ msgstr "" msgid "Edit Project - Access Denied" msgstr "" -#: src/pages/ProjectEdit/ProjectEdit.tsx:263 +#: src/pages/ProjectEdit/ProjectEdit.tsx:268 msgid "Edit Project Page" msgstr "" @@ -1371,7 +1432,7 @@ msgstr "" msgid "Equivalent to" msgstr "" -#: src/pages/ProjectReview/ProjectReview.tsx:158 +#: src/pages/ProjectReview/ProjectReview.tsx:164 msgid "Error getting ISO string for jurisdiction. Please edit your location." msgstr "" @@ -1433,9 +1494,14 @@ msgid "Files" msgstr "" #: src/components/templates/ProjectDetails/ProjectDetails.constant.ts:21 +#: src/pages/Post/Post.constants.ts:21 msgid "Files are private" msgstr "" +#: src/pages/Post/Post.constants.ts:18 +msgid "Files available on request" +msgstr "" + #: src/components/organisms/PostForm/PostForm.tsx:453 msgid "Files can still be shared privately via secret link." msgstr "" @@ -1445,8 +1511,8 @@ msgid "Filters" msgstr "" #: src/components/molecules/PlanStepper.tsx:18 -#: src/components/organisms/CreditClassForms/CreateCreditClassForm.tsx:36 -#: src/components/organisms/CreditClassForms/CreateCreditClassForm.tsx:37 +#: src/components/organisms/CreditClassForms/CreateCreditClassForm.tsx:42 +#: src/components/organisms/CreditClassForms/CreateCreditClassForm.tsx:43 #: src/features/ecocredit/CreateBatchBySteps/form-model.ts:72 msgid "Finished" msgstr "" @@ -1459,6 +1525,10 @@ msgstr "" msgid "For Buyers" msgstr "" +#: src/pages/ErrorPage/ErrorPage.contants.ts:4 +msgid "For help resolving an issue, reach out to support@regen.network." +msgstr "" + #: src/pages/LandStewards/LandStewards.tsx:99 msgid "For Land Stewards" msgstr "" @@ -1550,6 +1620,10 @@ msgstr "" msgid "If you merge these accounts, you can log in with either your wallet address, email or google to the same account." msgstr "" +#: src/lib/constants/shared.constants.tsx:115 +msgid "If you proceed, you will lose all unsaved changes you made. This cannot be undone." +msgstr "" + #: src/components/organisms/PostForm/PostForm.constants.ts:4 msgid "If you select one of the following options, you will still be able to share the post, files, or location data privately via a secret link." msgstr "" @@ -1574,7 +1648,7 @@ msgstr "" msgid "In one sentence, summarize the story above." msgstr "" -#: src/components/organisms/UserAccountSettings/UserAccountSettings.tsx:167 +#: src/components/organisms/UserAccountSettings/UserAccountSettings.tsx:175 msgid "In order to buy and retire ecocredits using credit card payment, we may generate a dedicated hosted wallet address to use as the recipient of the retired blockchain credits. Please do not send funds or tradable credits to this address, as you will not have the ability to initiate transactions from this account.<0>Learn more»" msgstr "" @@ -1618,10 +1692,10 @@ msgstr "" msgid "issuer" msgstr "" -#: src/components/organisms/BasketEcocreditsTable/BasketEcocreditsTable.tsx:61 -#: src/components/organisms/BridgableEcocreditsTable/BridgableEcocreditsTable.tsx:132 -#: src/components/organisms/BridgedEcocreditsTable/BridgedEcocreditsTable.tsx:145 -#: src/components/organisms/EcocreditsTable.tsx:98 +#: src/components/organisms/BasketEcocreditsTable/BasketEcocreditsTable.tsx:63 +#: src/components/organisms/BridgableEcocreditsTable/BridgableEcocreditsTable.tsx:134 +#: src/components/organisms/BridgedEcocreditsTable/BridgedEcocreditsTable.tsx:147 +#: src/components/organisms/EcocreditsTable.tsx:101 #: src/components/organisms/RetirementCertificatesTable/RetirementCertificatesTable.headers.tsx:45 msgid "Issuer" msgstr "" @@ -1639,7 +1713,7 @@ msgstr "" msgid "join the community" msgstr "" -#: src/pages/ProjectReview/ProjectReview.tsx:212 +#: src/pages/ProjectReview/ProjectReview.tsx:218 msgid "Jurisdiction" msgstr "" @@ -1673,6 +1747,7 @@ msgid "Last Updated:" msgstr "" #: src/components/organisms/RegistryLayout/components/ConnectWalletModal/ConnectWalletModal.constants.ts:5 +#: src/components/organisms/RegistryLayout/RegistryLayout.constants.ts:23 msgid "Learn how to" msgstr "" @@ -1725,7 +1800,7 @@ msgid "listen to podcast" msgstr "" #: src/components/organisms/MediaForm/MediaForm.constants.ts:24 -#: src/pages/ProjectReview/ProjectReview.tsx:272 +#: src/pages/ProjectReview/ProjectReview.tsx:278 msgid "Loading video player..." msgstr "" @@ -1736,16 +1811,21 @@ msgstr "" #: src/components/organisms/EditFileForm/EditFileForm.tsx:135 #: src/lib/constants/shared.constants.tsx:70 #: src/pages/ProjectLocation/ProjectLocation.tsx:44 -#: src/pages/ProjectReview/ProjectReview.tsx:205 +#: src/pages/ProjectReview/ProjectReview.tsx:211 msgid "Location" msgstr "" +#: src/pages/Post/Post.constants.ts:19 +msgid "Location data available on request" +msgstr "" + #: src/components/molecules/BottomCreditRetireFields/BottomCreditRetireFields.tsx:99 #: src/lib/constants/shared.constants.tsx:45 msgid "Location of retirement" msgstr "" #: src/components/templates/ProjectDetails/ProjectDetails.constant.ts:22 +#: src/pages/Post/Post.constants.ts:20 msgid "Locations are private" msgstr "" @@ -1755,7 +1835,7 @@ msgstr "" msgid "log in" msgstr "" -#: src/components/organisms/UserAccountSettings/UserAccountSettings.constants.ts:6 +#: src/components/organisms/UserAccountSettings/UserAccountSettings.constants.ts:8 msgid "Log in email successfully added" msgstr "" @@ -1767,7 +1847,7 @@ msgstr "" msgid "Log out" msgstr "" -#: src/components/organisms/UserAccountSettings/UserAccountSettings.tsx:70 +#: src/components/organisms/UserAccountSettings/UserAccountSettings.tsx:75 msgid "Login Email" msgstr "" @@ -1824,7 +1904,7 @@ msgid "measurement approach" msgstr "" #: src/pages/Media/Media.tsx:72 -#: src/pages/ProjectReview/ProjectReview.tsx:230 +#: src/pages/ProjectReview/ProjectReview.tsx:236 msgid "Media" msgstr "" @@ -1840,7 +1920,7 @@ msgstr "" #: src/components/organisms/CreditClassForms/CreditClassForm.tsx:105 #: src/components/organisms/CreditClassForms/CreditClassReview.tsx:40 #: src/pages/ProjectMetadata/ProjectMetadata.tsx:72 -#: src/pages/ProjectReview/ProjectReview.tsx:309 +#: src/pages/ProjectReview/ProjectReview.tsx:315 msgid "Metadata" msgstr "" @@ -1890,7 +1970,7 @@ msgstr "" msgid "Move up" msgstr "" -#: src/pages/ProjectReview/ProjectReview.tsx:99 +#: src/pages/ProjectReview/ProjectReview.tsx:105 msgid "MsgCreateProject Error" msgstr "" @@ -1909,10 +1989,14 @@ msgstr "" #: src/components/organisms/EditProfileForm/EditProfileForm.tsx:158 #: src/components/organisms/RolesForm/components/ProfileModal/ProfileModal.tsx:131 -#: src/pages/ProjectReview/ProjectReview.tsx:192 +#: src/pages/ProjectReview/ProjectReview.tsx:198 msgid "Name" msgstr "" +#: src/components/organisms/Documentation/Documentation.constants.ts:8 +msgid "Name of document" +msgstr "" + #: src/components/organisms/AdditionalityForm.tsx:214 msgid "Natural ecosystem, unmanaged" msgstr "" @@ -1947,7 +2031,7 @@ msgstr "" msgid "Next" msgstr "" -#: src/components/organisms/BasketsTable.tsx:30 +#: src/components/organisms/BasketsTable.tsx:32 msgid "No basket tokens to display" msgstr "" @@ -1963,12 +2047,12 @@ msgstr "" msgid "No credit batches to display" msgstr "" -#: src/components/organisms/CreditBatches/CreditBatches.tsx:92 +#: src/components/organisms/CreditBatches/CreditBatches.tsx:93 msgid "No credits issued" msgstr "" -#: src/components/organisms/BasketEcocreditsTable/BasketEcocreditsTable.tsx:44 -#: src/components/organisms/EcocreditsTable.tsx:49 +#: src/components/organisms/BasketEcocreditsTable/BasketEcocreditsTable.tsx:45 +#: src/components/organisms/EcocreditsTable.tsx:51 msgid "No ecocredits to display" msgstr "" @@ -1980,11 +2064,11 @@ msgstr "" msgid "No options available" msgstr "" -#: src/components/organisms/RetirementCertificatesTable/RetirementCertificatesTable.tsx:52 +#: src/components/organisms/RetirementCertificatesTable/RetirementCertificatesTable.tsx:53 msgid "No retirements to display" msgstr "" -#: src/components/organisms/SellOrdersTable/SellOrdersTable.tsx:52 +#: src/components/organisms/SellOrdersTable/SellOrdersTable.tsx:55 msgid "No sell orders found" msgstr "" @@ -2004,7 +2088,7 @@ msgstr "" msgid "Not connected" msgstr "" -#: src/components/organisms/BridgedEcocreditsTable/BridgedEcocreditsTable.tsx:112 +#: src/components/organisms/BridgedEcocreditsTable/BridgedEcocreditsTable.tsx:114 msgid "Note / Link" msgstr "" @@ -2046,6 +2130,10 @@ msgstr "" msgid "Only the locations of the files will be hidden from public view." msgstr "" +#: src/lib/constants/shared.constants.tsx:136 +msgid "Oops! Page not found." +msgstr "" + #: src/components/organisms/LoginModal/components/LoginModal.Select.tsx:64 msgid "or, log in with email / social" msgstr "" @@ -2082,9 +2170,14 @@ msgstr "" #: src/components/organisms/MediaForm/MediaFormPhotos.tsx:221 #: src/components/organisms/MediaForm/MediaFormPhotos.tsx:340 #: src/components/organisms/MediaForm/MediaFormStory.tsx:209 +#: src/lib/constants/shared.constants.tsx:126 msgid "Photo credit" msgstr "" +#: src/lib/constants/shared.constants.tsx:111 +msgid "Please check your email" +msgstr "" + #: src/lib/constants/shared.constants.tsx:96 msgid "Please choose a denom" msgstr "" @@ -2136,6 +2229,10 @@ msgstr "" msgid "Please enter a valid VCS Project ID" msgstr "" +#: src/lib/constants/shared.constants.tsx:113 +msgid "Please enter the code from that email:" +msgstr "" + #: src/lib/constants/shared.constants.tsx:93 msgid "Please enter valid JSON-LD" msgstr "" @@ -2144,6 +2241,10 @@ msgstr "" msgid "Please purchase some REGEN to cover the transaction fees for this action." msgstr "" +#: src/components/organisms/RegistryLayout/RegistryLayout.constants.ts:24 +msgid "Please select the following wallet address in Keplr in order to proceed" +msgstr "" + #: src/components/organisms/ProjectDenied/ProjectDenied.tsx:71 msgid "Please select this address in keplr in order to access this page." msgstr "" @@ -2152,8 +2253,16 @@ msgstr "" msgid "Please select which profile info you want to keep for your new merged account" msgstr "" +#: src/components/organisms/RegistryLayout/RegistryLayout.constants.ts:20 +msgid "Please switch to this address in Keplr to access this profile." +msgstr "" + +#: src/lib/constants/shared.constants.tsx:117 +msgid "Please wait while transaction processes" +msgstr "" + #: src/pages/Dashboard/Dashboard.constants.tsx:19 -#: src/pages/EcocreditsByAccount/EcocreditsByAccount.tsx:67 +#: src/pages/EcocreditsByAccount/EcocreditsByAccount.tsx:74 msgid "Portfolio" msgstr "" @@ -2294,10 +2403,10 @@ msgstr "" #: src/components/molecules/BatchInfoGrid.tsx:37 #: src/components/molecules/ProjectSelect.tsx:84 -#: src/components/organisms/BasketEcocreditsTable/BasketEcocreditsTable.tsx:56 -#: src/components/organisms/BridgableEcocreditsTable/BridgableEcocreditsTable.tsx:100 -#: src/components/organisms/BridgedEcocreditsTable/BridgedEcocreditsTable.tsx:116 -#: src/components/organisms/EcocreditsTable.tsx:65 +#: src/components/organisms/BasketEcocreditsTable/BasketEcocreditsTable.tsx:58 +#: src/components/organisms/BridgableEcocreditsTable/BridgableEcocreditsTable.tsx:102 +#: src/components/organisms/BridgedEcocreditsTable/BridgedEcocreditsTable.tsx:118 +#: src/components/organisms/EcocreditsTable.tsx:68 #: src/components/organisms/RetirementCertificatesTable/RetirementCertificatesTable.headers.tsx:18 #: src/pages/Certificate/Certificate.constants.ts:14 #: src/pages/Certificate/Certificate.utils.ts:36 @@ -2308,7 +2417,7 @@ msgstr "" msgid "PROJECT" msgstr "" -#: src/components/organisms/ProjectTopSection/ProjectTopSection.tsx:142 +#: src/components/organisms/ProjectTopSection/ProjectTopSection.tsx:148 msgid "Project {onChainProjectId}" msgstr "" @@ -2321,6 +2430,10 @@ msgstr "" msgid "Project activity" msgstr "" +#: src/lib/constants/shared.constants.tsx:131 +msgid "Project Activity" +msgstr "" + #: src/pages/ProjectReview/ProjectReview.VCSMetadata.tsx:28 msgid "Project activity url" msgstr "" @@ -2345,12 +2458,12 @@ msgstr "" msgid "project end date" msgstr "" -#: src/pages/ProjectFinished/ProjectFinished.tsx:49 +#: src/pages/ProjectFinished/ProjectFinished.tsx:50 msgid "Project has been created!" msgstr "" #: src/components/molecules/ProjectPageMetadata/ProjectPageMetadata.tsx:72 -#: src/pages/ProjectFinished/ProjectFinished.tsx:65 +#: src/pages/ProjectFinished/ProjectFinished.tsx:68 msgid "project id" msgstr "" @@ -2366,10 +2479,10 @@ msgstr "" msgid "Project location" msgstr "" -#: src/components/organisms/BasketEcocreditsTable/BasketEcocreditsTable.tsx:72 -#: src/components/organisms/BridgableEcocreditsTable/BridgableEcocreditsTable.tsx:143 -#: src/components/organisms/BridgedEcocreditsTable/BridgedEcocreditsTable.tsx:156 -#: src/components/organisms/EcocreditsTable.tsx:101 +#: src/components/organisms/BasketEcocreditsTable/BasketEcocreditsTable.tsx:74 +#: src/components/organisms/BridgableEcocreditsTable/BridgableEcocreditsTable.tsx:145 +#: src/components/organisms/BridgedEcocreditsTable/BridgedEcocreditsTable.tsx:158 +#: src/components/organisms/EcocreditsTable.tsx:104 #: src/components/organisms/RetirementCertificatesTable/RetirementCertificatesTable.headers.tsx:57 msgid "Project Location" msgstr "" @@ -2386,7 +2499,7 @@ msgstr "" msgid "Project methodology" msgstr "" -#: src/pages/ProjectFinished/ProjectFinished.tsx:73 +#: src/pages/ProjectFinished/ProjectFinished.tsx:78 msgid "project name" msgstr "" @@ -2440,7 +2553,7 @@ msgstr "" #: src/components/organisms/RegistryLayout/RegistryLayout.Footer.tsx:24 #: src/pages/CreditClassDetails/CreditClassDetails.Projects.tsx:43 #: src/pages/Dashboard/Dashboard.constants.tsx:25 -#: src/pages/EcocreditsByAccount/EcocreditsByAccount.tsx:74 +#: src/pages/EcocreditsByAccount/EcocreditsByAccount.tsx:81 msgid "Projects" msgstr "" @@ -2448,7 +2561,7 @@ msgstr "" msgid "projects tabs" msgstr "" -#: src/pages/EcocreditsByAccount/EcocreditsByAccount.tsx:152 +#: src/pages/EcocreditsByAccount/EcocreditsByAccount.tsx:164 msgid "public profile tabs" msgstr "" @@ -2511,7 +2624,7 @@ msgstr "" msgid "Regen Data Provider" msgstr "" -#: src/components/organisms/UserAccountSettings/UserAccountSettings.tsx:164 +#: src/components/organisms/UserAccountSettings/UserAccountSettings.tsx:172 msgid "Regen impact address" msgstr "" @@ -2658,11 +2771,11 @@ msgid "Retirement reason" msgstr "" #: src/components/molecules/PlanStepper.tsx:17 -#: src/components/organisms/CreditClassForms/CreateCreditClassForm.tsx:31 -#: src/components/organisms/CreditClassForms/CreateCreditClassForm.tsx:32 +#: src/components/organisms/CreditClassForms/CreateCreditClassForm.tsx:37 +#: src/components/organisms/CreditClassForms/CreateCreditClassForm.tsx:38 #: src/features/ecocredit/CreateBatchBySteps/form-model.ts:67 #: src/features/ecocredit/CreateBatchBySteps/form-model.ts:68 -#: src/pages/ProjectReview/ProjectReview.tsx:183 +#: src/pages/ProjectReview/ProjectReview.tsx:189 msgid "Review" msgstr "" @@ -2747,7 +2860,7 @@ msgstr "" msgid "Select a wallet" msgstr "" -#: src/pages/Projects/AllProjects/AllProjects.SideFilter.tsx:142 +#: src/pages/Projects/AllProjects/AllProjects.SideFilter.tsx:143 msgid "Select all" msgstr "" @@ -2772,8 +2885,8 @@ msgstr "" msgid "sell order id:" msgstr "" -#: src/components/organisms/SellOrdersTable/SellOrdersTable.tsx:40 -#: src/pages/Marketplace/Storefront/Storefront.tsx:237 +#: src/components/organisms/SellOrdersTable/SellOrdersTable.tsx:42 +#: src/pages/Marketplace/Storefront/Storefront.tsx:248 msgid "Sell orders" msgstr "" @@ -2808,6 +2921,7 @@ msgstr "" msgid "share" msgstr "" +#: src/lib/constants/shared.constants.tsx:133 #: src/pages/Certificate/Certificate.tsx:74 msgid "Share" msgstr "" @@ -2848,7 +2962,7 @@ msgstr "" msgid "Signing failed" msgstr "" -#: src/pages/ProjectReview/ProjectReview.tsx:195 +#: src/pages/ProjectReview/ProjectReview.tsx:201 msgid "Size" msgstr "" @@ -2873,7 +2987,7 @@ msgstr "" msgid "Small or Medium Sized Business" msgstr "" -#: src/components/organisms/UserAccountSettings/UserAccountSettings.tsx:119 +#: src/components/organisms/UserAccountSettings/UserAccountSettings.tsx:127 msgid "Social Accounts" msgstr "" @@ -2889,7 +3003,7 @@ msgstr "" msgid "Sorry, something went wrong!" msgstr "" -#: src/components/organisms/UserAccountSettings/UserAccountSettings.constants.ts:3 +#: src/components/organisms/UserAccountSettings/UserAccountSettings.constants.ts:5 msgid "Sorry, this email is already connected to another account" msgstr "" @@ -2898,6 +3012,7 @@ msgid "Sorry, you don’t have any REGEN to cover transaction fees" msgstr "" #: src/features/ecocredit/CreateBatchBySteps/form-model.ts:75 +#: src/lib/constants/shared.constants.tsx:119 msgid "Sorry, your transaction was not successful." msgstr "" @@ -2934,7 +3049,7 @@ msgstr "" msgid "Stats" msgstr "" -#: src/components/organisms/BridgedEcocreditsTable/BridgedEcocreditsTable.tsx:93 +#: src/components/organisms/BridgedEcocreditsTable/BridgedEcocreditsTable.tsx:95 msgid "Status" msgstr "" @@ -2999,6 +3114,10 @@ msgstr "" msgid "Support" msgstr "" +#: src/components/organisms/RegistryLayout/RegistryLayout.constants.ts:18 +msgid "Switch wallet addresses in Keplr to add another address to your account" +msgstr "" + #: src/lib/constants/shared.constants.tsx:38 msgid "take from basket" msgstr "" @@ -3025,6 +3144,10 @@ msgstr "" msgid "Thanks for submitting your information!" msgstr "" +#: src/pages/ErrorPage/ErrorPage.contants.ts:3 +msgid "That's an error." +msgstr "" + #: src/components/organisms/RolesForm/components/AdminModal/AdminModal.constants.ts:3 msgid "The address should be different from the current address" msgstr "" @@ -3041,10 +3164,22 @@ msgstr "" msgid "The creator of this basket has chosen that all credits must be retired upon take." msgstr "" +#: src/components/organisms/RegistryLayout/RegistryLayout.constants.ts:19 +msgid "The current address is already linked to your account.\\nPlease first switch wallet addresses in the Keplr app to be able to add another address to your account." +msgstr "" + +#: src/components/organisms/RegistryLayout/RegistryLayout.constants.ts:25 +msgid "The email address you are using to log in is associated with the above wallet address, so it must be the currently selected account in Keplr in order to continue." +msgstr "" + #: src/components/organisms/RolesForm/RolesForm.tsx:216 msgid "The individual or organization that is in charge of managing the project and will appear on the project page." msgstr "" +#: src/lib/constants/shared.constants.tsx:137 +msgid "The page you are looking for might have been temporarily removed or had its name changed." +msgstr "" + #: src/components/organisms/PostForm/PostForm.tsx:475 msgid "The post and all of its contents will be hidden from public view." msgstr "" @@ -3109,6 +3244,10 @@ msgstr "" msgid "These credits will be retired upon purchase and will not be tradeable. Retirement is permanent and non-reversible." msgstr "" +#: src/components/organisms/RegistryLayout/RegistryLayout.constants.ts:15 +msgid "This address is already linked to another account. Remove it from that account and connect it to yours?" +msgstr "" + #: src/components/organisms/RolesForm/components/AdminModal/AdminModal.tsx:92 msgid "This change will only be made after you save the change and sign the transaction." msgstr "" @@ -3163,6 +3302,10 @@ msgstr "" msgid "This may take some time if your file size is large." msgstr "" +#: src/lib/constants/shared.constants.tsx:118 +msgid "This may take up to 15 seconds." +msgstr "" + #: src/components/organisms/PaymentInfoForm/PaymentInfoForm.CustomerInfo.tsx:61 msgid "This name will appear on the retirement certificate unless you choose to retire anonymously in the next step. It is also your user profile name." msgstr "" @@ -3187,12 +3330,12 @@ msgstr "" msgid "This wallet address is already in use by another account." msgstr "" -#: src/components/templates/ProjectDetails/ProjectDetails.ProjectTimeline.tsx:33 +#: src/components/templates/ProjectDetails/ProjectDetails.ProjectTimeline.tsx:34 #: src/pages/Post/Post.constants.ts:10 msgid "Timeline" msgstr "" -#: src/components/organisms/BridgedEcocreditsTable/BridgedEcocreditsTable.tsx:90 +#: src/components/organisms/BridgedEcocreditsTable/BridgedEcocreditsTable.tsx:92 msgid "Timestamp" msgstr "" @@ -3277,7 +3420,7 @@ msgstr "" msgid "tx hash" msgstr "" -#: src/components/organisms/BridgedEcocreditsTable/BridgedEcocreditsTable.tsx:89 +#: src/components/organisms/BridgedEcocreditsTable/BridgedEcocreditsTable.tsx:91 msgid "Tx Hash" msgstr "" @@ -3325,7 +3468,7 @@ msgstr "" msgid "Uploading image" msgstr "" -#: src/pages/ProjectFinished/ProjectFinished.tsx:91 +#: src/pages/ProjectFinished/ProjectFinished.tsx:100 msgid "url" msgstr "" @@ -3341,7 +3484,7 @@ msgstr "" msgid "Use my credit card on file ending in {0}" msgstr "" -#: src/components/organisms/UserAccountSettings/UserAccountSettings.tsx:122 +#: src/components/organisms/UserAccountSettings/UserAccountSettings.tsx:130 msgid "Use your social account to log in to Regen Marketplace." msgstr "" @@ -3349,6 +3492,14 @@ msgstr "" msgid "useMultiStep must be used within a MultiStepProvider" msgstr "" +#: src/lib/constants/shared.constants.tsx:130 +msgid "user profile avatar" +msgstr "" + +#: src/lib/constants/shared.constants.tsx:129 +msgid "user profile background image" +msgstr "" + #: src/components/organisms/BridgedEcocreditsTable/BridgedEcocreditsTable.Note.tsx:33 msgid "Usually takes <30 minutes to process. Please contact us at <0>support@regen.networkif more time has passed." msgstr "" @@ -3425,6 +3576,7 @@ msgstr "" msgid "view credit class doc" msgstr "" +#: src/components/organisms/Documentation/Documentation.constants.ts:16 #: src/components/organisms/MethodologyDocumentationSection.tsx:86 msgid "view document" msgstr "" @@ -3437,6 +3589,11 @@ msgstr "" msgid "view methodology" msgstr "" +#: src/components/organisms/Documentation/Documentation.constants.ts:15 +#: src/lib/constants/shared.constants.tsx:135 +msgid "view on ledger" +msgstr "" + #: src/features/marketplace/BridgeFlow/BridgeFlow.constants.ts:5 msgid "view pending bridged credits" msgstr "" @@ -3473,6 +3630,10 @@ msgstr "" msgid "View your ecocredits" msgstr "" +#: src/lib/constants/shared.constants.tsx:120 +msgid "view your portfolio" +msgstr "" + #: src/pages/Dashboard/MyEcocredits/MyEcocredits.constants.ts:14 msgid "VIEW YOUR PORTFOLIO" msgstr "" @@ -3481,11 +3642,15 @@ msgstr "" msgid "Visit toucan.earth to view the transaction." msgstr "" +#: src/lib/constants/shared.constants.tsx:139 +msgid "Visit Our Homepage <0> Instead" +msgstr "" + #: src/pages/EcocreditsByAccount/EcocreditsByAccount.constants.tsx:4 msgid "visit our homepage instead" msgstr "" -#: src/components/organisms/UserAccountSettings/UserAccountSettings.tsx:144 +#: src/components/organisms/UserAccountSettings/UserAccountSettings.tsx:152 msgid "Wallet integration" msgstr "" @@ -3509,6 +3674,7 @@ msgstr "" msgid "We will send your receipt to the email address below, which is already linked to your account." msgstr "" +#: src/lib/constants/shared.constants.tsx:112 #: src/pages/VerifyEmail/VerifyEmail.tsx:48 msgid "We've just sent a confirmation email to:" msgstr "" @@ -3529,7 +3695,7 @@ msgstr "" msgid "whoops, cancel" msgstr "" -#: src/pages/Marketplace/Storefront/Storefront.tsx:378 +#: src/pages/Marketplace/Storefront/Storefront.tsx:398 msgid "WHOOPS, EXIT" msgstr "" @@ -3553,7 +3719,7 @@ msgstr "" msgid "Write a short comment or longer project update." msgstr "" -#: src/pages/Marketplace/Storefront/Storefront.tsx:377 +#: src/pages/Marketplace/Storefront/Storefront.tsx:397 msgid "Yes, cancel sell order" msgstr "" @@ -3561,6 +3727,10 @@ msgstr "" msgid "yes, delete" msgstr "" +#: src/lib/constants/shared.constants.tsx:116 +msgid "yes, discard" +msgstr "" + #: src/pages/CreditClassDetails/CreditClassDetailsWithContent/CreditClassDetailsWithContent.constants.ts:3 msgid "Yes, I'm interested in buying credits for myself or my organization!" msgstr "" @@ -3577,6 +3747,10 @@ msgstr "" msgid "Yes, please create an account for me so I can easily see my purchase details and retirement certificate when I log in" msgstr "" +#: src/components/organisms/RegistryLayout/RegistryLayout.constants.ts:17 +msgid "yes, remove & connect" +msgstr "" + #: src/pages/ChooseCreditClass/ChooseCreditClass.tsx:59 msgid "You are not yet listed as an issuer on any credit classes" msgstr "" @@ -3622,7 +3796,7 @@ msgstr "" msgid "You don't have enough basket tokens" msgstr "" -#: src/components/organisms/UserAccountSettings/UserAccountSettings.constants.ts:4 +#: src/components/organisms/UserAccountSettings/UserAccountSettings.constants.ts:6 msgid "You entered:" msgstr "" @@ -3646,6 +3820,10 @@ msgstr "" msgid "You must agree to continue" msgstr "" +#: src/components/organisms/RegistryLayout/RegistryLayout.constants.ts:21 +msgid "You must connect a Keplr wallet address to your existing account in order to view this content." +msgstr "" + #: src/pages/ConnectWalletPage/ConnectWalletPage.constants.ts:3 msgid "You must connect to Keplr in order to view the content of this page." msgstr "" diff --git a/web-marketplace/src/pages/CreditClassDetails/CreditClassDetailsSimple/CreditClassDetailsSimple.tsx b/web-marketplace/src/pages/CreditClassDetails/CreditClassDetailsSimple/CreditClassDetailsSimple.tsx index f0df80a891..5854b06f19 100644 --- a/web-marketplace/src/pages/CreditClassDetails/CreditClassDetailsSimple/CreditClassDetailsSimple.tsx +++ b/web-marketplace/src/pages/CreditClassDetails/CreditClassDetailsSimple/CreditClassDetailsSimple.tsx @@ -17,6 +17,11 @@ import { Account } from 'web-components/src/components/user/UserInfo'; import { CreditClassByOnChainIdQuery } from 'generated/graphql'; import { CreditClass } from 'generated/sanity-graphql'; +import { + ECOSYSTEM_LABEL, + SEE_LESS, + SEE_MORE, +} from 'lib/constants/shared.constants'; import { CreditClassMetadataLD } from 'lib/db/types/json-ld'; import { getAllCreditClassPageQuery } from 'lib/queries/react-query/sanity/getAllCreditClassPageQuery/getAllCreditClassPageQuery'; import { useWallet } from 'lib/wallet/wallet'; @@ -211,10 +216,13 @@ const CreditClassDetailsSimple: React.FC< )} diff --git a/web-marketplace/src/pages/Dashboard/Dashboard.tsx b/web-marketplace/src/pages/Dashboard/Dashboard.tsx index 76bdbaa55c..9cc3436ecd 100644 --- a/web-marketplace/src/pages/Dashboard/Dashboard.tsx +++ b/web-marketplace/src/pages/Dashboard/Dashboard.tsx @@ -16,6 +16,13 @@ import { truncate } from 'web-components/src/utils/truncate'; import { useAuth } from 'lib/auth/auth'; import { getAccountUrl } from 'lib/block-explorer'; +import { + ALT_PROFILE_AVATAR, + ALT_PROFILE_BACKGROUND_IMAGE, + COPY_PROFILE_TEXT, + COPY_SUCCESS, + EDIT_PROFILE_TEXT, +} from 'lib/constants/shared.constants'; import { isBridgeEnabled } from 'lib/ledger'; import { getProfileLink } from 'lib/profileLink'; import { getAllProfilePageQuery } from 'lib/queries/react-query/sanity/getAllProfilePageQuery/getAllProfilePageQuery'; @@ -127,6 +134,11 @@ const Dashboard = (): JSX.Element => { account?.type ? profileVariantMapping[account.type] : 'individual' } LinkComponent={Link as LinkComponentType} + copyProfileText={_(COPY_PROFILE_TEXT)} + editProfileText={_(EDIT_PROFILE_TEXT)} + copySuccessText={_(COPY_SUCCESS)} + altBackgroundImage={_(ALT_PROFILE_BACKGROUND_IMAGE)} + altAvatar={_(ALT_PROFILE_AVATAR)} /> diff --git a/web-marketplace/src/pages/Dashboard/MyEcocredits/MyEcocredits.tsx b/web-marketplace/src/pages/Dashboard/MyEcocredits/MyEcocredits.tsx index 92a99fbd46..710ea683bf 100644 --- a/web-marketplace/src/pages/Dashboard/MyEcocredits/MyEcocredits.tsx +++ b/web-marketplace/src/pages/Dashboard/MyEcocredits/MyEcocredits.tsx @@ -31,18 +31,27 @@ import { BASKET_TAKE_SUBMIT_LABEL, BATCH_DESCRIPTION, BATCH_LABEL, + BLOCKCHAIN_RECORD, getBottomFieldsTextMapping, INSUFFICIENT_CREDITS, INVALID_AMOUNT, INVALID_DECIMAL_COUNT, INVALID_MEMO_LENGTH, MAX_LABEL, + PROCESSING_MODAL_BODY, + PROCESSING_MODAL_TITLE, REQUIRED_MESSAGE, RETIRE_ON_TAKE_LABEL, RETIRE_ON_TAKE_TOOLTIP, RETIREMENT_INFO_TEXT, + SEE_LESS, + SEE_MORE, + SHARE_TITLE, STATE_PROVINCE_ERROR_TEXT, SUBMIT_ERROR_TEXT, + TX_ERROR_MODAL_TITLE, + TX_MODAL_TITLE, + TX_SUCCESSFUL_MODAL_TITLE, } from 'lib/constants/shared.constants'; import { getAllowedDenomQuery } from 'lib/queries/react-query/ecocredit/marketplace/getAllowedDenomQuery/getAllowedDenomQuery'; import { @@ -536,16 +545,20 @@ export const MyEcocredits = (): JSX.Element => { setIsProcessingModalOpen(false)} + title={_(PROCESSING_MODAL_TITLE)} + bodyText={_(PROCESSING_MODAL_BODY)} /> {!error && txHash && cardItems && (txModalTitle || txModalHeader) && ( { }, linkedIn: { url: shareUrl }, })} + shareTitle={_(SHARE_TITLE)} + blockchainRecordText={_(BLOCKCHAIN_RECORD)} /> )} { buttonTitle={_(ERROR_BUTTON)} linkComponent={Link} onButtonClick={onButtonClick} + title={_(TX_ERROR_MODAL_TITLE)} + blockchainRecordText={_(BLOCKCHAIN_RECORD)} /> ); diff --git a/web-marketplace/src/pages/EcocreditsByAccount/EcocreditsByAccount.tsx b/web-marketplace/src/pages/EcocreditsByAccount/EcocreditsByAccount.tsx index cca0707b0e..20ae7651d9 100644 --- a/web-marketplace/src/pages/EcocreditsByAccount/EcocreditsByAccount.tsx +++ b/web-marketplace/src/pages/EcocreditsByAccount/EcocreditsByAccount.tsx @@ -17,6 +17,13 @@ import { LinkComponentType } from 'web-components/src/types/shared/linkComponent import { truncate } from 'web-components/src/utils/truncate'; import { getAccountUrl } from 'lib/block-explorer'; +import { + ALT_PROFILE_AVATAR, + ALT_PROFILE_BACKGROUND_IMAGE, + COPY_PROFILE_TEXT, + COPY_SUCCESS, + EDIT_PROFILE_TEXT, +} from 'lib/constants/shared.constants'; import { getProfileLink } from 'lib/profileLink'; import { useWallet } from 'lib/wallet/wallet'; @@ -145,6 +152,11 @@ export const EcocreditsByAccount = (): JSX.Element => { : 'individual' } LinkComponent={Link as LinkComponentType} + copyProfileText={_(COPY_PROFILE_TEXT)} + editProfileText={_(EDIT_PROFILE_TEXT)} + copySuccessText={_(COPY_SUCCESS)} + altBackgroundImage={_(ALT_PROFILE_BACKGROUND_IMAGE)} + altAvatar={_(ALT_PROFILE_AVATAR)} />
diff --git a/web-marketplace/src/pages/ErrorPage/ErrorPage.contants.ts b/web-marketplace/src/pages/ErrorPage/ErrorPage.contants.ts new file mode 100644 index 0000000000..5ef04c45bd --- /dev/null +++ b/web-marketplace/src/pages/ErrorPage/ErrorPage.contants.ts @@ -0,0 +1,5 @@ +import { msg } from '@lingui/macro'; + +export const ERROR_TITLE = msg`That's an error.`; +export const ERROR_HELP_TEXT = msg`For help resolving an issue, reach out to support@regen.network.`; +export const HOMEPAGE_BUTTON_TEXT = 'Visit Our Homepage'; diff --git a/web-marketplace/src/pages/ErrorPage/ErrorPage.tsx b/web-marketplace/src/pages/ErrorPage/ErrorPage.tsx index c57ebdea5b..fdc1ef54c3 100644 --- a/web-marketplace/src/pages/ErrorPage/ErrorPage.tsx +++ b/web-marketplace/src/pages/ErrorPage/ErrorPage.tsx @@ -1,17 +1,28 @@ import { useRouteError } from 'react-router-dom'; +import { useLingui } from '@lingui/react'; import ErrorView from 'web-components/src/components/views/ErrorView'; +import { + ERROR_HELP_TEXT, + ERROR_TITLE, + HOMEPAGE_BUTTON_TEXT, +} from './ErrorPage.contants'; + import UnhappyBee from 'assets/unhappy-bee.png'; const ErrorPage = (): JSX.Element => { const error = useRouteError() as Error; + const { _ } = useLingui(); return ( } home={import.meta.env.VITE_WEBSITE_URL} msg={error.message || JSON.stringify(error)} + title={_(ERROR_TITLE)} + bodyText={_(ERROR_HELP_TEXT)} + buttonText={_(HOMEPAGE_BUTTON_TEXT)} /> ); }; diff --git a/web-marketplace/src/pages/Marketplace/Storefront/Storefront.tsx b/web-marketplace/src/pages/Marketplace/Storefront/Storefront.tsx index a8e49be663..f00c88f4eb 100644 --- a/web-marketplace/src/pages/Marketplace/Storefront/Storefront.tsx +++ b/web-marketplace/src/pages/Marketplace/Storefront/Storefront.tsx @@ -27,6 +27,17 @@ import { switchWalletModalAtom, } from 'lib/atoms/modals.atoms'; import { getHashUrl } from 'lib/block-explorer'; +import { + BLOCKCHAIN_RECORD, + CLOSE_BUTTON_TEXT, + PROCESSING_MODAL_BODY, + PROCESSING_MODAL_TITLE, + SEE_LESS, + SEE_MORE, + SHARE_TITLE, + TX_ERROR_MODAL_TITLE, + TX_MODAL_TITLE, +} from 'lib/constants/shared.constants'; import { useWallet } from 'lib/wallet/wallet'; import { Link } from 'components/atoms'; @@ -333,15 +344,19 @@ export const Storefront = (): JSX.Element => { setIsProcessingModalOpen(false)} + title={_(PROCESSING_MODAL_TITLE)} + bodyText={_(PROCESSING_MODAL_BODY)} /> { twitter: { text: _(STOREFRONT_TWITTER_TEXT), url: shareUrl }, linkedIn: { url: shareUrl }, })} + shareTitle={_(SHARE_TITLE)} + blockchainRecordText={_(BLOCKCHAIN_RECORD)} /> } linkComponent={Link} onButtonClick={onButtonClick} + blockchainRecordText={_(BLOCKCHAIN_RECORD)} /> { + const { _ } = useLingui(); + return ( } + title={_(PAGE_NOT_FOUND_TITLE)} + bodyText={_(PAGE_NOT_FOUND_BODY)} + buttonChildren={PAGE_NOT_FOUND_BUTTON} home={import.meta.env.VITE_WEBSITE_URL} /> ); diff --git a/web-marketplace/src/pages/Post/Post.constants.ts b/web-marketplace/src/pages/Post/Post.constants.ts index 3117ee9784..af7087f2f3 100644 --- a/web-marketplace/src/pages/Post/Post.constants.ts +++ b/web-marketplace/src/pages/Post/Post.constants.ts @@ -15,3 +15,7 @@ export const NEXT = msg`next`; export const POST_IS_DELETED = msg`Post is deleted`; export const DRAFT = msg`Draft`; export const UNTITLED = msg`Untitled`; +export const PRIVATE_FILES_LABEL = msg`Files available on request`; +export const PRIVATE_LOCATIONS_LABEL = msg`Location data available on request`; +export const ADMIN_PRIVATE_LOCATIONS_LABEL = msg`Locations are private`; +export const ADMIN_PRIVATE_FILES_LABEL = msg`Files are private`; diff --git a/web-marketplace/src/pages/Post/Post.tsx b/web-marketplace/src/pages/Post/Post.tsx index 7bb4e948fe..27d6f5a2bb 100644 --- a/web-marketplace/src/pages/Post/Post.tsx +++ b/web-marketplace/src/pages/Post/Post.tsx @@ -18,13 +18,20 @@ import { Body } from 'web-components/src/components/typography'; import { formatDate } from 'web-components/src/utils/format'; import { useAuth } from 'lib/auth/auth'; +import { PHOTO_CREDIT } from 'lib/constants/shared.constants'; import { getPostQuery } from 'lib/queries/react-query/registry-server/getPostQuery/getPostQuery'; import { getAccountByIdQuery } from 'lib/queries/react-query/registry-server/graphql/getAccountByIdQuery/getAccountByIdQuery'; import { getProjectByIdQuery } from 'lib/queries/react-query/registry-server/graphql/getProjectByIdQuery/getProjectByIdQuery'; import NotFoundPage from 'pages/NotFound'; -import { UNTITLED } from './Post.constants'; +import { + ADMIN_PRIVATE_FILES_LABEL, + ADMIN_PRIVATE_LOCATIONS_LABEL, + PRIVATE_FILES_LABEL, + PRIVATE_LOCATIONS_LABEL, + UNTITLED, +} from './Post.constants'; import { PostFooter } from './Post.Footer'; import { PostHeader } from './Post.Header'; import { PostPrivate } from './Post.Private'; @@ -145,11 +152,19 @@ function Post(): JSX.Element { } m-auto relative mb-30`} > {(isAdmin || !privateFiles) && ( { + const { _ } = useLingui(); const { accountChanging } = useWallet(); const { loading } = useAuth(); const theme = useTheme(); @@ -116,6 +123,9 @@ export const ProfileEdit = () => { { if (isWarningModalOpen) navigate(isWarningModalOpen); isDirtyRef.current = false; diff --git a/web-marketplace/src/pages/ProjectEdit/ProjectEdit.tsx b/web-marketplace/src/pages/ProjectEdit/ProjectEdit.tsx index 9965c804ec..46f90f9807 100644 --- a/web-marketplace/src/pages/ProjectEdit/ProjectEdit.tsx +++ b/web-marketplace/src/pages/ProjectEdit/ProjectEdit.tsx @@ -30,6 +30,11 @@ import { txSuccessfulModalAtom, } from 'lib/atoms/modals.atoms'; import { useAuth } from 'lib/auth/auth'; +import { + DISCARD_CHANGES_BODY, + DISCARD_CHANGES_BUTTON, + DISCARD_CHANGES_TITLE, +} from 'lib/constants/shared.constants'; import { getProjectQuery } from 'lib/queries/react-query/ecocredit/getProjectQuery/getProjectQuery'; import { getProjectByIdQuery } from 'lib/queries/react-query/registry-server/graphql/getProjectByIdQuery/getProjectByIdQuery'; import { useWallet } from 'lib/wallet/wallet'; @@ -277,6 +282,9 @@ function ProjectEdit(): JSX.Element { {saved && } { if (isWarningModalOpen) navigate(isWarningModalOpen); isDirtyRef.current = false; diff --git a/web-marketplace/src/pages/ProjectFinished/ProjectFinished.tsx b/web-marketplace/src/pages/ProjectFinished/ProjectFinished.tsx index 5ea84f5ece..d28db9cbf6 100644 --- a/web-marketplace/src/pages/ProjectFinished/ProjectFinished.tsx +++ b/web-marketplace/src/pages/ProjectFinished/ProjectFinished.tsx @@ -14,6 +14,7 @@ import { CardItem } from 'web-components/src/components/modal/TxModal'; import { Body, Label, Title } from 'web-components/src/components/typography'; import { truncateHash } from 'web-components/src/utils/truncate'; +import { SEE_LESS, SEE_MORE } from 'lib/constants/shared.constants'; import { getProjectByIdQuery } from 'lib/queries/react-query/registry-server/graphql/getProjectByIdQuery/getProjectByIdQuery'; import { Link } from '../../components/atoms'; @@ -62,6 +63,8 @@ const ProjectFinished: React.FC> = () => { {projectOnChainId ? ( > = () => { /> ) : ( > = () => { )} {!!deliverTxResponse?.transactionHash && ( > = () => { /> )} > = () => { isSubmitting={isSubmitModalOpen} saveAndExit={saveAndExit} /> - + {error && txModalTitle && ( )} {bannerError && } diff --git a/web-marketplace/src/pages/Projects/AllProjects/AllProjects.SideFilter.tsx b/web-marketplace/src/pages/Projects/AllProjects/AllProjects.SideFilter.tsx index afb4a4ae05..2ede1b475b 100644 --- a/web-marketplace/src/pages/Projects/AllProjects/AllProjects.SideFilter.tsx +++ b/web-marketplace/src/pages/Projects/AllProjects/AllProjects.SideFilter.tsx @@ -23,6 +23,7 @@ import { creditClassSelectedFiltersAtom, useCommunityProjectsAtom, } from 'lib/atoms/projects.atoms'; +import { SEE_LESS, SEE_MORE } from 'lib/constants/shared.constants'; import { useTracker } from 'lib/tracker/useTracker'; import { CommunityFilter } from './AllProjects.CommunityFilter'; @@ -165,6 +166,8 @@ export const SideFilter = ({ ( diff --git a/web-www/components/templates/press-kit/TimelineSection/TimelineSection.tsx b/web-www/components/templates/press-kit/TimelineSection/TimelineSection.tsx index ea1e4aece8..6fd5a30401 100644 --- a/web-www/components/templates/press-kit/TimelineSection/TimelineSection.tsx +++ b/web-www/components/templates/press-kit/TimelineSection/TimelineSection.tsx @@ -34,6 +34,7 @@ const TimelineSection = ({ timelineSectionData }: Props): JSX.Element => { onViewOnLedger={() => null} events={timelineSectionData?.items as any[]} completedItemIndex={timelineSectionData?.completedItemIndex || 0} + viewLedgerText="view on Ledger" />
); diff --git a/web-www/pages/404.tsx b/web-www/pages/404.tsx index 31ffd8657d..02bc324b65 100644 --- a/web-www/pages/404.tsx +++ b/web-www/pages/404.tsx @@ -1,5 +1,18 @@ +import { Box } from '@mui/material'; + import NotFound from 'web-components/src/components/views/NotFoundView'; export default function Custom404() { - return ; + return ( + + Visit Our Homepage{' '} + {'\u00A0'}Instead + + } + /> + ); }