mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed L10N JSON format
This commit is contained in:
parent
b5ad4ac339
commit
e1cab27714
@ -203,21 +203,21 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<script id="__lang" type="application/json">
|
<script id="__lang" type="application/json">
|
||||||
{
|
{%- set translations = {} -%}
|
||||||
{% for key in [
|
{%- for key in [
|
||||||
"clipboard.copy",
|
"clipboard.copy",
|
||||||
"clipboard.copied",
|
"clipboard.copied",
|
||||||
"search.language",
|
"search.language",
|
||||||
"search.pipeline.stopwords",
|
"search.pipeline.stopwords",
|
||||||
"search.pipeline.trimmer",
|
"search.pipeline.trimmer",
|
||||||
"search.result.none",
|
"search.result.none",
|
||||||
"search.result.one",
|
"search.result.one",
|
||||||
"search.result.other",
|
"search.result.other",
|
||||||
"search.tokenizer"
|
"search.tokenizer"
|
||||||
] -%}
|
] -%}
|
||||||
"{{ key }}": "{{ lang.t(key) }}"{{ "," if not loop.last }}
|
{%- set _ = translations.update({ key: lang.t(key) }) -%}
|
||||||
{% endfor %}
|
{%- endfor -%}
|
||||||
}
|
{{ translations | tojson }}
|
||||||
</script>
|
</script>
|
||||||
<script>app({version:"{{ mkdocs_version }}",url:{base:"{{ base_url }}"}})</script>
|
<script>app({version:"{{ mkdocs_version }}",url:{base:"{{ base_url }}"}})</script>
|
||||||
{% for path in config["extra_javascript"] %}
|
{% for path in config["extra_javascript"] %}
|
||||||
|
@ -402,21 +402,21 @@
|
|||||||
|
|
||||||
<!-- Translations -->
|
<!-- Translations -->
|
||||||
<script id="__lang" type="application/json">
|
<script id="__lang" type="application/json">
|
||||||
{
|
{%- set translations = {} -%}
|
||||||
{% for key in [
|
{%- for key in [
|
||||||
"clipboard.copy",
|
"clipboard.copy",
|
||||||
"clipboard.copied",
|
"clipboard.copied",
|
||||||
"search.language",
|
"search.language",
|
||||||
"search.pipeline.stopwords",
|
"search.pipeline.stopwords",
|
||||||
"search.pipeline.trimmer",
|
"search.pipeline.trimmer",
|
||||||
"search.result.none",
|
"search.result.none",
|
||||||
"search.result.one",
|
"search.result.one",
|
||||||
"search.result.other",
|
"search.result.other",
|
||||||
"search.tokenizer"
|
"search.tokenizer"
|
||||||
] -%}
|
] -%}
|
||||||
"{{ key }}": "{{ lang.t(key) }}"{{ "," if not loop.last }}
|
{%- set _ = translations.update({ key: lang.t(key) }) -%}
|
||||||
{% endfor %}
|
{%- endfor -%}
|
||||||
}
|
{{ translations | tojson }}
|
||||||
</script>
|
</script>
|
||||||
<script>
|
<script>
|
||||||
app({
|
app({
|
||||||
|
Loading…
Reference in New Issue
Block a user