Skip to content

Commit

Permalink
Merge pull request #239 from arweavejp/main
Browse files Browse the repository at this point in the history
feat: Support Japanese Language
  • Loading branch information
twilson63 authored Oct 12, 2024
2 parents b7d06e6 + 9b0fdb8 commit 0491b37
Show file tree
Hide file tree
Showing 101 changed files with 11,761 additions and 0 deletions.
7 changes: 7 additions & 0 deletions languages/def.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { createRequire } from "node:module";

const enStrings = createRequire(import.meta.url)("./strings/en.json");
const zhStrings = createRequire(import.meta.url)("./strings/zh.json");
const jaStrings = createRequire(import.meta.url)("./strings/ja.json");
/**
* Start adding new languages by making a new language object inside the array
*
Expand All @@ -15,6 +16,12 @@ const languages = [
code: "zh", // 2 letter language code (ISO 639‑1)
strings: zhStrings, // JSON object of translated UI element strings
},
{
display: "日本語", // Name of the language displayed in UI
name: "Japanese", // Name of the language in English, used by OpenAI translation
code: "ja", // 2 letter language code (ISO 639‑1)
strings: jaStrings, // JSON object of translated UI element strings
},
];

const i18n_strs = languages.reduce((langs, currentLang) => {
Expand Down
90 changes: 90 additions & 0 deletions languages/strings/ja.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
{
"label": "日本語",
"display": "日本語",
"lang": "ja",
"title": "Cookbook",
"description": "無限のスレッドを持つ非中央集権コンピュータ",
"edit": "編集",
"on-this-page": "このページ",
"prev-page": "前のページ",
"next-page": "次のページ",
"language": "Language",
"docs": "Docs",
"edit-link-text": "このページの変更を提案",
"welcome": "ようこそ",
"welcome-getting-started": "はじめに",
"welcome-testnet-info": "テストネット情報",
"welcome-testnet-info-quests": "クエスト",
"concepts": "コンセプト",
"concepts-specs": "仕様",
"concepts-messages": "メッセージ",
"concepts-processes": "プロセス",
"concepts-units": "ユニット",
"concepts-how-it-works": "メッセージングの仕組み",
"concepts-meet-lua": "Luaの概要",
"concepts-tour": "aosインターフェース",
"guides": "ガイド",
"guides-aos": "aos",
"guides-aos-intro": "はじめに",
"guides-aos-installing": "インストール",
"guides-aos-cli": "CLI",
"guides-aos-load": ".load",
"guides-aos-token": "トークンの作成",
"guides-aos-prompt": "プロンプトのカスタマイズ",
"guides-aos-pingpong": "Ping Pong サーバー",
"guides-aos-editor": "エディターの設定",
"guides-aos-inbox-and-handlers": "Understanding the Inbox",
"guides-aos-troubleshooting": "Troubleshooting w/ao.link",
"guides-aos-faq": "FAQ",
"guides-aos-blueprints": "Blueprints",
"guides-aos-blueprints-chatroom": "Chatroom Blueprint",
"guides-aos-blueprints-cred-utils": "CRED Utils Blueprint",
"guides-aos-blueprints-staking": "Staking Blueprint",
"guides-aos-blueprints-token": "Token Blueprint",
"guides-aos-blueprints-voting": "Voting Blueprint",
"guides-aos-modules": "Modules",
"guides-aos-modules-json": "JSON",
"guides-aos-modules-ao": "ao",
"guides-aos-modules-crypto": "crypto",
"guides-aos-modules-base64": "Base64",
"guides-aos-modules-pretty": "Pretty",
"guides-aos-modules-utils": "Utils",
"guides-aoconnect": "aoconnect",
"guides-calling-dryrun": "ドライランの呼び出し",
"guides-connecting": "ノードへの接続",
"guides-monitoring-cron": "Cronの監視",
"guides-installing-connect": "aoconnectのインストール",
"guides-reading-results": "結果の読み取り",
"guides-sending-messages": "メッセージの送信",
"guides-spawning-processes": "プロセスの生成",
"guides-assign-data": "データの割り当て",
"guides-0rbit": "0rbit",
"guides-0rbit-get-request": "First GET Request",
"guides-0rbit-post-request": "First POST Request",
"tutorials": "チュートリアル",
"tutorials-begin": "はじめに",
"tutorials-begin-preparations": "準備",
"tutorials-begin-messaging": "メッセージング",
"tutorials-begin-chatroom": "チャットルームの作成",
"tutorials-begin-token": "トークンの作成",
"tutorials-begin-tokengating": "トークンゲーティング",
"tutorials-bots-and-games": "ボットとゲーム",
"tutorials-bots-and-games-ao-effect": "ゲームをプレイしよう",
"tutorials-bots-and-games-announcements": "アナウンスの解釈",
"tutorials-bots-and-games-game-state": "ゲームの状態を取得する",
"tutorials-bots-and-games-decisions": "戦略的判断",
"tutorials-bots-and-games-attacking": "自動化された反応",
"tutorials-bots-and-games-bringing-together": "スキルの統合",
"tutorials-bots-and-games-arena-mechanics": "アリーナのメカニクス",
"tutorials-bots-and-games-build-game": "アリーナの拡張",
"references": "参照",
"references-lua": "Lua",
"references-wasm": "Web Assembly",
"references-ao": "ao モジュール",
"references-handlers": "ハンドラー",
"references-token": "トークン",
"references-data": "Loading Data",
"references-cron": "CRON メッセージ",
"references-editor-setup": "ao エディタ設定",
"references-community": "コミュニティ"
}
Binary file added src/ja/concepts/CU-diagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/ja/concepts/MU-diagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/ja/concepts/SU-diagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/ja/concepts/ao-pictograph-c94ebf2d.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/ja/concepts/handler-diagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/ja/concepts/holographic-state.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TODO
51 changes: 51 additions & 0 deletions src/ja/concepts/how-it-works.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<!-- # How ao messaging works -->

# aoメッセージングの仕組み

<!-- Before we dive in to ao, I want to share with you a little information about unix. Unix is a powerful operating system, but in its design it is focused on two Principal "Types". Files and Programs. A File is data and a program is logic, when you combine the two you get information. -->

aoに深く入り込む前に、少しUnixについてお話ししたいと思います。Unixは強力なオペレーティングシステムですが、その設計では2つの主要な「タイプ」に焦点を当てています。ファイルとプログラムです。ファイルはデータで、プログラムはロジックです。この2つを組み合わせると、情報が得られます。

<!-- `Input.file | TransformProgram | Output.file` -->

`Input.file | TransformProgram | Output.file`

<!-- You may have done something like this on the command line without knowing what you are doing. Being able to connect files to programs and return files which can then be passed to other programs creates a complex system composed of simple applications. This is a very powerful idea. -->

コマンドラインでこれに似たことを、知らず知らずのうちにやっているかもしれません。ファイルをプログラムに接続し、プログラムの結果として返されたファイルをさらに別のプログラムに渡すことができるようになると、シンプルなアプリケーションで構成された複雑なシステムを作成できます。これは非常に強力なアイデアです。

<!-- Now, lets talk about `ao` the hyper parallel computer, and lets change the idea of a File to the `ao` concept of a Message and the idea of a Program to the `ao` concept of a Process. The `ao` computer takes messages and sends them to Processes in which those Processes can output messages that can be sent to other Processes. The result is a complex system built on simple modular logic containers. -->

さて、aoというハイパーパラレルコンピュータについて話しましょう。そして、ファイルという概念をaoの「メッセージ」の概念に、プログラムという概念をaoの「プロセス」の概念に置き換えてみます。aoコンピュータはメッセージを受け取り、それをプロセスに送信します。プロセスはメッセージを出力し、それが他のプロセスに送信されます。その結果、シンプルなモジュラーなロジックコンテナに基づいた複雑なシステムが構築されます。

`MessageA | Process | MessageB`

![ao-messages](https://g8way.io/eAoqMqhwQ5vnpH_NJ6H2PiGgrcGDprtDIUH9Re2xcic)

<!-- Here is a description of the process as outlined in the flowchart: -->

以下は、フローチャートに記載されたプロセスの説明です:

1. メッセージはao Connectから開始されます。このメッセージは、`mu` サービスにPOSTリクエストを使用して送信されます。リクエストの本文には、‘ao`というプロトコルに従ったデータが含まれており、‘Message’というタイプです。

2. `mu`サービスはPOSTリクエストを処理し、メッセージを`su`サービスに転送します。これも同様に、同じデータプロトコルとメッセージタイプを使用してPOSTリクエストが行われます。

3. `su`サービスは、その割り当てとメッセージをArweaveに保存します。

4. メッセージIDに基づいて結果を取得するために、cuサービスにGETリクエストが行われます。`cu`はプロセス上のメッセージを評価し、個別のメッセージ識別子に基づいて結果を返すことができるサービスです。

5. 割り当てとメッセージを取得するために、`su`サービスにGETリクエストが行われます。このリクエストは、プロセスIDからのメッセージを、開始時間(最後の評価ポイントから)から現在のメッセージIDまでの範囲で探します。

6. 最終ステップは、アウトボックスのメッセージをプッシュすることです。メッセージとResultオブジェクト内で生成された内容を確認します。このチェックの結果に基づいて、ステップ2、3、および4が関連するメッセージや生成に対して繰り返される場合があります。

<!-- 1. A message is initiated from an ao Connect. This message is sent to the `mu` service using a POST request. The body of the request contains data following a protocol, labeled 'ao', and is of the type 'Message'.
2. The `mu` service processes the POST request and forwards the message to the `su` service. This is also done using a POST request with the same data protocol and message type.
3. The `su` service stores the assignment and message on Arweave.
4. A GET request is made to the `cu` service to retrieve result based on a message ID. The `cu` is a service that evaluates messages on processes and can return result based on an individual message identifier.
5. A GET request is made to the `su` service to retrieve the assignment and message. This request is looking for messages from a process ID, within a range of time from a start (from the last evaluation point) to (to the current messageId).
6. The final step is to push any outbox Messages. It involves reviewing the messages and spawns in the Result Object. Based on the outcome of this check, the steps 2, 3, and 4 may be repeated for each relevant message or spawn. -->
26 changes: 26 additions & 0 deletions src/ja/concepts/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
prev:
text: "最初のPOSTリクエスト"
link: "../guides/0rbit/post-request"
next:
text: "仕様"
link: "./specs"
---

# コンセプト

aoには多くのコンセプトが組み込まれていますが、コアとなるコンセプトは非常にシンプルな原則に基づいています:

- 2つのコアタイプ: メッセージとプロセス
- 共有状態なし、ホログラフィック状態のみ
- 分散型コンピュータ(グリッド)

以下は、aoシステムをその特徴的な部分に分解したコンセプト文書のセットです。

- [仕様](specs)
- [プロセス](processes)
- [メッセージ](messages)
- [ユニット](units)
- [メッセージングの仕組み](how-it-works)

[[toc]]
Loading

0 comments on commit 0491b37

Please sign in to comment.