Skip to content

Commit

Permalink
Update sync_to_translation_status.er
Browse files Browse the repository at this point in the history
  • Loading branch information
mtshiba committed Feb 14, 2024
1 parent 4466a5a commit a876d2e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions doc/scripts/sync_to_translation_status.er
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
os = pyimport "os"
re = pyimport "re"
mylib = pyimport "mylib" # TODO: Make it work without this
tqdm = pyimport "tqdm"

LANGUAGES_KEBAB_CASE = ["JA", "zh-TW", "zh-CN"]

Expand Down Expand Up @@ -60,7 +59,7 @@ for! LANGUAGES_KEBAB_CASE, lang =>
add_table_row_text! "[CODE_OF_CONDUCT.md](../../CODE_OF_CONDUCT.md)", "[📝](../CODE_OF_CONDUCT/CODE_OF_CONDUCT_\{lang}.md) \{get_badge!(mylib.path_join(cwd, "./CODE_OF_CONDUCT/CODE_OF_CONDUCT_\{lang}.md"))}"
add_table_row_text! "[CONTRIBUTING.md](../../CONTRIBUTING.md)", "[📝](../CONTRIBUTING/CONTRIBUTING_\{lang}.md) \{get_badge!(mylib.path_join(cwd, "./CONTRIBUTING/CONTRIBUTING_\{lang}.md"))}"

for! tqdm.tqdm(doc_en_file_paths), en_path =>
for! doc_en_file_paths, en_path =>
relative_file_path = "\{lang.replace "-", "_"}\{mylib.str_slice en_path, 2}"
add_table_row_text! "[\{mylib.str_slice en_path, 3}](../\{en_path})", "[📝](../\{relative_file_path}) \{get_badge!(mylib.path_join(cwd, relative_file_path))}"

Expand Down

0 comments on commit a876d2e

Please sign in to comment.