Skip to content
Snippets Groups Projects
Commit 61e66423 authored by Hangzhi Yu's avatar Hangzhi Yu
Browse files

Fix check if messages exist when writing django vite values

parent 8d20bd50
No related branches found
No related tags found
1 merge request!1123Resolve "Finalise Vuetify app as SPA"
Pipeline #107821 canceled
......@@ -34,7 +34,7 @@ def write_vite_values(out_path: str) -> dict[str, Any]:
vite_values["appDetails"][app]["name"] = app.split(".")[-1]
vite_values["appDetails"][app]["assetDir"] = path
vite_values["appDetails"][app]["hasMessages"] = os.path.exists(
os.path.join(path, "messages.json")
os.path.join(path, "messages", "en.json")
)
# Add core entrypoint
vite_values["coreAssetDir"] = os.path.join(settings.BASE_DIR, "aleksis", "core", "assets")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment