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,8 +203,8 @@
|
|||||||
{% 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",
|
||||||
@ -215,9 +215,9 @@
|
|||||||
"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,8 +402,8 @@
|
|||||||
|
|
||||||
<!-- 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",
|
||||||
@ -414,9 +414,9 @@
|
|||||||
"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