Add explanation to issue, move file

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2023-10-05 15:17:50 +02:00
parent 8f39698462
commit f2cec60927
No known key found for this signature in database
GPG Key ID: D91C3E91E4CAD6F5
3 changed files with 23 additions and 21 deletions

View File

@ -1,20 +0,0 @@
---
title: Missing Translations
---
> As a developer I want my application to have correct translations in all available languages and not to have them to experience mixed translations in their native language and English.
In order to achieve this we need to fix the following missing translations:
{{ range $lang, $translation := .Translations -}}
{{ if MissingTranslations $lang -}}
### Language: `{{ $lang }}`
Please add the following translations:
{{ range MissingTranslations $lang }}
- `{{ . }}`
> {{ English . }}
{{ end }}
_{{ Ping $lang }}_
{{ end -}}
{{ end -}}

22
ci/translate/issue.tpl.md Normal file
View File

@ -0,0 +1,22 @@
---
title: Missing Translations
---
> As a developer I want my application to have correct translations in all available languages and not to have them to experience mixed translations in their native language and English.
**In order to achieve this we need to fix the following missing translations.**
To do so please either **create a pull-request** updating the `i18n.yaml` in the root of the repository and add the missing translations to the corresponding language or **just leave a comment** below and ping @Luzifer in your comment. He then will integrate the new translation strings and mark your comment hidden after this issue has been automatically updated (kind of a to-do list for translations until we have something better in place).
{{ range $lang, $translation := .Translations -}}
{{ if MissingTranslations $lang -}}
### Language: `{{ $lang }}`
Please add the following translations:
{{ range MissingTranslations $lang }}
- `{{ . }}`
> {{ English . }}
{{ end }}
_{{ Ping $lang }}_
{{ end -}}
{{ end -}}

View File

@ -10,7 +10,7 @@ import (
"github.com/pkg/errors"
)
//go:embed issue.tpl
//go:embed issue.tpl.md
var issueTemplate string
func generateIssue(tf translationFile) error {