Skip to content

feat: Add language enum and update utility controller for localizatio…#385

Merged
Brunner246 merged 4 commits into
mainfrom
feature/localization-settings
Jul 14, 2026
Merged

feat: Add language enum and update utility controller for localizatio…#385
Brunner246 merged 4 commits into
mainfrom
feature/localization-settings

Conversation

@Brunner246

Copy link
Copy Markdown
Contributor

…n support

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds typed language support to the cadwork Python stubs by introducing a language IntEnum and extending utility_controller with typed language setters/getters, plus documentation wiring so the new enum is rendered in the enums docs.

Changes:

  • Add cadwork.language IntEnum representing available UI languages.
  • Extend utility_controller stubs with set_language(...) and get_language_enum() for typed localization control.
  • Export and document the new enum in cadwork.__init__ and docs/documentation/enums.md.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

File Description
src/utility_controller/init.pyi Adds typed language setter and enum-returning getter to the utility controller stubs.
src/cadwork/language.pyi Introduces the language IntEnum describing available UI languages.
src/cadwork/init.pyi Re-exports language in the public cadwork API surface (__all__).
docs/documentation/enums.md Adds a documentation section to render the cadwork.language enum.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/utility_controller/__init__.pyi Outdated
Comment thread src/cadwork/language.pyi Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@Brunner246
Brunner246 merged commit a4ad302 into main Jul 14, 2026
3 checks passed
@Brunner246
Brunner246 deleted the feature/localization-settings branch July 14, 2026 10:00
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.

2 participants