Skip to content

Commit 674b5ec

Browse files
committed
fix(tools): ignore upstream changelogs and default english strings during translation extraction
1 parent 3aa0ca7 commit 674b5ec

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tools/release.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ def update_translations():
3030
if not file.filename.startswith("heliboard/heliboard/app/src/main/res")\
3131
and not file.filename.startswith("heliboard/heliboard/fastlane/metadata"):
3232
continue
33+
# Block extracting Heliboard's base string files, which would overwrite LeanType's English variants
34+
if file.filename.startswith("heliboard/heliboard/app/src/main/res/values/"):
35+
continue
36+
# Block extracting upstream release changelogs since LeanType tracks its own release cycle
37+
if "/changelogs/" in file.filename:
38+
continue
3339
file.filename = file.filename.replace("heliboard/heliboard/", "")
3440
f.extract(file)
3541
os.remove(zip_file_name)

0 commit comments

Comments
 (0)