Skip to content

Commit

Permalink
fix: ignore built assets in translation
Browse files Browse the repository at this point in the history
(cherry picked from commit 0cb4da1)
  • Loading branch information
ankush authored and mergify[bot] committed Aug 4, 2022
1 parent 7834b7e commit 53357e2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frappe/translate.py
Original file line number Diff line number Diff line change
Expand Up @@ -637,6 +637,9 @@ def get_server_messages(app):
for basepath, folders, files in app_walk:
folders[:] = [folder for folder in folders if folder not in {".git", "__pycache__"}]

if "public/dist" in basepath:
continue

for f in files:
f = frappe.as_unicode(f)
if f.endswith(file_extensions):
Expand Down

0 comments on commit 53357e2

Please sign in to comment.