Skip to content

Commit

Permalink
fix: use high-speed method for C locale too (#681)
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <[email protected]>
  • Loading branch information
henryiii authored Apr 29, 2024
1 parent 06da1f6 commit ff7b0e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plumbum/cli/i18n.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# High performance method for English (no translation needed)
loc = locale.getlocale()[0]
if loc is None or loc.startswith("en"):
if loc is None or loc.startswith("en") or loc == "C":

class NullTranslation:
def gettext(self, str1: str) -> str: # pylint: disable=no-self-use
Expand Down

0 comments on commit ff7b0e6

Please sign in to comment.