mkdocs-material/.github/ISSUE_TEMPLATE/04-add-a-translation.yml

71 lines
2.7 KiB
YAML
Raw Normal View History

2023-01-29 22:18:49 +03:00
name: Add a translation
2021-06-29 12:06:39 +03:00
description: Add localization for a new language
title: 'New language: {replace with language name}'
2023-01-29 22:18:49 +03:00
labels:
- enhancement
body:
2021-06-29 12:06:39 +03:00
- 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
2021-06-29 12:09:12 +03:00
description: Please ensure that the language you're adding isn't already available.
2021-06-29 12:06:39 +03:00
options:
- label: I've checked the [list of available languages](https://bit.ly/33vFDD0)
required: true
- type: textarea
2023-01-28 21:05:12 +03:00
id: translations
2021-06-29 12:06:39 +03:00
attributes:
2023-01-28 21:05:12 +03:00
label: Translations
2021-06-29 12:09:12 +03:00
description: Please translate the labels on the right, e.g. "Copy to clipboard", etc.
2021-06-29 12:06:39 +03:00
value: |-
{% macro t(key) %}{{ {
"language": "en",
"direction": "ltr",
2022-12-11 20:32:22 +03:00
"action.edit": "Edit this page",
"action.skip": "Skip to content",
"action.view": "View source of this page",
2022-11-12 17:17:52 +03:00
"announce.dismiss": "Don't show this again",
2021-06-29 12:06:39 +03:00
"clipboard.copy": "Copy to clipboard",
"clipboard.copied": "Copied to clipboard",
2022-11-12 17:17:52 +03:00
"consent.accept": "Accept",
"consent.manage": "Manage settings",
"consent.reject": "Reject",
"footer": "Footer",
2021-06-29 12:06:39 +03:00
"footer.next": "Next",
2022-11-12 17:17:52 +03:00
"footer.previous": "Previous",
"header": "Header",
2021-06-29 12:06:39 +03:00
"meta.comments": "Comments",
"meta.source": "Source",
2022-11-12 17:17:52 +03:00
"nav": "Navigation",
"search": "Search",
2021-06-29 12:06:39 +03:00
"search.placeholder": "Search",
2022-04-24 13:38:52 +03:00
"search.share": "Share",
2021-06-29 12:06:39 +03:00
"search.reset": "Clear",
"search.result.initializer": "Initializing search",
"search.result.placeholder": "Type to start searching",
"search.result.none": "No matching documents",
"search.result.one": "1 matching document",
"search.result.other": "# matching documents",
"search.result.more.one": "1 more on this page",
"search.result.more.other": "# more on this page",
"search.result.term.missing": "Missing",
2022-11-12 17:17:52 +03:00
"select.language": "Select language",
"select.version": "Select version",
2022-12-11 20:32:22 +03:00
"source": "Go to repository",
2021-06-29 12:06:39 +03:00
"source.file.date.created": "Created",
2022-11-12 17:17:52 +03:00
"source.file.date.updated": "Last update",
"tabs": "Tabs",
"toc": "Table of contents",
"top": "Back to top"
2021-06-29 12:06:39 +03:00
}[key] }}{% endmacro %}
2023-01-28 21:05:12 +03:00
render: Jinja
2021-06-29 12:06:39 +03:00
validations:
required: true