The CLI does not speak Bengali or Urdu, which the docs do

Open
#452 0 comments 0 reactions 0 assignees View on GitHub

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

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

area:cli difficulty:beginner good first issue priority:3

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.py already checks a catalog: same keys as English, no empty message, same placeholders. Update the count in test_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=bn and NEXY_LANG=ur print the CLI in Bengali and Urdu.
  • python -m pytest tests/unit/nexy/i18n passes.

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

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from NexyPy/nexy

All issues in NexyPy/nexy

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.