Skip to content

Commit

Permalink
refactored codes
Browse files Browse the repository at this point in the history
  • Loading branch information
rongxin-liu committed Nov 19, 2023
1 parent 692670e commit 330b2da
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cli50/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import argparse
import gettext
import inflect
import importlib
import json
import os
import re
Expand All @@ -17,6 +16,7 @@
import textwrap
import tzlocal
from packaging import version
from importlib.resources import files

from . import __version__

Expand All @@ -36,8 +36,7 @@
TAG = "latest"

# Internationalization
path = importlib.resources.files("cli50").joinpath("locale")
t = gettext.translation("cli50", str(path), fallback=True)
t = gettext.translation("cli50", str(files("cli50").joinpath("locale")), fallback=True)
t.install()


Expand Down

0 comments on commit 330b2da

Please sign in to comment.