Skip to content

Commit

Permalink
Merge pull request #114 from cs50/locales
Browse files Browse the repository at this point in the history
adds support for locales
  • Loading branch information
dmalan authored May 28, 2023
2 parents a679371 + 9220c8e commit a420ffe
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
.*
!/.github/
!.gitignore
*.egg-info
*.mo
*.pyc
!.github
!.gitignore
build/
dist/
__pycache__
__pycache__/
4 changes: 4 additions & 0 deletions cli50/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,10 @@ def main():
"--volume", directory + ":" + workdir,
"--workdir", workdir]

# Check for locale
if lang := os.getenv("LANG"):
options += ["--env", f"LANG={lang}"]

# Validate ports
if not args["port"]:
args["port"] = PORTS
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
install_requires=["inflect", "requests", "tzlocal"],
keywords="cli50",
name="cli50",
python_requires=">=3.6",
python_requires=">=3.8",
packages=["cli50"],
entry_points={
"console_scripts": ["cli50=cli50.__main__:main"]
},
url="https://github.com/cs50/cli50",
version="7.3.0",
version="7.4.0",
include_package_data=True
)

0 comments on commit a420ffe

Please sign in to comment.