Closed aroberge closed 1 year ago
This is an interesting suggestion. It would likely be easy to implement. Currently, whenever a user changes the language used by friendly, the choice is saved and used as the default language the next time friendly is imported or started on a command line.
To change this, one would need to replace https://github.com/friendly-traceback/friendly/blob/f93b09e6d5aafa16c637dcb05ce3da20c67573ca/friendly/my_gettext.py#L39 by something like
import locale
lang = locale.getdefaultlocale()[0]
The following issue was entered by https://github.com/TamilNeram in https://github.com/friendly-traceback/friendly-traceback/issues/159