Skip to content

Commit

Permalink
v0.2.7b2
Browse files Browse the repository at this point in the history
  • Loading branch information
wasertech committed Mar 12, 2023
1 parent 82d0498 commit aba7d66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion translator/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from translator.translate import Translator
from translator.language import get_nllb_lang

__version__ = "0.2.7b1"
__version__ = "0.2.7b2"

LANGS = get_nllb_lang()
2 changes: 1 addition & 1 deletion translator/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def main():
spinner.fail(f"Missing sentences to translate.")
sys.exit(1)

if not _to:
if not _to and _from:
if not args.directory:
spinner.fail(f"Missing \'_to\' argument.")
print("Please choose a target language or at least give a sentence or a directory to translate.")
Expand Down

0 comments on commit aba7d66

Please sign in to comment.