diff --git a/material/base.html b/material/base.html
index 2b193c079..de8398db4 100644
--- a/material/base.html
+++ b/material/base.html
@@ -31,7 +31,7 @@
{% endif %}
-
+
{% endblock %}
{% block htmltitle %}
{% if page and page.meta and page.meta.title %}
@@ -191,22 +191,22 @@
{% block scripts %}
+ {%- set translations = {} -%}
+ {%- for key in [
+ "clipboard.copy",
+ "clipboard.copied",
+ "search.language",
+ "search.pipeline.stopwords",
+ "search.pipeline.trimmer",
+ "search.result.placeholder",
+ "search.result.none",
+ "search.result.one",
+ "search.result.other",
+ "search.tokenizer"
+ ] -%}
+ {%- set _ = translations.update({ key: lang.t(key) }) -%}
+ {%- endfor -%}
diff --git a/package.json b/package.json
index 72073cffc..77d0ee352 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "mkdocs-material",
- "version": "5.0.0b2",
+ "version": "5.0.0b2-1",
"description": "A Material Design theme for MkDocs",
"keywords": [
"mkdocs",
diff --git a/src/base.html b/src/base.html
index 24103f459..e7ff68377 100644
--- a/src/base.html
+++ b/src/base.html
@@ -375,22 +375,22 @@
+ {%- set translations = {} -%}
+ {%- for key in [
+ "clipboard.copy",
+ "clipboard.copied",
+ "search.language",
+ "search.pipeline.stopwords",
+ "search.pipeline.trimmer",
+ "search.result.placeholder",
+ "search.result.none",
+ "search.result.one",
+ "search.result.other",
+ "search.tokenizer"
+ ] -%}
+ {%- set _ = translations.update({ key: lang.t(key) }) -%}
+ {%- endfor -%}
@@ -402,7 +402,7 @@
search: "{{ 'assets/javascripts/worker/search.js' | url }}"
},
feature: {
- instant: {{ feature.instant | tojson }}
+ instant: {{ "true" if feature and feature.instant else "false" }}
}
});