From 5dfcebac16fc044bbc4c20d5d48fc720d3c36d3f Mon Sep 17 00:00:00 2001 From: shortcutme Date: Fri, 18 Nov 2016 21:38:57 +0100 Subject: [PATCH] Langauge file is top prority --- plugins/TranslateSite/TranslateSitePlugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/TranslateSite/TranslateSitePlugin.py b/plugins/TranslateSite/TranslateSitePlugin.py index c987be85..c48dfff2 100644 --- a/plugins/TranslateSite/TranslateSitePlugin.py +++ b/plugins/TranslateSite/TranslateSitePlugin.py @@ -56,7 +56,7 @@ class UiRequestPlugin(object): data = "".join(list(file_generator)) # if site.content_manager.contents["content.json"]["files"].get(lang_file): - site.needFile(lang_file) + site.needFile(lang_file, priority=10) if inner_path.endswith("js"): data = translate.translateData(data, site.storage.loadJson(lang_file), "js") else: