From 1b8e6164eda18bd46ddc217f8a9af111d9280228 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Wed, 17 Jan 2024 16:36:17 +0100 Subject: [PATCH] fix: use dynamic path for locale javascript --- umap/templates/umap/js.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/umap/templates/umap/js.html b/umap/templates/umap/js.html index 4a76c41b..5ef342ab 100644 --- a/umap/templates/umap/js.html +++ b/umap/templates/umap/js.html @@ -27,7 +27,11 @@ -{% if locale %}{% endif %}{# TODO: handle dynamic locale! #} +{% if locale %} + {% with 'umap/locale/'|add:locale|add:'.js' as path %} + + {% endwith %} +{% endif %}