We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c38ebb5 commit b61adabCopy full SHA for b61adab
videomorph/converter/utils.py
@@ -20,14 +20,14 @@
20
"""This module contains some utilities and functions."""
21
22
import os
23
-from locale import getdefaultlocale
+from locale import getlocale
24
from os.path import pathsep
25
from pathlib import Path
26
27
28
def get_locale():
29
"""Return the default locale string."""
30
- return "es_ES" if getdefaultlocale()[0].startswith("es_") else "en_US"
+ return "es_ES" if getlocale()[1].startswith("es_") else "en_US"
31
# return 'es_ES'
32
33
0 commit comments