[pr-feature][shaders][startup] Add keyed localisation and F1 precompile worker selection #26

Manually merged
TrustNo1 merged 0 commits from bole/zh-cn-precompile-workers into main 2026-12-03 18:36:32 +00:00 AGit
Contributor

Contributor role (optional)

  • Fluxer ID: —

What it changes

  • Adds English and Simplified Chinese for the F1 menu, F3 panel, and launcher and preload UI. Locale files use stable keys and their own language metadata. A new language can be added as one JSON catalog, with English fallback for missing keys.
  • Adds Auto and an explicit worker count under F1 Tools. It uses the existing DARNER_PRELOAD_JOBS and preload --jobs path. Auto retains the upstream defaults for each stage.
  • Continues CodeFloe PR #346 on GTAHub and localises the four camera key bindings added upstream.

How it was tested

  • Tested revision: 7f19b62 on main at 4a92569.
  • cargo test --offline --locked -j 4 -p darner --bin darner --test cache_paths --test picked_folders — 128 passed, 1 ignored.
  • cargo test --offline --locked -j 4 -p darner-gpu --lib host::menu:: — 38 passed, 1 ignored.
  • cargo test --offline --locked -j 4 -p darner-gpu --lib host::panel:: — 19 passed, 1 ignored.
  • git diff --check origin/main...HEAD and target/debug/xtask.exe policy passed. Checked catalog keys and placeholders, English and Chinese preload help, and language fallback on Windows.
  • Coverage gaps: workspace-wide gates, gameplay, and shader precompilation were not run.

Checklist

  • This PR contains one change based on main.
  • The diff follows docs/asset-policy.md.
  • I recorded this PR's dependencies below.
    • Depends on: none

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches.
  • Related PRs: #3, #8, #9, #12, #16 and #21 share files and cover separate changes.
## Contributor role (optional) - Fluxer ID: — ## What it changes - Adds English and Simplified Chinese for the F1 menu, F3 panel, and launcher and preload UI. Locale files use stable keys and their own language metadata. A new language can be added as one JSON catalog, with English fallback for missing keys. - Adds Auto and an explicit worker count under F1 Tools. It uses the existing `DARNER_PRELOAD_JOBS` and `preload --jobs` path. Auto retains the upstream defaults for each stage. - Continues [CodeFloe PR #346](https://codefloe.com/TrustNo1/Darner/pulls/346) on GTAHub and localises the four camera key bindings added upstream. ## How it was tested - Tested revision: `7f19b62` on `main` at `4a92569`. - `cargo test --offline --locked -j 4 -p darner --bin darner --test cache_paths --test picked_folders` — 128 passed, 1 ignored. - `cargo test --offline --locked -j 4 -p darner-gpu --lib host::menu::` — 38 passed, 1 ignored. - `cargo test --offline --locked -j 4 -p darner-gpu --lib host::panel::` — 19 passed, 1 ignored. - `git diff --check origin/main...HEAD` and `target/debug/xtask.exe policy` passed. Checked catalog keys and placeholders, English and Chinese preload help, and language fallback on Windows. - Coverage gaps: workspace-wide gates, gameplay, and shader precompilation were not run. ## Checklist - [x] This PR contains one change based on `main`. - [x] The diff follows `docs/asset-policy.md`. - [x] I recorded this PR's dependencies below. - Depends on: none ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. - Related PRs: #3, #8, #9, #12, #16 and #21 share files and cover separate changes.
TrustNo1 manually merged commit 1b538be6ec into main 2026-12-03 18:36:31 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
TrustNo1/Darner!26
No description provided.