diff --git a/translator/__init__.py b/translator/__init__.py index 08d1a2d..7c233e1 100644 --- a/translator/__init__.py +++ b/translator/__init__.py @@ -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() diff --git a/translator/main.py b/translator/main.py index 4c31257..34be3b2 100644 --- a/translator/main.py +++ b/translator/main.py @@ -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.")