From bbf11fb548de3cc17ebcc8ada391a79829651c89 Mon Sep 17 00:00:00 2001 From: Andrew Tavis McAllister Date: Thu, 24 Oct 2024 01:19:27 +0200 Subject: [PATCH] Remove mid process language capitalization --- src/scribe_data/cli/list.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/scribe_data/cli/list.py b/src/scribe_data/cli/list.py index cc69dbde..d1082688 100644 --- a/src/scribe_data/cli/list.py +++ b/src/scribe_data/cli/list.py @@ -105,9 +105,8 @@ def list_data_types(language: str = None) -> None: else: data_types = set() for lang in languages: - language_dir = ( - LANGUAGE_DATA_EXTRACTION_DIR - / format_sublanguage_name(lang, language_metadata).capitalize() + language_dir = LANGUAGE_DATA_EXTRACTION_DIR / format_sublanguage_name( + lang, language_metadata ) if language_dir.is_dir(): data_types.update(f.name for f in language_dir.iterdir() if f.is_dir())