Skip to content

Commit

Permalink
Merge pull request #4212 from thematters/feat/copy-op
Browse files Browse the repository at this point in the history
feat(donation): revise copy of OP intro
  • Loading branch information
robertu7 authored Mar 6, 2024
2 parents dc6a849 + f60cd57 commit 5d4ce1a
Show file tree
Hide file tree
Showing 5 changed files with 76 additions and 39 deletions.
13 changes: 13 additions & 0 deletions lang/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,9 @@
"defaultMessage": "Total",
"description": "src/views/Circle/Analytics/SubscriberAnalytics/index.tsx"
},
"2D/X90": {
"defaultMessage": "Why Optimism?"
},
"2DkkhD": {
"defaultMessage": "Settings - Notifications",
"description": "src/views/Me/Settings/Notifications/index.tsx"
Expand Down Expand Up @@ -245,6 +248,9 @@
"3yk8fB": {
"defaultMessage": "Wallet"
},
"4118K3": {
"defaultMessage": "Optimism is a Layer 2 scaling solution based on Ethereum that can provide faster and cheaper transactions, while ensuring security, making it easier for you to support creators."
},
"47FYwb": {
"defaultMessage": "Cancel"
},
Expand Down Expand Up @@ -1046,6 +1052,10 @@
"OpeFTV": {
"defaultMessage": "Enter a 6-digit payment password."
},
"P+sWM0": {
"defaultMessage": "guide",
"description": "src/components/Forms/PaymentForm/PayTo/SetAmount/SetAmountHeader/WhyOptimismDialog/index.tsx"
},
"PLBmDT": {
"defaultMessage": "Password",
"description": "src/views/Me/Settings/Settings/Password/index.tsx"
Expand Down Expand Up @@ -1570,6 +1580,9 @@
"defaultMessage": "Resend",
"description": "src/components/Forms/EmailLoginForm/index.tsx"
},
"eKVBm/": {
"defaultMessage": "Optimism is a standalone blockchain. If you have USDT on other chains, you need to transfer them to Optimism. See details in the {link}."
},
"eTpiYa": {
"defaultMessage": "No data yet."
},
Expand Down
13 changes: 13 additions & 0 deletions lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,9 @@
"defaultMessage": "Total",
"description": "src/views/Circle/Analytics/SubscriberAnalytics/index.tsx"
},
"2D/X90": {
"defaultMessage": "Why Optimism?"
},
"2DkkhD": {
"defaultMessage": "Settings - Notifications",
"description": "src/views/Me/Settings/Notifications/index.tsx"
Expand Down Expand Up @@ -245,6 +248,9 @@
"3yk8fB": {
"defaultMessage": "Wallet"
},
"4118K3": {
"defaultMessage": "Optimism is a Layer 2 scaling solution based on Ethereum that can provide faster and cheaper transactions, while ensuring security, making it easier for you to support creators."
},
"47FYwb": {
"defaultMessage": "Cancel"
},
Expand Down Expand Up @@ -1046,6 +1052,10 @@
"OpeFTV": {
"defaultMessage": "Enter a 6-digit payment password."
},
"P+sWM0": {
"defaultMessage": "guide",
"description": "src/components/Forms/PaymentForm/PayTo/SetAmount/SetAmountHeader/WhyOptimismDialog/index.tsx"
},
"PLBmDT": {
"defaultMessage": "Password",
"description": "src/views/Me/Settings/Settings/Password/index.tsx"
Expand Down Expand Up @@ -1570,6 +1580,9 @@
"defaultMessage": "Resend",
"description": "src/components/Forms/EmailLoginForm/index.tsx"
},
"eKVBm/": {
"defaultMessage": "Optimism is a standalone blockchain. If you have USDT on other chains, you need to transfer them to Optimism. See details in the {link}."
},
"eTpiYa": {
"defaultMessage": "No data yet."
},
Expand Down
13 changes: 13 additions & 0 deletions lang/zh-Hans.json
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,9 @@
"defaultMessage": "总数",
"description": "src/views/Circle/Analytics/SubscriberAnalytics/index.tsx"
},
"2D/X90": {
"defaultMessage": "为什么采用 Optimism?"
},
"2DkkhD": {
"defaultMessage": "设置 - 通知",
"description": "src/views/Me/Settings/Notifications/index.tsx"
Expand Down Expand Up @@ -245,6 +248,9 @@
"3yk8fB": {
"defaultMessage": "我的钱包"
},
"4118K3": {
"defaultMessage": "Optimism 是基于以太坊的第二层(Layer2)扩容方案,能提升交易速度,并降低手续费,同时确保安全性,让你更轻松地支持创作者。"
},
"47FYwb": {
"defaultMessage": "取消"
},
Expand Down Expand Up @@ -1046,6 +1052,10 @@
"OpeFTV": {
"defaultMessage": "输入六位数字交易密码"
},
"P+sWM0": {
"defaultMessage": "教学指南",
"description": "src/components/Forms/PaymentForm/PayTo/SetAmount/SetAmountHeader/WhyOptimismDialog/index.tsx"
},
"PLBmDT": {
"defaultMessage": "登录密码",
"description": "src/views/Me/Settings/Settings/Password/index.tsx"
Expand Down Expand Up @@ -1570,6 +1580,9 @@
"defaultMessage": "重新发送",
"description": "src/components/Forms/EmailLoginForm/index.tsx"
},
"eKVBm/": {
"defaultMessage": "Optimism 是独立运行的区块链,若你在其他链上已有 USDT 货币,需要将它们转移到 Optimism 网络才能使用,详情参考{link}。"
},
"eTpiYa": {
"defaultMessage": "尚无支持数据"
},
Expand Down
13 changes: 13 additions & 0 deletions lang/zh-Hant.json
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,9 @@
"defaultMessage": "總數",
"description": "src/views/Circle/Analytics/SubscriberAnalytics/index.tsx"
},
"2D/X90": {
"defaultMessage": "為什麼採用 Optimism?"
},
"2DkkhD": {
"defaultMessage": "設定 - 通知",
"description": "src/views/Me/Settings/Notifications/index.tsx"
Expand Down Expand Up @@ -245,6 +248,9 @@
"3yk8fB": {
"defaultMessage": "我的錢包"
},
"4118K3": {
"defaultMessage": "Optimism 是基於以太坊的第二層(Layer2)擴容方案,能提升交易速度,並降低手續費,同時確保安全性,讓你更輕鬆地支持創作者。"
},
"47FYwb": {
"defaultMessage": "取消"
},
Expand Down Expand Up @@ -1046,6 +1052,10 @@
"OpeFTV": {
"defaultMessage": "輸入六位數字交易密碼"
},
"P+sWM0": {
"defaultMessage": "教學指南",
"description": "src/components/Forms/PaymentForm/PayTo/SetAmount/SetAmountHeader/WhyOptimismDialog/index.tsx"
},
"PLBmDT": {
"defaultMessage": "登入密碼",
"description": "src/views/Me/Settings/Settings/Password/index.tsx"
Expand Down Expand Up @@ -1570,6 +1580,9 @@
"defaultMessage": "重新發送",
"description": "src/components/Forms/EmailLoginForm/index.tsx"
},
"eKVBm/": {
"defaultMessage": "Optimism 是獨立運行的區塊鏈,若你在其他鏈上已有 USDT 貨幣,需要將它們轉移到 Optimism 網絡才能使用,詳情參考{link}。"
},
"eTpiYa": {
"defaultMessage": "尚無支持數據"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,7 @@ import { useContext } from 'react'
import { FormattedMessage } from 'react-intl'

import { GUIDE_LINKS } from '~/common/enums'
import {
Dialog,
LanguageContext,
Translate,
useDialogSwitch,
} from '~/components'
import { Dialog, LanguageContext, useDialogSwitch } from '~/components'

interface WhyOptimismDialogProps {
children: ({ openDialog }: { openDialog: () => void }) => React.ReactNode
Expand All @@ -32,11 +27,7 @@ const WhyOptimismDialog = ({ children }: WhyOptimismDialogProps) => {
<Dialog isOpen={show} onDismiss={closeDialog}>
<Dialog.Header
title={
<Translate
zh_hant="為什麼先採用 Polygon?"
zh_hans="为什么先采用 Polygon ?"
en="Why Polygon?"
/>
<FormattedMessage defaultMessage="Why Optimism?" id="2D/X90" />
}
closeDialog={closeDialog}
closeText={
Expand All @@ -48,37 +39,31 @@ const WhyOptimismDialog = ({ children }: WhyOptimismDialogProps) => {
<Dialog.Content.Message align="left" smUpAlign="left">
<ol>
<li>
<Translate
zh_hant="在區塊鏈上操作需支付手續費,若在以太坊上進行交易,手續費高昂且波動劇烈。為了讓支持更方便且費用低廉,Matters 先採用 Polygon 網絡,讓你能更輕鬆地支持創作者"
zh_hans="在区块链上操作需支付手续费,若在以太坊上进行交易,手续费高昂且波动剧烈。为了让支持更方便且费用低廉,Matters 先采用 Polygon 网络,让你能更轻松地支持创作者"
en="Operating on the blockchain requires gas fees, which can be high on the Ethereum. To make Support easier and with lower transaction fees, Matters.News started with the Polygon network."
/>
</li>
<li>
<Translate
zh_hant="Polygon (先前為 Matic Network) 是獨立運行的區塊鏈,若你在其他鏈上已有 USDT 貨幣,需將它們移轉到 Polygon 網絡中才能使用,細節參考 "
zh_hans="Polygon (先前为 Matic Network) 是独立运行的区块链,若你在其他链上已有 USDT 货币,需将它们移转到 Polygon 网络中才能使用,细节参考 "
en="Polygon (Matic Network) is a standalone blockchain. If you have USDT on other chains, you will need to transfer them to the Polygon network. See details in the "
<FormattedMessage
defaultMessage="Optimism is a Layer 2 scaling solution based on Ethereum that can provide faster and cheaper transactions, while ensuring security, making it easier for you to support creators."
id="4118K3"
/>
<a
className="u-link-green"
href={GUIDE_LINKS.payment[lang]}
target="_blank"
rel="noreferrer"
>
<Translate
zh_hant="教學指南"
zh_hans="教学指南"
en="tutorial"
/>
</a>
<Translate zh_hant="" zh_hans="" en="." />
</li>
<li>
<Translate
zh_hant="Matters 將有計畫地兼容其他區塊鏈,屆時將有更多的選擇來支持創作者"
zh_hans="Matters 将有计划地兼容其他区块链,届时将有更多的选择来支持创作者"
en="Matters.News will gradually access more blockchain networks, so there will be more options to support creators."
<FormattedMessage
defaultMessage="Optimism is a standalone blockchain. If you have USDT on other chains, you need to transfer them to Optimism. See details in the {link}."
id="eKVBm/"
values={{
link: (
<a
className="u-link-green"
href={GUIDE_LINKS.payment[lang]}
target="_blank"
rel="noreferrer"
>
<FormattedMessage
defaultMessage="guide"
description="src/components/Forms/PaymentForm/PayTo/SetAmount/SetAmountHeader/WhyOptimismDialog/index.tsx"
id="P+sWM0"
/>
</a>
),
}}
/>
</li>
</ol>
Expand Down

0 comments on commit 5d4ce1a

Please sign in to comment.