[codex] Add dashboard language packs and Korean localization#32
Closed
jhste102lab wants to merge 1 commit into
Closed
[codex] Add dashboard language packs and Korean localization#32jhste102lab wants to merge 1 commit into
jhste102lab wants to merge 1 commit into
Conversation
Contributor
|
All contributors have signed the CLA ✍️ ✅ |
Author
|
I have read the CLA Document and I hereby sign the CLA |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a language-pack based localization layer to the Token Optimizer dashboard and ships an initial Korean translation pass.
This PR keeps translations out of the dashboard render logic by injecting a versioned language-pack asset at dashboard generation time. Users can switch between English and Korean from the dashboard footer using the new
ENG / KORcontrol.Closes #31.
What Changed
skills/token-optimizer/assets/language-packs.jsonwith English fallback metadata and Korean phrase mappings.localStoragetitle,placeholder, andaria-labelattributesENG / KORselector above the existingBuilt by Alex Greenshpunfooter area.measure.pyto inject both dashboard data and language packs.Why
Korean-speaking users currently see a mixed-language dashboard. Some management sections can be partially localized, but core areas such as Overview, Quick Wins, Health, Coach, Hooks, Selection Summary, and generated recommendation text remain mostly English.
Hardcoding Korean strings into render functions would make future translation updates harder. A language-pack asset lets maintainers update translations through normal git review and makes it possible to add more languages later.
Implementation Notes
ENGandKORwithout reloading.Validation
python3 -m json.tool skills/token-optimizer/assets/language-packs.jsonpython3 -m py_compile skills/token-optimizer/scripts/measure.pyTOKEN_OPTIMIZER_RUNTIME=codex.KORtoggle in the generated dashboard across Overview, Quick Wins, Habits, Coach, Hooks, Manage, and Trends.Screens / Manual QA Notes
Verified that Korean localization covers major generated sections including:
Commands and code-like content remain readable and are intentionally not translated.