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 %}
|
||||
<script id="__lang" type="application/json">
|
||||
{
|
||||
{% for key in [
|
||||
"clipboard.copy",
|
||||
"clipboard.copied",
|
||||
"search.language",
|
||||
"search.pipeline.stopwords",
|
||||
"search.pipeline.trimmer",
|
||||
"search.result.none",
|
||||
"search.result.one",
|
||||
"search.result.other",
|
||||
"search.tokenizer"
|
||||
] -%}
|
||||
"{{ key }}": "{{ lang.t(key) }}"{{ "," if not loop.last }}
|
||||
{% endfor %}
|
||||
}
|
||||
{%- set translations = {} -%}
|
||||
{%- for key in [
|
||||
"clipboard.copy",
|
||||
"clipboard.copied",
|
||||
"search.language",
|
||||
"search.pipeline.stopwords",
|
||||
"search.pipeline.trimmer",
|
||||
"search.result.none",
|
||||
"search.result.one",
|
||||
"search.result.other",
|
||||
"search.tokenizer"
|
||||
] -%}
|
||||
{%- set _ = translations.update({ key: lang.t(key) }) -%}
|
||||
{%- endfor -%}
|
||||
{{ translations | tojson }}
|
||||
</script>
|
||||
<script>app({version:"{{ mkdocs_version }}",url:{base:"{{ base_url }}"}})</script>
|
||||
{% for path in config["extra_javascript"] %}
|
||||
|
@ -402,21 +402,21 @@
|
||||
|
||||
<!-- Translations -->
|
||||
<script id="__lang" type="application/json">
|
||||
{
|
||||
{% for key in [
|
||||
"clipboard.copy",
|
||||
"clipboard.copied",
|
||||
"search.language",
|
||||
"search.pipeline.stopwords",
|
||||
"search.pipeline.trimmer",
|
||||
"search.result.none",
|
||||
"search.result.one",
|
||||
"search.result.other",
|
||||
"search.tokenizer"
|
||||
] -%}
|
||||
"{{ key }}": "{{ lang.t(key) }}"{{ "," if not loop.last }}
|
||||
{% endfor %}
|
||||
}
|
||||
{%- set translations = {} -%}
|
||||
{%- for key in [
|
||||
"clipboard.copy",
|
||||
"clipboard.copied",
|
||||
"search.language",
|
||||
"search.pipeline.stopwords",
|
||||
"search.pipeline.trimmer",
|
||||
"search.result.none",
|
||||
"search.result.one",
|
||||
"search.result.other",
|
||||
"search.tokenizer"
|
||||
] -%}
|
||||
{%- set _ = translations.update({ key: lang.t(key) }) -%}
|
||||
{%- endfor -%}
|
||||
{{ translations | tojson }}
|
||||
</script>
|
||||
<script>
|
||||
app({
|
||||
|
Loading…
Reference in New Issue
Block a user