Closed Wang-Yue closed 1 year ago
Got it.
Thoughts about what (function call) to fallback next? Or just to English?
if user's locale is empty, probably fallback to en-US is the best solution
It should be fixed by 70cdd84359b12d1ef8d13cd52a3e3caa21a91e44.
Here you have
self.lang = lang or locale.getdefaultlocale()[0].replace('_', '-')
On my machine
So gives an error
AttributeError: 'NoneType' object has no attribute 'replace'