Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Language argument support #388

Open
x-ray-s opened this issue Oct 4, 2022 · 1 comment
Open

Language argument support #388

x-ray-s opened this issue Oct 4, 2022 · 1 comment

Comments

@x-ray-s
Copy link

x-ray-s commented Oct 4, 2022

Expected behavior

--language -L is not support

Environment

  • Operating system - windows 11
  • Node.js version - 16.13.1
  • tldr-node-client version - 3.3.8
@kbdharun
Copy link
Member

kbdharun commented Oct 16, 2022

--language -L is not support

Thanks for creating this issue, Separate language argument isn't necessary as our node.js (npm) client automatically displays translated versions of pages based on your system language setting. But this will be useful for Multi-lingual users so IG we can look into this.

Tldr pages defaults to showing pages in the current language of the operating system, or English if that's not available. To view tldr pages for a different language, set an environment variable LANG containing a valid POSIX locale (such as zh, pt_BR, or fr) and then run the above commands as usual. In most *nix systems, this variable will already be set.

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

No branches or pull requests

2 participants