Skip to content

Keep saved font and color values independent of the UI language - #416

Merged
devmobasa merged 1 commit into
mainfrom
fix/untranslated-config-values
Oct 18, 2026
Merged

devmobasa merged 1 commit into
mainfrom
fix/untranslated-config-values

Conversation

@devmobasa

Copy link
Copy Markdown
Owner

When the configurator uses Chinese, loading or selecting fonts and named colors can put translated labels into configuration values. Saving can then fail validation or store a color name the overlay does not recognize.

Keep the font and color conversion methods on canonical English values while leaving dropdown labels translated. Remove the unused lowercase catalog entries and document that configuration values must stay independent of the interface language.

Add regressions for a Chinese config draft round trip and for every font and named-color option in both languages. The language-changing tests run in isolated child processes.

Validation:

  • cargo test --locked -p wayscriber-configurator
  • cargo test --locked -p wayscriber --test repository_guards translations::
  • cargo test --locked -p wayscriber --lib config:: -- --test-threads=1
  • cargo fmt --all -- --check
  • git diff --check

The full local gate was not rerun for this review; hosted CI will validate the PR.

@devmobasa
devmobasa merged commit dcaf924 into main Oct 18, 2026
3 checks passed
@devmobasa
devmobasa deleted the fix/untranslated-config-values branch October 18, 2026 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant