Skip to content

Commit

Permalink
Updates copy. Adds translations.
Browse files Browse the repository at this point in the history
  • Loading branch information
jwhardwick committed Aug 1, 2024
1 parent ae7e00a commit f455d1d
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 40 deletions.
2 changes: 1 addition & 1 deletion packages/checkout/widgets-lib/src/lib/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,6 @@ export const WITHDRAWAL_CLAIM_GAS_LIMIT = 91000;
*/
export const CHECKOUT_APP_URL = {
[ENV_DEVELOPMENT]: 'https://checkout.dev.immutable.com',
[Environment.SANDBOX]: 'https://checkout.sandbox.immutable.com',
[Environment.SANDBOX]: 'http://localhost:3001',
[Environment.PRODUCTION]: 'https://checkout.immutable.com',
};
5 changes: 2 additions & 3 deletions packages/checkout/widgets-lib/src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,11 @@
"SERVICE_UNAVAILABLE_ERROR_VIEW": {
"heading": {
"swap": "Swapping is not available in your region",
"sanction": "Wallet is sanction placeholder copy"
"sanction": "This service is not available in your region"
},
"body": {
"swap": "Please refer to <quickswapLink>Quickswap’s</quickswapLink> website for further information.",
"sanction": "Please refer to PLACEHOLDER COPY for more information"

"sanction": "For further assistance visit the <immutableSupport>Immutable</immutableSupport> support page."
}
},
"LOADING_VIEW": {
Expand Down
6 changes: 4 additions & 2 deletions packages/checkout/widgets-lib/src/locales/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,12 @@
},
"SERVICE_UNAVAILABLE_ERROR_VIEW": {
"heading": {
"swap": "お住まいの地域では交換が利用できません"
"swap": "お住まいの地域では交換が利用できません",
"sanction": "このサービスはお住まいの地域では利用できません"
},
"body": {
"swap": "<quickswapLink>Quickswap</quickswapLink>のウェブサイトで詳細情報をご覧ください。"
"swap": "<quickswapLink>Quickswap</quickswapLink>のウェブサイトで詳細情報をご覧ください。",
"sanction": "詳しいサポートについては、<immutableSupport>Immutable</immutableSupport>サポートページをご覧ください."
}
},
"LOADING_VIEW": {
Expand Down
6 changes: 4 additions & 2 deletions packages/checkout/widgets-lib/src/locales/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,12 @@
},
"SERVICE_UNAVAILABLE_ERROR_VIEW": {
"heading": {
"swap": "귀하의 지역에서는 스왑이 가능하지 않습니다"
"swap": "귀하의 지역에서는 스왑이 가능하지 않습니다",
"sanction": "이 서비스는 귀하의 지역에서 이용할 수 없습니다"
},
"body": {
"swap": "자세한 정보는 <quickswapLink>Quickswap</quickswapLink> 웹사이트를 참조하십시오."
"swap": "자세한 정보는 <quickswapLink>Quickswap</quickswapLink> 웹사이트를 참조하십시오.",
"sanction": "추가 지원이 필요하시면 <immutableSupport>Immutable</immutableSupport> 지원 페이지를 방문하세요."
}
},
"LOADING_VIEW": {
Expand Down
6 changes: 4 additions & 2 deletions packages/checkout/widgets-lib/src/locales/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,12 @@
},
"SERVICE_UNAVAILABLE_ERROR_VIEW": {
"heading": {
"swap": "您所在的地区不支持兑换"
"swap": "您所在的地区不支持兑换",
"sanction": "该服务在您的地区不可用"
},
"body": {
"swap": "请参考<quickswapLink>Quickswap</quickswapLink>的网站了解更多信息。"
"swap": "请参考<quickswapLink>Quickswap</quickswapLink>的网站了解更多信息。",
"sanction": "如需进一步帮助,请访问<immutableSupport>Immutable</immutableSupport>支持页面。"
}
},
"LOADING_VIEW": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ export function ServiceUnavailableErrorView({
size="small"
rc={<a target="_blank" href="https://quickswap.exchange" rel="noreferrer" />}
/>,
immutableSupport: <Link
size="small"
rc={<a target="_blank" href="https://support.immutable.com/" rel="noreferrer" />}
/>,
}}
/>
</SimpleTextBody>
Expand All @@ -59,41 +63,41 @@ export function ServiceUnavailableErrorView({
>

{primaryActionText && onPrimaryButtonClick && (
<Box
sx={{
paddingX: 'base.spacing.x4',
paddingBottom: 'base.spacing.x2',
}}
>
<Button
sx={{ width: '100%' }}
testId="primary-action-button"
variant="primary"
size="large"
onClick={onPrimaryButtonClick}
<Box
sx={{
paddingX: 'base.spacing.x4',
paddingBottom: 'base.spacing.x2',
}}
>
{primaryActionText}
</Button>
</Box>
<Button
sx={{ width: '100%' }}
testId="primary-action-button"
variant="primary"
size="large"
onClick={onPrimaryButtonClick}
>
{primaryActionText}
</Button>
</Box>
)}

{secondaryActionText && onSecondaryButtonClick && (
<Box
sx={{
paddingX: 'base.spacing.x4',
paddingBottom: 'base.spacing.x2',
}}
>
<Button
sx={{ width: '100%' }}
testId="secondary-action-button"
variant="secondary"
size="large"
onClick={onSecondaryButtonClick}
<Box
sx={{
paddingX: 'base.spacing.x4',
paddingBottom: 'base.spacing.x2',
}}
>
{secondaryActionText}
</Button>
</Box>
<Button
sx={{ width: '100%' }}
testId="secondary-action-button"
variant="secondary"
size="large"
onClick={onSecondaryButtonClick}
>
{secondaryActionText}
</Button>
</Box>
)}
</Box>
</SimpleLayout>
Expand Down

0 comments on commit f455d1d

Please sign in to comment.