Skip to content

Commit 8ef5cf2

Browse files
committed
feat(i18n): per-language help routing and fast-path string micro-optimizations
- Implement is_help_flag and is_version_flag in the C dispatcher using uint64_t word loads to optimize string comparison for '--help' and '--version' flags. - Check for a lightweight marker file (~/.config/omnipkg/lang_marker_en) in both the C dispatcher and dispatcher.py to decide when to instantly serve the baked English help text. - Fall back to Python argparse for non-English locales to correctly serve fully translated subcommand lists and argument menus. - Restore translated argument descriptions (removed argparse.SUPPRESS) across all subcommands so localized menus render properly on fallback. - Update .bashrc and .zshrc with OMNIPKG_LANG when the language is changed via the config menu to keep settings persistent. - Ensure i18n.py and worker_daemon.py read the config file directly during early initialization so language variables are set before ConfigManager starts. Modified: • src/omnipkg/cli.py (+296/-216 lines) • src/omnipkg/dispatcher.c (+44/-8 lines) • src/omnipkg/dispatcher.py (+11/-3 lines) • src/omnipkg/i18n.py (+11/-1 lines) • src/omnipkg/isolation/worker_daemon.py (+7/-1 lines) [gitship-generated]
1 parent 5855d88 commit 8ef5cf2

5 files changed

Lines changed: 350 additions & 210 deletions

File tree

0 commit comments

Comments
 (0)