diff --git a/CHANGELOG.md b/CHANGELOG.md index 1dfaddaf3b..dd8f2905b0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,19 @@ All notable changes to this project are documented in this file by a CI job that runs on every NPM release. The file follows the [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) format. +## [v3.0.14] (2025-10-21) + +### Various + +- [i18n] Add Japanese translations to JavaScript API. ([#2800](https://github.com/WordPress/wordpress-playground/pull/2800)) + +### Contributors + +The following contributors merged PRs in this release: + +@shimotmk + + ## [v3.0.13] (2025-10-20) ### Enhancements diff --git a/lerna.json b/lerna.json index 0365806e2e..f274103d67 100644 --- a/lerna.json +++ b/lerna.json @@ -1,6 +1,6 @@ { "$schema": "node_modules/lerna/schemas/lerna-schema.json", - "version": "3.0.13", + "version": "3.0.14", "useWorkspaces": true, "useNx": true } diff --git a/package-lock.json b/package-lock.json index c273b94943..caa7bbf332 100644 --- a/package-lock.json +++ b/package-lock.json @@ -52749,7 +52749,7 @@ }, "packages/php-wasm/cli": { "name": "@php-wasm/cli", - "version": "3.0.13", + "version": "3.0.14", "license": "GPL-2.0-or-later", "bin": { "php-wasm-cli": "php-wasm.js" @@ -52766,7 +52766,7 @@ }, "packages/php-wasm/fs-journal": { "name": "@php-wasm/fs-journal", - "version": "3.0.13", + "version": "3.0.14", "license": "GPL-2.0-or-later", "engines": { "node": ">=20.18.3", @@ -52775,7 +52775,7 @@ }, "packages/php-wasm/logger": { "name": "@php-wasm/logger", - "version": "3.0.13", + "version": "3.0.14", "license": "GPL-2.0-or-later", "engines": { "node": ">=20.18.3", @@ -52784,7 +52784,7 @@ }, "packages/php-wasm/node": { "name": "@php-wasm/node", - "version": "3.0.13", + "version": "3.0.14", "license": "GPL-2.0-or-later", "engines": { "node": ">=20.18.3", @@ -52793,12 +52793,12 @@ }, "packages/php-wasm/node-polyfills": { "name": "@php-wasm/node-polyfills", - "version": "3.0.13", + "version": "3.0.14", "license": "GPL-2.0-or-later" }, "packages/php-wasm/progress": { "name": "@php-wasm/progress", - "version": "3.0.13", + "version": "3.0.14", "license": "GPL-2.0-or-later", "engines": { "node": ">=20.18.3", @@ -52807,7 +52807,7 @@ }, "packages/php-wasm/scopes": { "name": "@php-wasm/scopes", - "version": "3.0.13", + "version": "3.0.14", "license": "GPL-2.0-or-later", "engines": { "node": ">=20.18.3", @@ -52816,12 +52816,12 @@ }, "packages/php-wasm/stream-compression": { "name": "@php-wasm/stream-compression", - "version": "3.0.13", + "version": "3.0.14", "license": "GPL-2.0-or-later" }, "packages/php-wasm/universal": { "name": "@php-wasm/universal", - "version": "3.0.13", + "version": "3.0.14", "license": "GPL-2.0-or-later", "engines": { "node": ">=20.18.3", @@ -52830,7 +52830,7 @@ }, "packages/php-wasm/util": { "name": "@php-wasm/util", - "version": "3.0.13", + "version": "3.0.14", "engines": { "node": ">=20.18.3", "npm": ">=10.1.0" @@ -52838,7 +52838,7 @@ }, "packages/php-wasm/web": { "name": "@php-wasm/web", - "version": "3.0.13", + "version": "3.0.14", "license": "GPL-2.0-or-later", "engines": { "node": ">=20.18.3", @@ -52847,7 +52847,7 @@ }, "packages/php-wasm/web-service-worker": { "name": "@php-wasm/web-service-worker", - "version": "3.0.13", + "version": "3.0.14", "license": "GPL-2.0-or-later", "engines": { "node": ">=20.18.3", @@ -52856,7 +52856,7 @@ }, "packages/php-wasm/xdebug-bridge": { "name": "@php-wasm/xdebug-bridge", - "version": "3.0.13", + "version": "3.0.14", "license": "GPL-2.0-or-later", "bin": { "xdebug-bridge": "xdebug-bridge.js" @@ -52868,7 +52868,7 @@ }, "packages/playground/blueprints": { "name": "@wp-playground/blueprints", - "version": "3.0.13", + "version": "3.0.14", "engines": { "node": ">=20.18.3", "npm": ">=10.1.0" @@ -52876,7 +52876,7 @@ }, "packages/playground/cli": { "name": "@wp-playground/cli", - "version": "3.0.13", + "version": "3.0.14", "license": "GPL-2.0-or-later", "bin": { "wp-playground-cli": "wp-playground.js" @@ -52884,7 +52884,7 @@ }, "packages/playground/client": { "name": "@wp-playground/client", - "version": "3.0.13", + "version": "3.0.14", "license": "GPL-2.0-or-later", "engines": { "node": ">=20.18.3", @@ -52893,7 +52893,7 @@ }, "packages/playground/common": { "name": "@wp-playground/common", - "version": "3.0.13", + "version": "3.0.14", "license": "GPL-2.0-or-later", "engines": { "node": ">=20.18.3", @@ -52902,7 +52902,7 @@ }, "packages/playground/components": { "name": "@wp-playground/components", - "version": "3.0.13", + "version": "3.0.14", "engines": { "node": ">=20.18.3", "npm": ">=10.1.0" @@ -52914,12 +52914,12 @@ }, "packages/playground/remote": { "name": "@wp-playground/remote", - "version": "3.0.13", + "version": "3.0.14", "license": "GPL-2.0-or-later" }, "packages/playground/storage": { "name": "@wp-playground/storage", - "version": "3.0.13", + "version": "3.0.14", "license": "GPL-2.0-or-later", "dependencies": { "async-lock": "^1.4.1", @@ -52961,7 +52961,7 @@ }, "packages/playground/wordpress": { "name": "@wp-playground/wordpress", - "version": "3.0.13", + "version": "3.0.14", "license": "GPL-2.0-or-later", "engines": { "node": ">=20.18.3", diff --git a/packages/docs/site/docs/developers/05-local-development/04-wp-playground-cli.md b/packages/docs/site/docs/developers/05-local-development/04-wp-playground-cli.md index ff6e8513f7..f516340122 100644 --- a/packages/docs/site/docs/developers/05-local-development/04-wp-playground-cli.md +++ b/packages/docs/site/docs/developers/05-local-development/04-wp-playground-cli.md @@ -110,7 +110,7 @@ The `server` command supports the following optional arguments: - `--blueprint=`: The path to a JSON Blueprint file to execute. - `--blueprint-may-read-adjacent-files`: Consent flag: Allow "bundled" resources in a local blueprint to read files in the same directory as the blueprint file. - `--login`: Automatically log the user in as an administrator. -- `--skip-wordpress-setup`: Do not download or install WordPress. Useful if you are mounting a full WordPress directory. +- `--wordpress-install-mode `: Control how Playground prepares WordPress before booting. Defaults to `download-and-install`. Other options: `install-from-existing-files` (install using files you've mounted), `install-from-existing-files-if-needed` (skip setup when an existing site is detected), and `do-not-attempt-installing` (never download or install WordPress). - `--skip-sqlite-setup`: Do not set up the SQLite database integration. - `--verbosity`: Output logs and progress messages. Choices are "quiet", "normal" or "debug". Defaults to "normal". - `--debug`: Print the PHP error log if an error occurs during boot. diff --git a/packages/docs/site/docs/main/changelog.md b/packages/docs/site/docs/main/changelog.md index 5ccce681d9..bc57200815 100644 --- a/packages/docs/site/docs/main/changelog.md +++ b/packages/docs/site/docs/main/changelog.md @@ -9,6 +9,19 @@ All notable changes to this project are documented in this file by a CI job that runs on every NPM release. The file follows the [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) format. +## [v3.0.14] (2025-10-21) + +### Various + +- [i18n] Add Japanese translations to JavaScript API. ([#2800](https://github.com/WordPress/wordpress-playground/pull/2800)) + +### Contributors + +The following contributors merged PRs in this release: + +@shimotmk + + ## [v3.0.13] (2025-10-20) ### Enhancements diff --git a/packages/docs/site/i18n/ja/docusaurus-plugin-content-docs/current/developers/05-local-development/04-wp-playground-cli.md b/packages/docs/site/i18n/ja/docusaurus-plugin-content-docs/current/developers/05-local-development/04-wp-playground-cli.md index 1097d268c7..2def25bb2a 100644 --- a/packages/docs/site/i18n/ja/docusaurus-plugin-content-docs/current/developers/05-local-development/04-wp-playground-cli.md +++ b/packages/docs/site/i18n/ja/docusaurus-plugin-content-docs/current/developers/05-local-development/04-wp-playground-cli.md @@ -212,7 +212,7 @@ The `server` command supports the following optional arguments: - `--blueprint=`: 実行する JSON ブループリント ファイルへのパス。 - `--blueprint-may-read-adjacent-files`: 同意フラグ: ローカル ブループリント内の「バンドル」リソースが、ブループリント ファイルと同じディレクトリにあるファイルを読み取ることを許可します。 - `--login`: ユーザーを管理者として自動的にログインします。 -- `--skip-wordpress-setup`: WordPress をダウンロードまたはインストールしません。WordPress ディレクトリ全体をマウントする場合に便利です。 +- `--wordpress-install-mode `: WordPress の準備方法を制御します。既定値は `download-and-install` です。他のオプション: `install-from-existing-files` (マウント済みのファイルを使ってインストール)、`install-from-existing-files-if-needed` (既存サイトを検出した場合はセットアップを省略) 、`do-not-attempt-installing` (WordPress をダウンロードもインストールもしません)。 - `--skip-sqlite-setup`: SQLite データベース統合をセットアップしません。 - `--verbosity`: ログと進捗メッセージを出力します。選択肢は「quiet」、「normal」、「debug」です。デフォルトは「normal」です。 - `--debug`: 起動中にエラーが発生した場合、PHP のエラーログを出力します。 @@ -229,7 +229,7 @@ The `server` command supports the following optional arguments: - `--blueprint=`: The path to a JSON Blueprint file to execute. - `--blueprint-may-read-adjacent-files`: Consent flag: Allow "bundled" resources in a local blueprint to read files in the same directory as the blueprint file. - `--login`: Automatically log the user in as an administrator. -- `--skip-wordpress-setup`: Do not download or install WordPress. Useful if you are mounting a full WordPress directory. +- `--wordpress-install-mode `: Control how Playground prepares WordPress before booting. Defaults to `download-and-install`. Other options: `install-from-existing-files` (install using files you've mounted), `install-from-existing-files-if-needed` (skip setup when an existing site is detected), and `do-not-attempt-installing` (never download or install WordPress). - `--skip-sqlite-setup`: Do not set up the SQLite database integration. - `--verbosity`: Output logs and progress messages. Choices are "quiet", "normal" or "debug". Defaults to "normal". - `--debug`: Print the PHP error log if an error occurs during boot. diff --git a/packages/docs/site/i18n/ja/docusaurus-plugin-content-docs/current/developers/06-apis/javascript-api/01-index.md b/packages/docs/site/i18n/ja/docusaurus-plugin-content-docs/current/developers/06-apis/javascript-api/01-index.md new file mode 100644 index 0000000000..362b5b7d25 --- /dev/null +++ b/packages/docs/site/i18n/ja/docusaurus-plugin-content-docs/current/developers/06-apis/javascript-api/01-index.md @@ -0,0 +1,120 @@ +--- +slug: /developers/apis/javascript-api +--- + +# JavaScript API + +WordPress Playground には、WordPress を完全に制御できる JavaScript API クライアントが付属しています。 + + + +:::info ここでの API は「REST API」を意味するものではありません + +WordPress Playground はブラウザベースのアプリケーションです。 +ここでの API とは、JavaScript 内で呼び出せる関数のセットを指します。 +これはネットワークベースの REST API ではありません。 + +::: + + + +## クイックスタート + + + +JavaScript API を使用するには、次のものが必要です。 + + + +- `