How to access translated page in tldr client(linux) in terminal ? #8270
-
Is there any commands for tldr (linux) that could fetch and display a translated version of page in terminal. Is there any implementation for it. Or does it display a tranlated version of page based on system language? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
If you check the client specification https://github.com/tldr-pages/tldr/blob/main/CLIENT-SPECIFICATION.md#arguments, the clients could implement the optional tldr --language es git But the tldr client should fallback to English If that translation doesn't exist. Also the clients use the |
Beta Was this translation helpful? Give feedback.
-
In addition to @navarroaxel's answer, you can set the This has the advantage of setting your language preferences once for all programs, and then it will be followed where possible (given translation is a work-in-progress - open a PR to help out!). These are well-known environment variables supported by a large number of different programs. |
Beta Was this translation helpful? Give feedback.
If you check the client specification https://github.com/tldr-pages/tldr/blob/main/CLIENT-SPECIFICATION.md#arguments, the clients could implement the optional
--language
argument.If you want the Spanish version of a page you can use:
But the tldr client should fallback to English If that translation doesn't exist.
Also the clients use the
LANG
env var to know if they should use a more specific language instead of English https://github.com/tldr-pages/tldr/blob/main/CLIENT-SPECIFICATION.md#language