mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Polished issue template
This commit is contained in:
parent
eb84c6957c
commit
49488ef118
40
.github/ISSUE_TEMPLATE/translate.yml
vendored
40
.github/ISSUE_TEMPLATE/translate.yml
vendored
@ -1,17 +1,26 @@
|
||||
name: Translate
|
||||
description: 'Help translate Material into more languages'
|
||||
title: 'New translation: {Insert language}'
|
||||
labels: [enhancement]
|
||||
description: Add localization for a new language
|
||||
title: 'New language: {replace with language name}'
|
||||
body:
|
||||
- type: markdown
|
||||
- type: checkboxes
|
||||
attributes:
|
||||
label: Contribution guidelines
|
||||
description: Please read the contribution guidelines before proceeding.
|
||||
options:
|
||||
- label: I've read the [contribution guidelines](https://github.com/squidfunk/mkdocs-material/blob/master/CONTRIBUTING.md) and wholeheartedly agree
|
||||
required: true
|
||||
- type: checkboxes
|
||||
attributes:
|
||||
label: Language availability
|
||||
description: Please ensure that the language you're adding isn't already available
|
||||
options:
|
||||
- label: I've checked the [list of available languages](https://bit.ly/33vFDD0)
|
||||
required: true
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Translation
|
||||
description: Please translate the labels on the right, e.h. "Copy to clipboard", etc.
|
||||
value: |-
|
||||
## Instructions
|
||||
|
||||
1. Check, if your language is already available: [here](https://bit.ly/33vFDD0)
|
||||
2. If it isn't, please translate the labels on the right:
|
||||
|
||||
```jinja
|
||||
{% macro t(key) %}{{ {
|
||||
"language": "en",
|
||||
"direction": "ltr",
|
||||
@ -48,17 +57,6 @@ body:
|
||||
"toc.title": "Table of contents",
|
||||
"top.title": "Back to top"
|
||||
}[key] }}{% endmacro %}
|
||||
```
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Translation
|
||||
description: Put your translated file here. The text is automatically formatted as Jinja code
|
||||
placeholder: |-
|
||||
{% macro t(key) %}{{ {
|
||||
"language": "en",
|
||||
"direction": "ltr",
|
||||
...
|
||||
}[key] }}{% endmacro %}
|
||||
render: jinja
|
||||
validations:
|
||||
required: true
|
||||
|
Loading…
Reference in New Issue
Block a user