Skip to content

Commit 34ca2c3

Browse files
Fix bug in CLI languages command -- some target languages were omitted
1 parent fa3fbf5 commit 34ca2c3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111
### Deprecated
1212
### Removed
1313
### Fixed
14+
* Fix bug in CLI languages command causing some target languages to be omitted.
1415
### Security
1516

1617

deepl/__main__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ def action_languages(translator: deepl.Translator, glossary: bool):
4242
for language in target_languages:
4343
if language.supports_formality:
4444
print(f"{language.code}: {language.name} (supports formality)")
45-
else:
46-
print(f"{language.code}: {language.name}")
45+
else:
46+
print(f"{language.code}: {language.name}")
4747

4848

4949
def action_document(

0 commit comments

Comments
 (0)