From f55647278c94877fe9e58e6ea1265a18c60b77cc Mon Sep 17 00:00:00 2001 From: JustSong Date: Sat, 24 Jun 2023 10:09:42 +0800 Subject: [PATCH] fix: remove tqdm dependency --- i18n/translate.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/i18n/translate.py b/i18n/translate.py index df1fd035..6ba9bc5d 100644 --- a/i18n/translate.py +++ b/i18n/translate.py @@ -2,9 +2,6 @@ import argparse import json import os -from tqdm import tqdm - - def list_file_paths(path): file_paths = [] for root, dirs, files in os.walk(path): @@ -38,7 +35,7 @@ def replace_keys_in_repository(repo_path, json_file_path): files = list_file_paths(repo_path) print('Total files: {}'.format(len(files))) - for file_path in tqdm(files, total=len(files)): + for file_path in files: replace_keys_in_file(file_path, pairs)