Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
translate getting started section into ja
  • Loading branch information
PokoPoko2ry committed Jan 21, 2023
1 parent 3ced8ad commit 00207d3
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 96 deletions.
8 changes: 4 additions & 4 deletions docs/.vuepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -708,12 +708,12 @@ export default defineUserConfig<DefaultThemeOptions>({
selectLanguageName: "日本語",
navbar: [
{
text: "Contribute",
text: "コントリビュート",
link: "https://github.com/solana-developers/solana-cookbook",
},
{
text: "Integrations",
link: "/integrations",
text: "インテグレーション",
link: "/ja/integrations",
},
],
sidebar: {
Expand All @@ -723,7 +723,7 @@ export default defineUserConfig<DefaultThemeOptions>({
children: ["/ja/", "/ja/getting-started/installation.md"],
},
{
text: "Core Concepts",
text: "コアコンセプト",
children: [
"/ja/core-concepts/accounts.md",
"/ja/core-concepts/programs.md",
Expand Down
32 changes: 14 additions & 18 deletions docs/ja/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,28 +39,24 @@ footer: MIT Licensed

# Cooking with Solana

The *Solana Cookbook* is a developer resource that
provides the essential concepts and references for
building applications on Solana. Each concept and
reference will focus on specific aspects of Solana
development while providing additional details and usage
examples.
「Solana Cookbook」はsolanaでアプリケーションを構築するうえで欠かせない基本的なコンセプトを解説する
開発者向けのリファレンスガイドです。
各コンセプトとリファレンスは、詳細な解説と例を用いてsolanaの開発における特有の側面に焦点を当てています。

## Contributing
## コントリビューション

The Cookbook is designed in a way that makes it easy for
new Solana developers to contribute. Even if you
don't know how to do something, contributing to the
cookbook is a great way to learn!
Cookbookは、Solana開発の初心者でも気軽にコンリビュートできるよう設計されています。<br>
何かわからないことがあったとしても、Cookbookへのコントリビューションは学習の大きな手助けとなるはずです!

Check out all open issues [here](https://github.com/solana-developers/solana-cookbook/issues). Contribution guidelines [here](https://github.com/solana-developers/solana-cookbook#contributing). If you find the cookbook is missing a suggestion, please add an issue.
Solana Cookbookにおいて未解決、未報告の問題がある場合は、まずissueの追加をお願いいたします。
issueは[こちら](https://github.com/solana-developers/solana-cookbook/issues)。 コントリビューションガイドラインは[こちら](https://github.com/solana-developers/solana-cookbook#contributing)

## How to Read the Cookbook
## Cookbookの読み方

The Solana Cookbook is split into different sections, each aimed at a different goal.
Solana Cookbook ではそれぞれの目的に応じ下記の章に分けて解説しています。

| Section | Description |
| | 概要 |
|---------------|-----------------------------------------------------------------|
| Core Concepts | Building blocks of Solana that are good to know for development |
| Guides | Snack-sized guides about different tools for development |
| References | References to commonly needed code snippets |
| コアコンセプト | 開発において役立つSolanaの構成要素 |
| ガイド | 各開発ツールの簡単な紹介 |
| リファレンス | 普遍的なコードスニペット |
129 changes: 55 additions & 74 deletions docs/ja/getting-started/installation.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Installation
title: インストール
head:
- - meta
- name: title
Expand Down Expand Up @@ -39,13 +39,14 @@ footer: MIT Licensed

## Install Web3.js

There are a few libraries that you can use to get started with javascript or typescript on Solana.<br/>
下記のjavascript や typescript のライブラリを用いてSolanaと対話が可能です。<br/>

### Web3.js

[`@solana/web3.js`](https://solana-labs.github.io/solana-web3.js/) is a library that has a lot of the basic Solana tools to interact, send transactions, and read from the blockchain.
[`@solana/web3.js`](https://solana-labs.github.io/solana-web3.js/) は、
トランザクションの送信、対話、ブロックチェーンの読み取りといったSolanaの基本的なツールを多数備えたライブラリです。

You can install with the following:
下記に従いインストールが可能です。:

<CodeGroup>
<CodeGroupItem title="YARN" active>
Expand Down Expand Up @@ -81,10 +82,10 @@ npm install --save @solana/web3.js

### SPL-Token

`@solana/spl-token` is a library that contains many of the javascript/typescript bindings needed to interact with SPL tokens.
You can use this library to mint new SPL tokens, transfer tokens, and more.
`@solana/spl-token` はSPL トークンと対話するために必要な javascript/typescript の多くのバインディングを持つライブラリで、
SPLトークンのmintや送信などが実行できます。

You can install this library with the following:
下記に従いインストールが可能です。:

<CodeGroup>
<CodeGroupItem title="YARN" active>
Expand Down Expand Up @@ -119,12 +120,12 @@ npm install --save @solana/spl-token
---

### Wallet-Adapter
wallet-adapterと呼ばれるライブラリ群は、ウォレット接続の起動に役立ちます。
現在のところ、Svelte, Angular, Vue.js, Reactをサポートしています。
Wallet-adapterは、あなたのdAppsと[Phantom](https://phantom.app/)[Solflare](https://solflare.com/)などの
ウォレットと統合が可能です。

There is a collection of libraries that can help bootstrap wallet connections within Solana called wallet-adapter.
Currently the package supports use within Svelte, Angular, Vue.js, and React. Wallet-adapter can quickstart your dApp
integration with wallets like [Phantom](https://phantom.app/), [Solflare](https://solflare.com/), and more.

You can install this library with the following:
下記に従いインストールが可能です。:

<CodeGroup>
<CodeGroupItem title="YARN" active>
Expand Down Expand Up @@ -165,26 +166,25 @@ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
</CodeGroupItem>
</CodeGroup>

For Windows, please visit the [Rust installation site](https://www.rust-lang.org/tools/install).
Windowsについてはこちらを確認してください。[Rust installation site](https://www.rust-lang.org/tools/install).

## Install CLI

### macOS & Linux

Open your favorite Terminal application.

Replace `LATEST_RELEASE` with your desired version and install the [latest Solana release](https://github.com/solana-labs/solana/releases) on your machine by running:
お好きなターミナルアプリを起動してください。
次のコマンドを実行して最新の[latest Solana release](https://github.com/solana-labs/solana/releases)をインストールします。<br>
LATEST_RELEASE の部分は、目的のバージョンがあれば後述する内容に適宜置き換えてください。:

```bash
sh -c "$(curl -sSfL https://release.solana.com/LATEST_RELEASE/install)"
```

You can replace `LATEST_RELEASE` with the release tag matching
the software version of your desired release, or use one of the three symbolic
channel names: `stable`, `beta`, or `edge`. To find the latest release, check
versions available [here](https://github.com/solana-labs/solana/releases).
`LATEST_RELEASE` の部分は、お望みのバージョンに一致するリリースタグか、
`stable`, `beta`, `edge`のシンボリックチャネル名に置き換えが可能です。:
利用可能なバージョンは次のリンクを参照してください。 [here](https://github.com/solana-labs/solana/releases)

The following output indicates a successful update:
次のようなログが出力されれば、アップデートは完了です。:

```text
downloading LATEST_RELEASE installer
Expand All @@ -195,33 +195,28 @@ Active release directory: /home/solana/.local/share/solana/install/active_releas
Update successful
```

Depending on your system, the end of the installer messaging may prompt you
to
システムによっては、インストーラ メッセージの最後に、次のようなメッセージが表示されます。

```bash
Please update your PATH environment variable to include the solana programs:
```

If you get the above message, copy and paste the recommended command below
it to update `PATH`.
この場合は、推奨されるコマンドをコピペして`PATH`を更新してください。

Confirm you have the desired version of `solana` installed by running:
以下を実行して、必要なバージョンの `solana` がインストールされていることを確認します。

```bash
solana --version
```

After a successful install, `solana-install update` may be used to easily
update the Solana software to a newer version at any time.
インストール完了後、`solana-install update` でいつでも簡単にSolanaを最新版へ更新することができます。

#### Downloading Binaries (Linux)

Alternatively, you can install from binaries instead of using solana-install.
solana-installの代わりに、バイナリファイルからインストールも可能です。

Download the binaries by navigating to
[https://github.com/solana-labs/solana/releases/latest](https://github.com/solana-labs/solana/releases/latest),
download **solana-release-x86_64-unknown-linux-msvc.tar.bz2**, then extract the
archive:
[次のページ](https://github.com/solana-labs/solana/releases/latest)から、**solana-release-x86_64-unknown-linux-msvc.tar.bz2**をダウンロードします。
次に、ダウンロードしたファイルを解凍します。:

```bash
tar jxf solana-release-x86_64-unknown-linux-gnu.tar.bz2
Expand All @@ -231,12 +226,10 @@ export PATH=$PWD/bin:$PATH

#### Downloading Binaries (macOS)

Alternatively, you can install from binaries instead of using solana-install.
solana-installの代わりに、バイナリファイルからインストールも可能です。

Download the binaries by navigating to
[https://github.com/solana-labs/solana/releases/latest](https://github.com/solana-labs/solana/releases/latest),
download **solana-release-x86_64-apple-darwin.tar.bz2**, then extract the
archive:
[次のページ](https://github.com/solana-labs/solana/releases/latest)から、**solana-release-x86_64-apple-darwin.tar.bz2**をダウンロードします。
次に、ダウンロードしたファイルを解凍します。:

```bash
tar jxf solana-release-x86_64-apple-darwin.tar.bz2
Expand All @@ -248,61 +241,52 @@ export PATH=$PWD/bin:$PATH

### Windows

Open a Command Prompt (`cmd.exe`) as an Administrator.
コマンドプロンプト(`cmd.exe`) を管理者として起動します。

Search for Command Prompt in the Windows search bar. When the Command
Prompt app appears, right-click and select “Open as Administrator”.
If you are prompted by a pop-up window asking “Do you want to allow this app to
make changes to your device?”, click 'Yes'.
Windowsの検索ボックスからコマンドプロンプトを検索し、
右クリックから 「管理者として実行」をクリックします。
「このアプリがデバイスに変更を加えることを許可しますか?」というポップアップが出た場合は、
「はい」をクリックします。

Copy and paste the following command, then press Enter to download the Solana
installer into a temporary directory:
次のコマンドをコピー&ペースト、Enter キーを押して実行し、 Solana インストーラーを一時フォルダにダウンロードします。:

```bash
curl https://release.solana.com/v1.9.16/solana-install-init-x86_64-pc-windows-msvc.exe --output C:\solana-install-tmp\solana-install-init.exe --create-dirs
```

If `v1.9.16` is not your desired version, find the latest release [here](https://github.com/solana-labs/solana/releases).
`v1.9.16`が希望するバージョンではない場合、[ここ](https://github.com/solana-labs/solana/releases)から最新版を確認してください。

Copy and paste the following command, then press Enter to install the latest
version of Solana. If you see a security pop-up by your system, please select
to allow the program to run.
次のコマンドをコピー&ペースト、Enterキーを押して最新バージョンの Solana をインストールします。
システムによってセキュリティポップアップが表示された場合は、プログラムの実行を許可してください。

```bash
C:\solana-install-tmp\solana-install-init.exe v1.9.16
```

To find the latest release, check
versions available [here](https://github.com/solana-labs/solana/releases).

When the installer is finished, press Enter.
最新のリリースを見つけるには、[ここ](https://github.com/solana-labs/solana/releases)で利用可能なバージョンを確認してください。

Close the command prompt window and re-open a new command prompt window as a
normal user.
インストーラーが終了したら、Enter キーを押します。
コマンドプロンプトを閉じて、通常のユーザーとして再度実行します。

Search for "Command Prompt" in the search bar, then left-click on the
Command Prompt app icon (no need to run as Administrator).
検索バーで「コマンド プロンプト」を検索し、コマンド プロンプト アプリのアイコンを左クリックします。
(管理者として実行する必要はありません)。

Confirm you have the desired version of `solana` installed by entering:
以下を実行して、必要なバージョンの `solana` がインストールされていることを確認します。:

```bash
solana --version
```

After a successful install, `solana-install update` may be used to easily
update the Solana software to a newer version at any time.
インストール完了後、`solana-install update` でいつでも簡単にSolanaを最新版へ更新することができます。

#### Downloading Binaries

Alternatively, you can install from binaries instead of using solana-install.
solana-installの代わりに、バイナリファイルからインストールも可能です。

Download the binaries by navigating to
[https://github.com/solana-labs/solana/releases/latest](https://github.com/solana-labs/solana/releases/latest),
download **solana-release-x86_64-pc-windows-msvc.tar.bz2**, then extract the
archive using WinZip or similar.
[次のページ](https://github.com/solana-labs/solana/releases/latest)から、 **solana-release-x86_64-pc-windows-msvc.tar.bz2**をダウンロードします。
次に、ダウンロードしたファイルを解凍します。:

Open a Command Prompt and navigate to the directory into which you extracted
the binaries and run:
コマンド プロンプトを開き、バイナリを解凍したディレクトリに移動して、次のコマンドを実行します。:

```bash
cd solana-release/
Expand All @@ -311,19 +295,16 @@ set PATH=%cd%/bin;%PATH%

### Build From Source

If you are unable to use the prebuilt binaries or prefer to build it yourself
from source, navigate to
[https://github.com/solana-labs/solana/releases/latest](https://github.com/solana-labs/solana/releases/latest),
and download the **Source Code** archive. Extract the code and build the
binaries with:
ビルド済みのバイナリを使用できない場合や、ソースから自分でビルドしたい場合は、
[ここ](https://github.com/solana-labs/solana/releases/latest)に移動し、**Source Code**アーカイブをダウンロードしてください。
解凍後、次のコマンドでビルドします。

```bash
./scripts/cargo-install-all.sh .
export PATH=$PWD/bin:$PATH
```

You can then run the following command to obtain the same result as with
prebuilt binaries:
次のコマンドを実行して、ビルド済みバイナリと同じ結果を得ることができます。:

```bash
solana-install init
Expand Down

0 comments on commit 00207d3

Please sign in to comment.