question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

make jc switch locale automatically

See original GitHub issue

Some parsers presuppose English locale. Currently I have to call e.g. LANG=en jc df. Can jc or the parsers be modified to use the required language automatically?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jonhattancommented, Aug 21, 2020

Better use the default locale C: LANG=C jc df -h

0reactions
kellyjonbrazilcommented, Dec 7, 2020

as a quick workaround, could you let me know if creating the following alias works?

alias jc='LANG=en_US.UTF-8 jc'

Note that this only works when using the “magic” syntax. If you are using the standard piping of STDIN to STDOUT, then make sure to add the LANG=C assignment before the command you want to convert. E.g.:

LANG=C ls -l /usr/bin | jc --ls
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to detect user locale and switch to it automatically?
misunderstood me, my question is very simple and clear i want on page load to detect the user locale and switch to it,...
Read more >
How to Load i18n Locales Asynchronously in Vue 3 + Vite
Learn how to load Vue I18n locales lazily in your multi-language Vue 3 + Vite ... The array will be used later to...
Read more >
Changing locale globally
Once you load a locale, it becomes the active locale. To change active locales, simply call dayjs.locale with the key of a loaded...
Read more >
Locale - ArchWiki
The locale to be used, chosen among the previously generated ones, is set in locale.conf files. Each of these files must contain a...
Read more >
Changing locale globally - momentjs.com
To load a locale, pass the key and the string values to moment.locale . More details on each of the parts of the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found