Skip to content

Commit

Permalink
Don't use deprecated locale.getdefaultlocale
Browse files Browse the repository at this point in the history
This change will look at slightly different env variables, not sure if that has
some practical relevance.

Closes #226
  • Loading branch information
otsaloma committed Jun 18, 2024
1 parent 5347ec9 commit 143dafa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aeidon/locales.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def code_to_name(code):
def get_system_code():
"""Return the locale code preferred by system or ``None``."""
import locale
return locale.getdefaultlocale()[0]
return locale.getlocale()[0]

@aeidon.deco.once
def get_system_modifier():
Expand Down

0 comments on commit 143dafa

Please sign in to comment.