mkdocs-material/.github/ISSUE_TEMPLATE/04-add-translations.yml

110 lines
4.6 KiB
YAML
Raw Normal View History

2023-01-29 22:18:49 +03:00
name: Add a translation
2023-01-29 22:52:00 +03:00
description: Missing support for your language? Add a translation
title: Add translations for ...
2023-01-29 22:18:49 +03:00
labels:
2023-01-30 01:04:28 +03:00
- change request
body:
2023-01-29 22:52:00 +03:00
- type: markdown
2021-06-29 12:06:39 +03:00
attributes:
2023-04-04 15:58:40 +03:00
value: |-
**Important**: Before creating a new translation, please check if
Material for MkDocs already supports your language. Review the list of
[available languages](https://squidfunk.github.io/mkdocs-material/setup/changing-the-language/#site-language),
pick your language to add new or improve existing translations.
2023-01-29 22:52:00 +03:00
2021-06-29 12:06:39 +03:00
- 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
2023-04-04 15:58:40 +03:00
description: >-
Please translate the labels on the right. For new languages, translate
each line. For existing languages, only translate lines containing the
icon :arrow_left: and remove the icon before submitting.
[More](https://squidfunk.github.io/mkdocs-material/contributing/adding-a-translation/#translations)
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",
2023-05-20 11:34:59 +03:00
"blog.archive": "Archive",
"blog.categories": "Categories",
"blog.categories.in": "in",
"blog.continue": "Continue reading",
"blog.draft": "Draft",
"blog.index": "Back to index",
"blog.meta": "Metadata",
"blog.references": "Related links",
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",
2023-05-20 11:34:59 +03:00
"readtime.one": "1 min read",
"readtime.other": "# min read",
"rss.created": "RSS feed",
"rss.updated": "RSS feed of updated content",
2022-11-12 17:17:52 +03:00
"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",
2023-05-20 11:34:59 +03:00
"source.file.contributors": "Contributors",
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
2023-01-29 22:54:24 +03:00
2023-09-21 16:19:31 +03:00
- type: input
2023-04-04 15:58:40 +03:00
id: country-flag
attributes:
label: Country flag icon
description: >-
Please add the flag of the country when adding a new language. Select
it on our [Icons, Emojis site](https://squidfunk.github.io/mkdocs-material/reference/icons-emojis/#search)
by entering `flag` in the search field. If your flag is not provided by
Twemoji, please choose the closest matching flag.
[More](https://squidfunk.github.io/mkdocs-material/contributing/adding-a-translation/#country-flag)
placeholder: |-
Post the flag of the country here.
2023-01-29 22:54:24 +03:00
- type: checkboxes
id: checklist
attributes:
label: Before submitting
description: >-
2023-04-04 15:58:40 +03:00
Please ensure that your translation fulfills the following requirements.
2023-01-29 22:54:24 +03:00
options:
2023-01-30 01:04:28 +03:00
- label: I've checked the list of [available languages](https://squidfunk.github.io/mkdocs-material/setup/changing-the-language/#site-language) for existing translations.
2023-01-29 22:54:24 +03:00
required: true
2023-04-11 15:30:56 +03:00
- label: I assure that the translations are accurate to the best of my knowledge.
2023-01-29 22:54:24 +03:00
required: true
2023-01-30 16:10:43 +03:00
- label: >-
__Optional__: I want to integrate this translation myself and create a
pull request following the [contribution guide](https://github.com/squidfunk/mkdocs-material/blob/master/CONTRIBUTING.md).