Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d668370d
authored
Jun 24, 2023
by
JustSong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: remove tqdm dependency
parent
7e80d4af
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
4 deletions
+1
-4
i18n/translate.py
+1
-4
No files found.
i18n/translate.py
View file @
d668370d
...
@@ -2,9 +2,6 @@ import argparse
...
@@ -2,9 +2,6 @@ import argparse
import
json
import
json
import
os
import
os
from
tqdm
import
tqdm
def
list_file_paths
(
path
):
def
list_file_paths
(
path
):
file_paths
=
[]
file_paths
=
[]
for
root
,
dirs
,
files
in
os
.
walk
(
path
):
for
root
,
dirs
,
files
in
os
.
walk
(
path
):
...
@@ -38,7 +35,7 @@ def replace_keys_in_repository(repo_path, json_file_path):
...
@@ -38,7 +35,7 @@ def replace_keys_in_repository(repo_path, json_file_path):
files
=
list_file_paths
(
repo_path
)
files
=
list_file_paths
(
repo_path
)
print
(
'Total files: {}'
.
format
(
len
(
files
)))
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
)
replace_keys_in_file
(
file_path
,
pairs
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment