diff --git a/CHANGELOG.md b/CHANGELOG.md index 83f8f9ba..652a61d9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -35,6 +35,7 @@ _This release is scheduled to be released on 2021-04-01._ - Fix Issue with weather forecast icons due to fixed day start and end time (#2221) - Fix empty directory for each module's main javascript file in the inspector - Fix Issue with weather forecast icons unit tests with different timezones (#2221) +- Fix issue with unencoded characters in translated strings when using nunjuck template (`Loading …` as an example) ## [2.14.0] - 2021-01-01 diff --git a/js/module.js b/js/module.js index 663413b6..14458f8a 100644 --- a/js/module.js +++ b/js/module.js @@ -176,7 +176,7 @@ var Module = Class.extend({ }); this._nunjucksEnvironment.addFilter("translate", function (str, variables) { - return self.translate(str, variables); + return nunjucks.runtime.markSafe(self.translate(str, variables)); }); return this._nunjucksEnvironment; diff --git a/modules/default/weather/current.njk b/modules/default/weather/current.njk index b8de8f80..e863eec4 100755 --- a/modules/default/weather/current.njk +++ b/modules/default/weather/current.njk @@ -81,7 +81,7 @@ {% endif %} {% else %}