The CLI does not speak Bengali or Urdu, which the docs do
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 76/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- python
- Domain
- internationalization
Research direction
Start with nexy/modules/i18n/en.json and nexy/modules/i18n/_cli.py to understand the catalog format and supported locale list. Add one locale at a time under nexy/modules/i18n/, keeping all keys and placeholders intact, and update tests/unit/nexy/i18n/test_cli_catalogs.py for the supported language count. Run python -m pytest tests/unit/nexy/i18n; done means the catalog checks pass and NEXY_LANG=bn or NEXY_LANG=ur prints the CLI in that language.
Written by the indexing model from the issue text.
Description
What happens
The docs are published in 12 languages, and so is the CLI, but not the same 12:
| Language | Docs (docs/<code>/) |
CLI (nexy/modules/i18n/<code>.json) |
|---|---|---|
Bengali (bn) |
yes | no |
Urdu (ur) |
yes | no |
Japanese (ja) |
no | yes |
Korean (ko) |
no | yes |
A reader who follows the docs in Bengali or Urdu gets nx dev in English.
Proposal
Add nexy/modules/i18n/bn.json and nexy/modules/i18n/ur.json, and list both in SUPPORTED_LOCALES (nexy/modules/i18n/_cli.py).
- Start from
en.json(215 messages) and translate each value. Keep the keys and every{placeholder}as they are. tests/unit/nexy/i18n/test_cli_catalogs.pyalready checks a catalog: same keys as English, no empty message, same placeholders. Update the count intest_twelve_languages_are_supported.- Try it:
NEXY_LANG=bn nx --help.
Urdu is written right to left; the terminal handles that, so nothing changes in the code.
Done when
-
NEXY_LANG=bnandNEXY_LANG=urprint the CLI in Bengali and Urdu. -
python -m pytest tests/unit/nexy/i18npasses.
Getting started
One language is a fine pull request on its own: say which one you take in a comment. A machine translation reviewed by a native speaker is welcome; say which in the pull request.
- Dominant language
- Python
- Stars
- 11
- Forks
- 6
- Avg merge
- 2h 14m
- Merged PRs (30d)
- 265
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from NexyPy/nexy
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
area:cli difficulty:intermediate enhancement
Difficulty 2/5 Half a day Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
area:cli area:docs question
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
area:docs difficulty:beginner good first issue priority:3
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
area:docs difficulty:beginner good first issue priority:3
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
jxxghp/MoviePilot#7699 ·
Maintainers usually reply within 1 day
-
bug TAG: unit tests
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
learningequality/ricecooker#898 ·
-
next
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
j3ko/agent-plugins#80 ·
Maintainers usually reply within 1 day
-
bug:unconfirmed
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Heroic-Games-Launcher/HeroicGamesLauncher#6187 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 1-3 hours Newbie friendliness 82/100
BCStudentSoftwareDevTeam/cas#491 ·
Maintainers usually reply within 8 days