Skip to content

Commit

Permalink
Fix locale
Browse files Browse the repository at this point in the history
  • Loading branch information
lpozo committed Aug 15, 2023
1 parent c38ebb5 commit b61adab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions videomorph/converter/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@
"""This module contains some utilities and functions."""

import os
from locale import getdefaultlocale
from locale import getlocale
from os.path import pathsep
from pathlib import Path


def get_locale():
"""Return the default locale string."""
return "es_ES" if getdefaultlocale()[0].startswith("es_") else "en_US"
return "es_ES" if getlocale()[1].startswith("es_") else "en_US"
# return 'es_ES'


Expand Down

0 comments on commit b61adab

Please sign in to comment.