import calendar import locale import sys loc = sys.argv[1] locale.setlocale(locale.LC_ALL, loc) cal = calendar.LocaleTextCalendar() print(f"{locale.getlocale()=}") print(f"{locale.getdefaultlocale()=}") print(f"{cal.locale=!r}") print(cal.formatmonth(2022, 8, 10))