Skip to content

Commit

Permalink
Feedback questions: add localization (google#1615)
Browse files Browse the repository at this point in the history
  • Loading branch information
deining committed Jul 27, 2023
1 parent b725210 commit ab1f1d0
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 5 deletions.
10 changes: 10 additions & 0 deletions i18n/de.toml
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,13 @@ 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_title]
other = "Rückmeldung"
[feedback_question]
other = "War diese Seite hilfreich?"
[feedback_positive]
other = "Ja"
[feedback_negative]
other = "Nein"
11 changes: 10 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,13 @@ 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_title]
other = "Feedback"
[feedback_question]
other = "Was this page helpful?"
[feedback_positive]
other = "Yes"
[feedback_negative]
other = "No"
8 changes: 4 additions & 4 deletions layouts/partials/feedback.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
}
</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>
<h2 class="feedback--title">{{- i18n "feedback_title" -}}</h2>
<p class="feedback--question">{{- i18n "feedback_question" -}}</p>
<button class="btn btn-primary mb-4 feedback--answer feedback--answer-yes">{{- i18n "feedback_positive" -}}</button>
<button class="btn btn-primary mb-4 feedback--answer feedback--answer-no">{{- i18n "feedback_negative" -}}</button>
<p class="feedback--response feedback--response-yes">
{{ .yes | safeHTML }}
</p>
Expand Down

0 comments on commit ab1f1d0

Please sign in to comment.