Updated translation template

This commit is contained in:
squidfunk
2023-01-28 19:05:12 +01:00
parent 7bc42b9a60
commit 663b39fb10

View File

@@ -17,8 +17,9 @@ body:
- label: I've checked the [list of available languages](https://bit.ly/33vFDD0) - label: I've checked the [list of available languages](https://bit.ly/33vFDD0)
required: true required: true
- type: textarea - type: textarea
id: translations
attributes: attributes:
label: Translation label: Translations
description: Please translate the labels on the right, e.g. "Copy to clipboard", etc. description: Please translate the labels on the right, e.g. "Copy to clipboard", etc.
value: |- value: |-
{% macro t(key) %}{{ { {% macro t(key) %}{{ {
@@ -61,6 +62,6 @@ body:
"toc": "Table of contents", "toc": "Table of contents",
"top": "Back to top" "top": "Back to top"
}[key] }}{% endmacro %} }[key] }}{% endmacro %}
render: jinja render: Jinja
validations: validations:
required: true required: true