mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 19:53:36 +00:00
Merge pull request #2427 from dannoh/Issue-TranslateEncodedHtml
Issue translate encoded html
This commit is contained in:
commit
01ff00fa31
@ -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
|
||||
|
||||
|
@ -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;
|
||||
|
@ -81,7 +81,7 @@
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<div class="dimmed light small">
|
||||
{{ "LOADING" | translate | safe }}
|
||||
{{ "LOADING" | translate }}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
|
@ -35,7 +35,7 @@
|
||||
</table>
|
||||
{% else %}
|
||||
<div class="dimmed light small">
|
||||
{{ "LOADING" | translate | safe }}
|
||||
{{ "LOADING" | translate }}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
|
@ -24,7 +24,7 @@
|
||||
</table>
|
||||
{% else %}
|
||||
<div class="dimmed light small">
|
||||
{{ "LOADING" | translate | safe }}
|
||||
{{ "LOADING" | translate }}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user