[JA] translate faucet page

This commit is contained in:
tequ
2024-07-08 14:42:53 +09:00
parent 2257275d2a
commit 8b6aaff442
2 changed files with 35 additions and 8 deletions

View File

@@ -673,6 +673,33 @@ resources.dev-tools.domain-verifier.checking.part1: ' '
resources.dev-tools.domain-verifier.checking.part2: を確認中 resources.dev-tools.domain-verifier.checking.part2: を確認中
Found: 見つかりました Found: 見つかりました
# resources/dev-tools/xrp-faucets.page.tsx
Servers: サーバ
resources.dev-tool.faucet.content.part1: これらのは、
resources.dev-tool.faucet.content.part2: XRP Ledger並列テストネットワーク
resources.dev-tool.faucet.content.part3: はXRP Ledgerやその上に構築されたソフトウェアへの変更を、実際の資金を使わずにテストするためのプラットフォームを提供します。
resources.dev-tool.faucet.content.part4: これらの資金は
resources.dev-tool.faucet.content.part5: テストのみ
resources.dev-tool.faucet.content.part6: を目的としています。テストネットワークの履歴と残高は必要に応じてリセットされます。Devnetは警告なしにリセットされることがあります。
resources.dev-tool.faucet.content.part7: これらのネットワーク上のすべての残高とXRPは、メインネットとは別のものです。安全のため、テストネットやDevnetの認証情報をメインネットで使用しないでください。
"Choose Network:": "ネットワークを選択:"
Mainnet-like network for testing applications.: アプリケーションのテスト用のメインネットに似たネットワーク。
Preview of upcoming amendments.: 今後のAmendmentのプレビューネットワーク。
Hooks (L1 smart contracts) enabled Xahau testnet.: HooksL1スマートコントラクトが有効化されたXahau Networkのテストネット。
resources.dev-tools.faucet.cred-btn.part1: ' '
resources.dev-tools.faucet.cred-btn.part2: のアカウントを生成
resources.dev-tools.faucet.your-cred.part1: 生成した
resources.dev-tools.faucet.your-cred.part2: のアカウント情報
resources.dev-tools.faucet.error.part1: ' '
resources.dev-tools.faucet.error.part2: のFaucetでエラーが発生しました。再度お試しください。
Generating keys..: キーを生成中...
Address: アドレス
Secret: シークレット
Funding account...: アカウントに資金を供給中...
Balance: 残高
Sequence Number: シーケンス番号
Waiting...: お待ちください...
Open Source.: オープンソース Open Source.: オープンソース
Jump to top of page: ページの先頭へ Jump to top of page: ページの先頭へ
Edit page: ページを編集 Edit page: ページを編集

View File

@@ -47,7 +47,7 @@ function FaucetEndpoints({ faucet, givenKey } : { faucet: FaucetInfo, givenKey:
const { translate } = useTranslate(); const { translate } = useTranslate();
return (<div key={givenKey}> return (<div key={givenKey}>
<h4>{translate(`${faucet.shortName} Servers`)}</h4> <h4>{faucet.shortName} {translate(`Servers`)}</h4>
<pre> <pre>
<code> <code>
// WebSocket<br/> // WebSocket<br/>
@@ -84,9 +84,9 @@ export default function XRPFaucets(): React.JSX.Element {
<section className="container-fluid pt-3 p-md-3"> <section className="container-fluid pt-3 p-md-3">
<h1>{translate("XRP Faucets")}</h1> <h1>{translate("XRP Faucets")}</h1>
<div className="content"> <div className="content">
<p>{translate("These ")}<a href="parallel-networks.html">{translate("parallel XRP Ledger test networks")}</a> {translate("provide platforms for testing changes to the XRP Ledger and software built on it, without using real funds.")}</p> <p>{translate("resources.dev-tool.faucet.content.part1", "These ")}<a href="parallel-networks.html">{translate("resources.dev-tool.faucet.content.part2", "parallel XRP Ledger test networks")}</a> {translate("resources.dev-tool.faucet.content.part3", "provide platforms for testing changes to the XRP Ledger and software built on it, without using real funds.")}</p>
<p>{translate("These funds are intended for")} <strong>{translate("testing")}</strong> {translate("only. Test networks' ledger history and balances are reset as necessary. Devnets may be reset without warning.")}</p> <p>{translate("resources.dev-tool.faucet.content.part4", "These funds are intended for")} <strong>{translate("resources.dev-tool.faucet.content.part5", "testing")}</strong> {translate("resources.dev-tool.faucet.content.part6", "only. Test networks' ledger history and balances are reset as necessary. Devnets may be reset without warning.")}</p>
<p>{translate("All balances and XRP on these networks are separate from Mainnet. As a precaution, do not use the Testnet or Devnet credentials on the Mainnet.")}</p> <p>{translate("resources.dev-tool.faucet.content.part7", "All balances and XRP on these networks are separate from Mainnet. As a precaution, do not use the Testnet or Devnet credentials on the Mainnet.")}</p>
<h3>{translate("Choose Network:")}</h3> <h3>{translate("Choose Network:")}</h3>
{ faucets.map((net) => ( { faucets.map((net) => (
@@ -117,7 +117,7 @@ async function generateFaucetCredentialsAndUpdateUI(
setSecret: React.Dispatch<React.SetStateAction<string>>, setSecret: React.Dispatch<React.SetStateAction<string>>,
setBalance: React.Dispatch<React.SetStateAction<string>>, setBalance: React.Dispatch<React.SetStateAction<string>>,
setSequence: React.Dispatch<React.SetStateAction<string>>, setSequence: React.Dispatch<React.SetStateAction<string>>,
translate: (key: string) => string): Promise<void> { translate: (key: string, options?: string) => string): Promise<void> {
setButtonClicked(true) setButtonClicked(true)
@@ -146,7 +146,7 @@ async function generateFaucetCredentialsAndUpdateUI(
setBalance(response.balance) setBalance(response.balance)
} catch (e) { } catch (e) {
alert(translate(`There was an error with the ${selectedFaucet.shortName} faucet. Please try again.`)) alert(`${translate('resources.dev-tools.faucet.error.part1', 'There was an error with the ')}${selectedFaucet.shortName}${translate('resources.dev-tools.faucet.error.part2', ' faucet. Please try again.')}`)
} }
setButtonClicked(false) setButtonClicked(false)
} }
@@ -174,14 +174,14 @@ function TestCredentials({selectedFaucet, translate}) {
setSequence, setSequence,
translate) translate)
} className="btn btn-primary mr-2 mb-2"> } className="btn btn-primary mr-2 mb-2">
{translate(`Generate ${selectedFaucet.shortName} credentials`)} {`${translate('resources.dev-tools.faucet.cred-btn.part1', 'Generate ')}${selectedFaucet.shortName}${translate('resources.dev-tools.faucet.cred-btn.part2', ' credentials')}`}
</button> </button>
</div> </div>
{/* </XRPLGuard> */} {/* </XRPLGuard> */}
{generatedCredentialsFaucet && <div id="your-credentials"> {generatedCredentialsFaucet && <div id="your-credentials">
<h2>{translate(`Your ${generatedCredentialsFaucet} Credentials`)}</h2> <h2>{`${translate('resources.dev-tools.faucet.your-cred.part1', 'Your ')}${generatedCredentialsFaucet}${translate('resources.dev-tools.faucet.your-cred.part2', ' Credentials')}`}</h2>
</div>} </div>}
{(buttonClicked && address === "") && <XRPLoader message={translate("Generating keys..")}/>} {(buttonClicked && address === "") && <XRPLoader message={translate("Generating keys..")}/>}