X Tutup
Skip to content

feat: Add language-specific command aliases with auto-detection#59

Merged
SaadBazaz merged 2 commits intoUniversalPython:mainfrom
sarr266:feature/language-specific-command-aliases
Feb 21, 2026
Merged

feat: Add language-specific command aliases with auto-detection#59
SaadBazaz merged 2 commits intoUniversalPython:mainfrom
sarr266:feature/language-specific-command-aliases

Conversation

@sarr266
Copy link
Contributor

@sarr266 sarr266 commented Feb 17, 2026

Add translated command aliases (e.g., deutschpython, یونیورسلپایتھان) that auto-select the target language. Aliases are defined in language YAMLs, registered dynamically via setup.py, and detected at runtime through sys.argv[0] lookup. Explicit -sl flag overrides alias detection.

POC.UniversalPython.mp4
image

Copy link
Collaborator

@SaadBazaz SaadBazaz left a comment

Choose a reason for hiding this comment

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

Looks great! Just some minor improvements/explanations, and we seem good to go. Great work on submitting a video and an architectural diagram.

if dictionary:
try:
with open(dictionary) as f:
with open(dictionary, encoding='utf-8') as f:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why was this necessary, can you explain

Copy link
Contributor Author

Choose a reason for hiding this comment

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

To handle international characters.
The alias system was breaking on my system (Windows) otherwise

Copy link
Collaborator

Choose a reason for hiding this comment

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

Alright, are you able to test this locally on Linux and macOS?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

image

Sorry i don't have access to macOS, tested it on Linux, works perfectly

Copy link
Collaborator

Choose a reason for hiding this comment

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

Great. I don't think this will cause issues on macOS then. Will merge soon.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Cool :)

@sarr266 sarr266 requested a review from SaadBazaz February 19, 2026 04:04
@SaadBazaz SaadBazaz merged commit 9700975 into UniversalPython:main Feb 21, 2026
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

X Tutup