From 05d93f42fb5f641741e96e3069c6028f527e8e3e Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Sat, 11 May 2024 11:30:26 +0000 Subject: [PATCH] style: format code with Autopep8, Black, ClangFormat, dotnet-format, Go fmt, Gofumpt, Google Java Format, isort, Ktlint, PHP CS Fixer, Prettier, RuboCop, Ruff Formatter, Rustfmt, Scalafmt, StandardJS, StandardRB, swift-format and Yapf This commit fixes the style issues introduced in 19a5d04 according to the output from Autopep8, Black, ClangFormat, dotnet-format, Go fmt, Gofumpt, Google Java Format, isort, Ktlint, PHP CS Fixer, Prettier, RuboCop, Ruff Formatter, Rustfmt, Scalafmt, StandardJS, StandardRB, swift-format and Yapf. Details: None --- translations/translations.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/translations/translations.py b/translations/translations.py index 6d154b85b..bd2d6a772 100644 --- a/translations/translations.py +++ b/translations/translations.py @@ -1,14 +1,16 @@ import os + def load_translations(): # Load all available translations - translations_dir = os.path.join(os.path.dirname(__file__), 'translations') + translations_dir = os.path.join(os.path.dirname(__file__), "translations") translations = {} for file in os.listdir(translations_dir): - if file.endswith('.json'): - with open(os.path.join(translations_dir, file), 'r') as f: + if file.endswith(".json"): + with open(os.path.join(translations_dir, file), "r") as f: language = file[:-5] translations[language] = json.load(f) return translations + translations = load_translations()