diff --git a/.github/workflows/auto_release.yml b/.github/workflows/auto_release.yml new file mode 100644 index 0000000..5fa48c0 --- /dev/null +++ b/.github/workflows/auto_release.yml @@ -0,0 +1,34 @@ +name: Check Auto Release + +on: + push: + branches: + - 'main' + workflow_dispatch: +jobs: + auto-release: + if: github.repository == 'StarCitizenToolBox/LocalizationData' + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up Rust + uses: dtolnay/rust-toolchain@stable + + - name: Rust Cache + uses: Swatinem/rust-cache@v2 + with: + cache-all-crates: true + prefix-key: "rs_cache" + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + shared-key: "share" + + - name: Setup localization runner tools + run: cargo install --git https://github.com/StarCitizenToolBox/runner_tools.git --tag v1.0.0 localization + + - name: Auto Release + env: + GH_TOKEN: ${{ secrets.GH_TOKEN }} + GH_REPO: ${{ github.repository }} + run: localization -m auto_release \ No newline at end of file diff --git a/.github/workflows/pr_check.yml b/.github/workflows/pr_check.yml index 69e09fd..16f18fc 100644 --- a/.github/workflows/pr_check.yml +++ b/.github/workflows/pr_check.yml @@ -8,27 +8,30 @@ on: workflow_dispatch: jobs: - run-rust: + rust-pr-check: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v4 - - - name: Check runner_tools - uses: actions/checkout@v4 - with: - repository: StarCitizenToolBox/runner_tools - path: runner_tools - name: Set up Rust uses: dtolnay/rust-toolchain@stable - + - name: Rust Cache uses: Swatinem/rust-cache@v2 with: - workspaces: "rust" cache-all-crates: true + prefix-key: "rs_cache" + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + shared-key: "share" + - name: Setup localization runner tools + run: cargo install --git https://github.com/StarCitizenToolBox/runner_tools.git --tag v1.0.0 localization + - name: PR Check - run: cargo run --manifest-path ./runner_tools/localization/Cargo.toml pr_check --release \ No newline at end of file + env: + GH_REPO: ${{ github.repository }} + GH_PR_NUMBER: ${{ github.event.pull_request.id }} + GH_PR_TITLE: ${{ github.event.pull_request.title }} + run: localization -m pr_check \ No newline at end of file diff --git a/manifest.json b/manifest.json new file mode 100644 index 0000000..d7c478b --- /dev/null +++ b/manifest.json @@ -0,0 +1,73 @@ +{ + "update_time": "2024-11-28 12:00", + "languages": [ + { + "name": "chinese_(simplified)", + "localizations": [ + { + "enabled": true, + "branch": "main", + "version": "3.24.3(PU)_CN_V6", + "info": "[汉化组] 简中全汉化", + "note": "该版本由星际公民汉化组提供" + }, + { + "enabled": true, + "branch": "cn_e", + "version": "3.24.3(PU)_CNE_V4", + "info": "[汉化组] 简中半汉化", + "note": "该版本由星际公民汉化组提供,在全汉化的基础上保留了地面名称,载具名称,物品名称为英文。" + }, + { + "enabled": true, + "branch": "cn_en", + "version": "3.24.3(PU)_CNEN_V4", + "info": "[汉化组] 简中双语汉化", + "note": "该版本由星际公民汉化组提供,提供中英文双语显示。" + }, + { + "enabled": true, + "branch": "cn_pinyin", + "version": "3.24.3(PU)_CN_PINYIN_V4", + "info": "[汉化组] 简中拼音搜索汉化", + "note": "由星际公民汉化组提供,为地点名称增加了拼音首字母后缀,便于搜索。" + }, + { + "enabled": true, + "branch": "cn_rsui", + "version": "3.24.3(PU)_CNRSUI_V1", + "info": "[社区] 双语信息增强汉化", + "note": "由RSUI红星联合工业舰队提供的双语修改版本,基于社区汉化、游戏文本二次修改翻译。" + }, + { + "enabled": true, + "branch": "main", + "version": "4.0.0(PTU)_CN_V1", + "info": "[汉化组] 简中全汉化", + "note": "该版本由星际公民汉化组提供" + } + ] + }, + { + "name": "chinese_(traditional)", + "localizations": [ + { + "enabled": true, + "branch": "tw", + "version": "3.24.3(PU)_TW_V1", + "info": "繁體中文本地化(TW)", + "note": "星際公民繁體中文台灣本地化修正翻譯計畫(TCTP) 提供了一個基於星際公民漢化組簡體中文翻譯版本所翻譯的品質穩定的台灣本地化繁體中文版本,並且持續穩定的進行更新。" + }, + { + "enabled": true, + "branch": "tw", + "version": "3.24.3(PTU)_TW_V1", + "info": "繁體中文本地化(TW)", + "note": "星際公民繁體中文台灣本地化修正翻譯計畫(TCTP) 提供了一個基於星際公民漢化組簡體中文翻譯版本所翻譯的品質穩定的台灣本地化繁體中文版本,並且持續穩定的進行更新。" + } + ] + } + ], + "target_api_repo": "StarCitizenToolBox/Api", + "target_api_branch": "main" +} \ No newline at end of file