Skip to content

Commit b61adab

Browse files
committed
Fix locale
1 parent c38ebb5 commit b61adab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

videomorph/converter/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@
2020
"""This module contains some utilities and functions."""
2121

2222
import os
23-
from locale import getdefaultlocale
23+
from locale import getlocale
2424
from os.path import pathsep
2525
from pathlib import Path
2626

2727

2828
def get_locale():
2929
"""Return the default locale string."""
30-
return "es_ES" if getdefaultlocale()[0].startswith("es_") else "en_US"
30+
return "es_ES" if getlocale()[1].startswith("es_") else "en_US"
3131
# return 'es_ES'
3232

3333

0 commit comments

Comments
 (0)