From c3aac18e1b7a5ab0b9ab99e4d5d534e7d8a355a5 Mon Sep 17 00:00:00 2001 From: Constrat <56174894+Constrat@users.noreply.github.com> Date: Mon, 20 Oct 2025 21:30:13 +0200 Subject: [PATCH] style: run prettier as there's missing stuff apparently --- .github/workflows/release-ota.yml | 2 +- .github/workflows/res-update-game.yml | 2 +- README.md | 4 +- docs/.vuepress/config.ts | 2 +- docs/zh-cn/develop/linux-tutorial.md | 3 +- docs/zh-cn/develop/vsc-ext-tutorial.md | 9 +- docs/zh-cn/manual/cli/install.md | 48 +++-- docs/zh-cn/manual/newbie.md | 3 +- interface.json | 72 +++---- resource/roguelike/JieGarden/coppers.json | 2 +- src/Java/Readme.md | 250 +++++++++++----------- src/Rust/Readme.md | 136 ++++++------ tools/AutoLocalization/README.md | 36 ++-- 13 files changed, 286 insertions(+), 283 deletions(-) diff --git a/.github/workflows/release-ota.yml b/.github/workflows/release-ota.yml index 25e46f3ae1..9d487f3cd9 100644 --- a/.github/workflows/release-ota.yml +++ b/.github/workflows/release-ota.yml @@ -197,7 +197,7 @@ jobs: title: "Failed make release OTA for macos" body: | ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} - + release: needs: - make-ota diff --git a/.github/workflows/res-update-game.yml b/.github/workflows/res-update-game.yml index 36d3f57c58..ce7ab90ac4 100644 --- a/.github/workflows/res-update-game.yml +++ b/.github/workflows/res-update-game.yml @@ -360,4 +360,4 @@ jobs: body: | ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} - @MistEO @ABA2396 @Constrat \ No newline at end of file + @MistEO @ABA2396 @Constrat diff --git a/README.md b/README.md index 7f918cf603..2c5d2fda1c 100644 --- a/README.md +++ b/README.md @@ -151,11 +151,11 @@ MAA 以中文(简体)为第一语言,翻译词条均以中文(简体) - 空白环境,裸 Linux 容器(默认) [![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg?color=green)](https://codespaces.new/MaaAssistantArknights/MaaAssistantArknights?devcontainer_path=.devcontainer%2Fdevcontainer.json) - + - 轻量环境,适合文档站前端开发 [![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg?color=green)](https://codespaces.new/MaaAssistantArknights/MaaAssistantArknights?devcontainer_path=.devcontainer%2F0%2Fdevcontainer.json) - + - 全量环境,适合 MAA Core 相关开发 [![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg?color=green)](https://codespaces.new/MaaAssistantArknights/MaaAssistantArknights?devcontainer_path=.devcontainer%2F1%2Fdevcontainer.json) diff --git a/docs/.vuepress/config.ts b/docs/.vuepress/config.ts index 661ec79342..b7d59e59dd 100644 --- a/docs/.vuepress/config.ts +++ b/docs/.vuepress/config.ts @@ -73,7 +73,7 @@ export default defineUserConfig({ }, markdown: { - annotation: true, + annotation: true, image: { lazyload: true, mark: true, diff --git a/docs/zh-cn/develop/linux-tutorial.md b/docs/zh-cn/develop/linux-tutorial.md index 6ba41e0074..84a09cd56d 100644 --- a/docs/zh-cn/develop/linux-tutorial.md +++ b/docs/zh-cn/develop/linux-tutorial.md @@ -24,11 +24,13 @@ Mac 可以使用 `tools/build_macos_universal.zsh` 脚本进行编译 1. 下载编译所需的依赖 ::: code-tabs @tab:active Ubuntu/Debian + ```bash :no-line-numbers sudo apt install cmake ``` @tab Arch + ```bash :no-line-numbers sudo pacman -S --needed cmake ``` @@ -80,7 +82,6 @@ Mac 可以使用 `tools/build_macos_universal.zsh` 脚本进行编译 4. 结束,你应该能在目录下看到构建文件了 - :::: ## 集成文档 diff --git a/docs/zh-cn/develop/vsc-ext-tutorial.md b/docs/zh-cn/develop/vsc-ext-tutorial.md index e71a6a6014..51ce64bc8a 100644 --- a/docs/zh-cn/develop/vsc-ext-tutorial.md +++ b/docs/zh-cn/develop/vsc-ext-tutorial.md @@ -6,8 +6,9 @@ icon: iconoir:code-brackets # 专用 VSCode 插件教程 该插件针对 MaaAssistantArknights/MaaFramework 提供了一系列方便开发的能力,包括但不限于以下功能: -+ tasks.json 支持,包含 `template 预览`,`next 跳转`,`任务引用` 等等 -+ 截取/裁剪图片 + +- tasks.json 支持,包含 `template 预览`,`next 跳转`,`任务引用` 等等 +- 截取/裁剪图片 具体内容可以前往 [插件商店](https://marketplace.visualstudio.com/items?itemName=nekosu.maa-support) 或是 [仓库](https://github.com/neko-para/maa-support-extension) 查看 @@ -18,7 +19,7 @@ icon: iconoir:code-brackets ::: tip 首次使用时, 插件会自动下载预设版本的资源 搜索命令 `Maa: 选择下载源`, 可切换下载源 (npm / cnpm) -::: +::: ## 功能 @@ -103,7 +104,7 @@ icon: iconoir:code-brackets [+MaaSupport]: 插件版本 -点击可聚焦控制面板 +点击可聚焦控制面板 #### MaaFramework [+MaaFramework] diff --git a/docs/zh-cn/manual/cli/install.md b/docs/zh-cn/manual/cli/install.md index e83761ad25..f91663f847 100644 --- a/docs/zh-cn/manual/cli/install.md +++ b/docs/zh-cn/manual/cli/install.md @@ -18,11 +18,13 @@ Homebrew 用户可以通过非官方的 [tap](https://github.com/MaaAssistantArk ::: code-tabs @tab:active 稳定版 + ```bash :no-line-numbers brew install MaaAssistantArknights/tap/maa-cli ``` @tab 不稳定版/预发行版 + ```bash :no-line-numbers brew install MaaAssistantArknights/tap/maa-cli-beta ``` @@ -33,36 +35,40 @@ brew install MaaAssistantArknights/tap/maa-cli-beta 我们目前为 Arch 和 Nix 用户提供预编译基于包管理器的分发支持 -#### Arch Linux +#### Arch Linux 可以安装 [AUR 包](https://aur.archlinux.org/packages/maa-cli/): ::: code-tabs @tab:active paru + ```bash :no-line-numbers paru -S maa-cli ``` @tab yay + ```bash :no-line-numbers yay -S maa-cli ``` ::: -#### ❄️ Nix +#### ❄️ Nix 用户可以直接运行: ::: code-tabs @tab:active 稳定版 + ```bash :no-line-numbers nix run nixpkgs#maa-cli ``` @tab 每夜构建 + ```bash :no-line-numbers nix run github:Cryolitia/nur-packages#maa-cli-nightly ``` @@ -90,13 +96,15 @@ nix run github:Cryolitia/nur-packages#maa-cli-nightly @tab Linux 请选择你的架构 -+ [x64/x86_64/amd64](https://github.com/MaaAssistantArknights/maa-cli/releases/latest/download/maa_cli-x86_64-unknown-linux-gnu.tar.gz) -+ [aarch64/arm64)](https://github.com/MaaAssistantArknights/maa-cli/releases/latest/download/maa_cli-aarch64-unknown-linux-gnu.tar.gz) + +- [x64/x86_64/amd64](https://github.com/MaaAssistantArknights/maa-cli/releases/latest/download/maa_cli-x86_64-unknown-linux-gnu.tar.gz) +- [aarch64/arm64)](https://github.com/MaaAssistantArknights/maa-cli/releases/latest/download/maa_cli-aarch64-unknown-linux-gnu.tar.gz) @tab Windows 请选择你的架构 -+ [x64/x86_64/amd64](https://github.com/MaaAssistantArknights/maa-cli/releases/latest/download/maa_cli-x86_64-pc-windows-msvc.zip) -+ [aarch64/arm64)](https://github.com/MaaAssistantArknights/maa-cli/releases/latest/download/maa_cli-aarch64-pc-windows-msvc.zip) + +- [x64/x86_64/amd64](https://github.com/MaaAssistantArknights/maa-cli/releases/latest/download/maa_cli-x86_64-pc-windows-msvc.zip) +- [aarch64/arm64)](https://github.com/MaaAssistantArknights/maa-cli/releases/latest/download/maa_cli-aarch64-pc-windows-msvc.zip) ::: @@ -109,11 +117,13 @@ Rust 开发者可以通过 `cargo` 自行编译安装 maa-cli: ::: code-tabs @tab:active 稳定版本 + ```bash :no-line-numbers cargo install --git https://github.com/MaaAssistantArknights/maa-cli.git --bin maa --tag stable --locked ``` @tab 开发版本 + ```bash :no-line-numbers cargo install --git https://github.com/MaaAssistantArknights/maa-cli.git --bin maa --locked ``` @@ -157,24 +167,28 @@ winget install "Microsoft.VCRedist.2015+.x64" --override "/repair /passive /nore @tab Homebrew 你可以直接通过 Homebrew 安装 maa-core + ```bash :no-line-numbers brew install MaaAssistantArknights/tap/maa-core ``` @tab Arch - 你可以通过 [AUR](https://aur.archlinux.org/packages/maa-assistant-arknights/) 安装 maa-core - ::: code-tabs +你可以通过 [AUR](https://aur.archlinux.org/packages/maa-assistant-arknights/) 安装 maa-core +::: code-tabs - @tab:active paru - ```bash :no-line-numbers - paru -S maa-assistant-arknights - ``` +@tab:active paru - @tab yay - ```bash :no-line-numbers - yay -S maa-assistant-arknights - ``` - ::: +```bash :no-line-numbers +paru -S maa-assistant-arknights +``` + +@tab yay + +```bash :no-line-numbers +yay -S maa-assistant-arknights +``` + +::: @tab Nix Nix 上的 maa-cli 强制依赖 MaaCore,因此 Nix 用户无需,也不应该手动安装 MaaCore diff --git a/docs/zh-cn/manual/newbie.md b/docs/zh-cn/manual/newbie.md index 9e613cde3a..420cb8e2fc 100644 --- a/docs/zh-cn/manual/newbie.md +++ b/docs/zh-cn/manual/newbie.md @@ -10,6 +10,7 @@ icon: ri:guide-fill ## 前置准备 :::: steps + 1. 确认系统版本 MAA 在 Windows 下仅支持 10 和 11,旧版 Windows 请参阅[常见问题](./faq.md#系统问题)中的系统问题部分。 @@ -37,7 +38,7 @@ icon: ri:guide-fill 6. 正确设置模拟器分辨率 模拟器分辨率应为横屏的 `1280x720` 或 `1920x1080`;对于美服(YosterEN)玩家,必须为 `1920x1080`。 -:::: + :::: ## 初始配置 diff --git a/interface.json b/interface.json index 492b7f0171..3c87f3813e 100644 --- a/interface.json +++ b/interface.json @@ -1,45 +1,31 @@ { - "name": "MaaAssistantArknights", - "controller": [ - { - "name": "Adb", - "type": "Adb" - } - ], - "resource": [ - { - "name": "官服 | Official", - "path": [ - "{PROJECT_DIR}/resource" - ] - }, - { - "name": "日服 | YoStarJP", - "path": [ - "{PROJECT_DIR}/resource", - "{PROJECT_DIR}/resource/global/YoStarJP/resource" - ] - }, - { - "name": "韩服 | YoStarKR", - "path": [ - "{PROJECT_DIR}/resource", - "{PROJECT_DIR}/resource/global/YoStarKR/resource" - ] - }, - { - "name": "美服 | YoStarEN", - "path": [ - "{PROJECT_DIR}/resource", - "{PROJECT_DIR}/resource/global/YoStarEN/resource" - ] - }, - { - "name": "台服 | txwy", - "path": [ - "{PROJECT_DIR}/resource", - "{PROJECT_DIR}/resource/global/txwy/resource" - ] - } - ] + "name": "MaaAssistantArknights", + "controller": [ + { + "name": "Adb", + "type": "Adb" + } + ], + "resource": [ + { + "name": "官服 | Official", + "path": ["{PROJECT_DIR}/resource"] + }, + { + "name": "日服 | YoStarJP", + "path": ["{PROJECT_DIR}/resource", "{PROJECT_DIR}/resource/global/YoStarJP/resource"] + }, + { + "name": "韩服 | YoStarKR", + "path": ["{PROJECT_DIR}/resource", "{PROJECT_DIR}/resource/global/YoStarKR/resource"] + }, + { + "name": "美服 | YoStarEN", + "path": ["{PROJECT_DIR}/resource", "{PROJECT_DIR}/resource/global/YoStarEN/resource"] + }, + { + "name": "台服 | txwy", + "path": ["{PROJECT_DIR}/resource", "{PROJECT_DIR}/resource/global/txwy/resource"] + } + ] } diff --git a/resource/roguelike/JieGarden/coppers.json b/resource/roguelike/JieGarden/coppers.json index d8269af32d..1fabc0cc10 100644 --- a/resource/roguelike/JieGarden/coppers.json +++ b/resource/roguelike/JieGarden/coppers.json @@ -389,4 +389,4 @@ "rarity": "SUPER_RARE" } ] -} \ No newline at end of file +} diff --git a/src/Java/Readme.md b/src/Java/Readme.md index d5e6db3f9c..847f3209b8 100644 --- a/src/Java/Readme.md +++ b/src/Java/Readme.md @@ -31,15 +31,15 @@ 1. 把他丢进 Maa 文件夹下,形成如下文件结构.备注: 启动脚本[Maa-HTTP-Server-startup.bat](Maa-HTTP-Server-startup.bat). - ```text - MaaCoreArknights_v3.9.0-beta.8 - │ MAA.exe - │ MaaCore.dll - │ ... - └───Java-HTTP - │ Maa-HTTP-0.0.1.jar - │ Maa-HTTP-Server-startup.bat - ``` + ```text + MaaCoreArknights_v3.9.0-beta.8 + │ MAA.exe + │ MaaCore.dll + │ ... + └───Java-HTTP + │ Maa-HTTP-0.0.1.jar + │ Maa-HTTP-Server-startup.bat + ``` 2. 双击Maa-HTTP-Server-startup.bat启动. 3. 默认端口号8848钛金端口,如需修改,请修改 Maa-HTTP-Server-startup.bat 中的-port=8848 . @@ -86,11 +86,11 @@ ```json { - "data": { - "version": "v3.9.0-beta" - }, - "code": 0, - "message": "success" + "data": { + "version": "v3.9.0-beta" + }, + "code": 0, + "message": "success" } ``` @@ -108,9 +108,9 @@ ```json { - "adbPath": "C:\\MaaCoreArknights3\\platform-tools\\adb.exe", - "host": "127.0.0.1:62001", - "detailJson": "" + "adbPath": "C:\\MaaCoreArknights3\\platform-tools\\adb.exe", + "host": "127.0.0.1:62001", + "detailJson": "" } ``` @@ -126,12 +126,12 @@ ```json { - "data": { - "id": "46b9d5cd60382f100b336b17d6817f8eda255f73", - "result": true - }, - "code": 0, - "message": "success" + "data": { + "id": "46b9d5cd60382f100b336b17d6817f8eda255f73", + "result": true + }, + "code": 0, + "message": "success" } ``` @@ -158,11 +158,11 @@ ```json { - "id": "46b9d5cd60382f100b336b17d6817f8eda255f73", - "type": "Fight", - "params": { - "stage": "LastBattle" - } + "id": "46b9d5cd60382f100b336b17d6817f8eda255f73", + "type": "Fight", + "params": { + "stage": "LastBattle" + } } ``` @@ -178,12 +178,12 @@ ```json { - "data": { - "id": "46b9d5cd60382f100b336b17d6817f8eda255f73", - "taskId": 0 - }, - "code": 0, - "message": "success" + "data": { + "id": "46b9d5cd60382f100b336b17d6817f8eda255f73", + "taskId": 0 + }, + "code": 0, + "message": "success" } ``` @@ -208,12 +208,12 @@ ```json { - "id": "46b9d5cd60382f100b336b17d6817f8eda255f73", - "type": "Fight", - "taskId": 0, - "params": { - "stage": "LastBattle" - } + "id": "46b9d5cd60382f100b336b17d6817f8eda255f73", + "type": "Fight", + "taskId": 0, + "params": { + "stage": "LastBattle" + } } ``` @@ -230,12 +230,12 @@ ```json { - "data": { - "id": "46b9d5cd60382f100b336b17d6817f8eda255f73", - "result": false - }, - "code": 0, - "message": "success" + "data": { + "id": "46b9d5cd60382f100b336b17d6817f8eda255f73", + "result": false + }, + "code": 0, + "message": "success" } ``` @@ -260,7 +260,7 @@ ```json { - "id": "ccd76e0c367511158ca774ff951a22e8bb62f5d3" + "id": "ccd76e0c367511158ca774ff951a22e8bb62f5d3" } ``` @@ -274,12 +274,12 @@ ```json { - "data": { - "id": "ccd76e0c367511158ca774ff951a22e8bb62f5d3", - "result": true - }, - "code": 0, - "message": "success" + "data": { + "id": "ccd76e0c367511158ca774ff951a22e8bb62f5d3", + "result": true + }, + "code": 0, + "message": "success" } ``` @@ -304,7 +304,7 @@ ```json { - "id": "ccd76e0c367511158ca774ff951a22e8bb62f5d3" + "id": "ccd76e0c367511158ca774ff951a22e8bb62f5d3" } ``` @@ -318,12 +318,12 @@ ```json { - "data": { - "id": "ccd76e0c367511158ca774ff951a22e8bb62f5d3", - "result": true - }, - "code": 0, - "message": "success" + "data": { + "id": "ccd76e0c367511158ca774ff951a22e8bb62f5d3", + "result": true + }, + "code": 0, + "message": "success" } ``` @@ -348,7 +348,7 @@ ```json { - "id": "ccd76e0c367511158ca774ff951a22e8bb62f5d3" + "id": "ccd76e0c367511158ca774ff951a22e8bb62f5d3" } ``` @@ -362,12 +362,12 @@ ```json { - "data": { - "id": "ccd76e0c367511158ca774ff951a22e8bb62f5d3", - "result": true - }, - "code": 0, - "message": "success" + "data": { + "id": "ccd76e0c367511158ca774ff951a22e8bb62f5d3", + "result": true + }, + "code": 0, + "message": "success" } ``` @@ -394,19 +394,19 @@ ```json { - "data": { - "list": [ - { - "id": "ccd76e0c367511158ca774ff951a22e8bb62f5d3", - "host": "127.0.0.1:62026", - "adbPath": "C:\\Users\\atmzx\\Desktop\\MaaCoreArknights3\\platform-tools\\adb.exe", - "uuid": "", - "status": 0 - } - ] - }, - "code": 0, - "message": "success" + "data": { + "list": [ + { + "id": "ccd76e0c367511158ca774ff951a22e8bb62f5d3", + "host": "127.0.0.1:62026", + "adbPath": "C:\\Users\\atmzx\\Desktop\\MaaCoreArknights3\\platform-tools\\adb.exe", + "uuid": "", + "status": 0 + } + ] + }, + "code": 0, + "message": "success" } ``` @@ -468,9 +468,9 @@ ```json { - "command": "getVersion", - "msgId": 114514, - "data": {} + "command": "getVersion", + "msgId": 114514, + "data": {} } ``` @@ -484,13 +484,13 @@ ```json { - "data": { - "version": "v3.9.0-beta" - }, - "command": "getVersion", - "msgId": 114514, - "code": 0, - "message": "success" + "data": { + "version": "v3.9.0-beta" + }, + "command": "getVersion", + "msgId": 114514, + "code": 0, + "message": "success" } ``` @@ -506,12 +506,12 @@ ```json { - "command": "connect", - "msgId": 114514, - "data": { - "adbPath": "C:\\Users\\atmzx\\Desktop\\MaaCoreArknights3\\platform-tools\\adb.exe", - "host": "127.0.0.1:62001" - } + "command": "connect", + "msgId": 114514, + "data": { + "adbPath": "C:\\Users\\atmzx\\Desktop\\MaaCoreArknights3\\platform-tools\\adb.exe", + "host": "127.0.0.1:62001" + } } ``` @@ -525,14 +525,14 @@ ```json { - "data": { - "id": "46b9d5cd60382f100b336b17d6817f8eda255f73", - "result": true - }, - "command": "connect", - "msgId": 114514, - "code": 0, - "message": "success" + "data": { + "id": "46b9d5cd60382f100b336b17d6817f8eda255f73", + "result": true + }, + "command": "connect", + "msgId": 114514, + "code": 0, + "message": "success" } ``` @@ -552,27 +552,27 @@ appendTask setTaskParams start stop等接口不再描述,均可遵循以上规 ```json { - "data": { - "id": "46b9d5cd60382f100b336b17d6817f8eda255f73", - "logId": 1, - "msg": 2, - "details": { - "uuid": "", - "details": { - "adb": "C:\\MaaCoreArknights3\\platform-tools\\adb.exe", - "address": "127.0.0.1:62001", - "config": "General", - "width": 1280, - "height": 720 - }, - "what": "ResolutionGot", - "why": "" - } - }, - "command": "callBack", - "msgId": 0, - "code": 0, - "message": "success" + "data": { + "id": "46b9d5cd60382f100b336b17d6817f8eda255f73", + "logId": 1, + "msg": 2, + "details": { + "uuid": "", + "details": { + "adb": "C:\\MaaCoreArknights3\\platform-tools\\adb.exe", + "address": "127.0.0.1:62001", + "config": "General", + "width": 1280, + "height": 720 + }, + "what": "ResolutionGot", + "why": "" + } + }, + "command": "callBack", + "msgId": 0, + "code": 0, + "message": "success" } ``` diff --git a/src/Rust/Readme.md b/src/Rust/Readme.md index e9c3c88df2..495064f104 100644 --- a/src/Rust/Readme.md +++ b/src/Rust/Readme.md @@ -21,9 +21,9 @@ ```json { - "core": "2022-07-24-16-43-52-8218e7f", - "result": 0, - "server": "v0.0.1" + "core": "2022-07-24-16-43-52-8218e7f", + "result": 0, + "server": "v0.0.1" } ``` @@ -44,8 +44,8 @@ ```json { - "id": 1, - "result": 0 + "id": 1, + "result": 0 } ``` @@ -65,7 +65,7 @@ ```json { - "id": 1 + "id": 1 } ``` @@ -77,7 +77,7 @@ ```json { - "result": 0 + "result": 0 } ``` @@ -95,8 +95,8 @@ ```json { - "instances": [1], - "result": 0 + "instances": [1], + "result": 0 } ``` @@ -116,10 +116,10 @@ ```json { - "id": 1, - "adb_path": "adb.exe", - "target": "127.0.0.1:62025", - "config": null + "id": 1, + "adb_path": "adb.exe", + "target": "127.0.0.1:62025", + "config": null } ``` @@ -134,7 +134,7 @@ ```json { - "result": 0 + "result": 0 } ``` @@ -150,7 +150,7 @@ ```json { - "id": 1 + "id": 1 } ``` @@ -162,8 +162,8 @@ ```json { - "result": 0, - "target": "127.0.0.1:62025" + "result": 0, + "target": "127.0.0.1:62025" } ``` @@ -183,8 +183,8 @@ ```json { - "uuid": "af01fba4f43da740\r\n", - "nums": 5 + "uuid": "af01fba4f43da740\r\n", + "nums": 5 } ``` @@ -197,23 +197,23 @@ ```json { - "msgs": [ - { - "body": { - "details": { - "adb": "adb.exe", - "address": "127.0.0.1:62025", - "config": "General" - }, - "uuid": "af01fba4f43da740", - "what": "Connected", - "why": "" - }, - "time": 1658687213962, - "type": 2 - } - ], - "result": 0 + "msgs": [ + { + "body": { + "details": { + "adb": "adb.exe", + "address": "127.0.0.1:62025", + "config": "General" + }, + "uuid": "af01fba4f43da740", + "what": "Connected", + "why": "" + }, + "time": 1658687213962, + "type": 2 + } + ], + "result": 0 } ``` @@ -236,7 +236,7 @@ ```json { - "uuid": "af01fba4f43da740\r\n" + "uuid": "af01fba4f43da740\r\n" } ``` @@ -248,7 +248,7 @@ ```json { - "result": 0 + "result": 0 } ``` @@ -266,8 +266,8 @@ ```json { - "result": 0, - "uuid": ["af01fba4f43da740"] + "result": 0, + "uuid": ["af01fba4f43da740"] } ``` @@ -287,7 +287,7 @@ ```json { - "id": 1 + "id": 1 } ``` @@ -299,8 +299,8 @@ ```json { - "result": 0, - "uuid": "af01fba4f43da740\r\n" + "result": 0, + "uuid": "af01fba4f43da740\r\n" } ``` @@ -320,9 +320,9 @@ ```json { - "id": 1, - "types": "StartUp", - "params": {} + "id": 1, + "types": "StartUp", + "params": {} } ``` @@ -336,8 +336,8 @@ ```json { - "result": 0, - "task_id": 1 + "result": 0, + "task_id": 1 } ``` @@ -357,9 +357,9 @@ ```json { - "id": 1, - "task_id": 1, - "params": {} + "id": 1, + "task_id": 1, + "params": {} } ``` @@ -373,7 +373,7 @@ ```json { - "result": 0 + "result": 0 } ``` @@ -389,7 +389,7 @@ ```json { - "id": 1 + "id": 1 } ``` @@ -401,13 +401,13 @@ ```json { - "result": 0, - "tasks": { - "1": { - "params": "{}", - "type": "StartUp" - } + "result": 0, + "tasks": { + "1": { + "params": "{}", + "type": "StartUp" } + } } ``` @@ -427,7 +427,7 @@ ```json { - "id": 1 + "id": 1 } ``` @@ -439,7 +439,7 @@ ```json { - "result": 0 + "result": 0 } ``` @@ -455,7 +455,7 @@ ```json { - "id": 1 + "id": 1 } ``` @@ -467,7 +467,7 @@ ```json { - "result": 0 + "result": 0 } ``` @@ -483,7 +483,7 @@ ```json { - "id": 1 + "id": 1 } ``` @@ -509,9 +509,9 @@ ```json { - "id": 1, - "x": 114, - "y": 514 + "id": 1, + "x": 114, + "y": 514 } ``` @@ -525,7 +525,7 @@ ```json { - "result": 0 + "result": 0 } ``` diff --git a/tools/AutoLocalization/README.md b/tools/AutoLocalization/README.md index 4c40191b76..c92717c1f5 100644 --- a/tools/AutoLocalization/README.md +++ b/tools/AutoLocalization/README.md @@ -55,25 +55,25 @@ Enjoy! 1. 不要破坏缩进(包括空行不带空格) 2. `` 如果能在资源字典找到Uid对应的Key,把对应的Value作为注释写入,像这样(注意注释中的空格): - ```xml - - - - ``` + ```xml + + + + ``` 3. 由于字典被拆分了,重复的键要交给脚本检查 4. 因为zh-cn可能会混入一些中文梗,所以ja-jp、ko-kr尽量由en-us翻译 - ```code - check duplicate Key() - if exist duplicate Key: - throw (or raise) an exception + ```code + check duplicate Key() + if exist duplicate Key: + throw (or raise) an exception - zh-cn -> zh-tw - if exist en-us: - en-us -> ja-jp - en-us -> ko-kr - else: - zh-cn -> ja-jp - zh-cn -> ko-kr - zh-cn -> en-us - ``` + zh-cn -> zh-tw + if exist en-us: + en-us -> ja-jp + en-us -> ko-kr + else: + zh-cn -> ja-jp + zh-cn -> ko-kr + zh-cn -> en-us + ```