Skip to content

Commit

Permalink
Merge pull request #12 from StarCitizenToolBox/main
Browse files Browse the repository at this point in the history
fork sync main
  • Loading branch information
herokillerJ authored Nov 28, 2024
2 parents 426cd72 + 6eaa7a3 commit ea1ece4
Show file tree
Hide file tree
Showing 3 changed files with 120 additions and 10 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/auto_release.yml
Original file line number Diff line number Diff line change
@@ -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
23 changes: 13 additions & 10 deletions .github/workflows/pr_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
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
73 changes: 73 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -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"
}

0 comments on commit ea1ece4

Please sign in to comment.