Skip to content

Commit

Permalink
Feedback questions: add localization
Browse files Browse the repository at this point in the history
  • Loading branch information
deining authored and chalin committed Jul 27, 2023
1 parent 0b20474 commit 13f1bb3
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
8 changes: 8 additions & 0 deletions i18n/de.toml
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,11 @@ other = "Wenn Du aktiv beteiligen und einen Beitrag zu {{ .Site.Title }} leisten
other = "Wie Du selbst zu {{ .Site.Title }} beitragen kannst, kannst Du nachlesen in unseren"
[community_guideline]
other = "Richtlinien für Beiträge"

# Feedback
[feedback_question]
other = "War diese Seite hilfreich?"
[feedback_positive]
other = "Ja"
[feedback_negative]
other = "Nein"
9 changes: 8 additions & 1 deletion i18n/en.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ other = "All Rights Reserved"
[footer_privacy_policy]
other = "Privacy Policy"


# Post (blog, articles etc.)
[post_byline_by]
other = "By"
Expand Down Expand Up @@ -79,3 +78,11 @@ other = "If you want to get more involved by contributing to {{ .Site.Title }},
other = "You can find out how to contribute to {{ .Site.Title }} in our"
[community_guideline]
other = "Contribution Guidelines"

# Feedback
[feedback_question]
other = "Was this page helpful?"
[feedback_positive]
other = "Yes"
[feedback_negative]
other = "No"
6 changes: 3 additions & 3 deletions layouts/partials/feedback.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
</style>
<div class="d-print-none">
<h2 class="feedback--title">Feedback</h2>
<p class="feedback--question">Was this page helpful?</p>
<button class="btn btn-primary mb-4 feedback--answer feedback--answer-yes">Yes</button>
<button class="btn btn-primary mb-4 feedback--answer feedback--answer-no">No</button>
<p class="feedback--question">{{- T "feedback_question" -}}</p>
<button class="btn btn-primary mb-4 feedback--answer feedback--answer-yes">{{- T "feedback_positive" -}}</button>
<button class="btn btn-primary mb-4 feedback--answer feedback--answer-no">{{- T "feedback_negative" -}}</button>
<p class="feedback--response feedback--response-yes">
{{ .yes | safeHTML }}
</p>
Expand Down

0 comments on commit 13f1bb3

Please sign in to comment.