Fix: Translations
This commit is contained in:
@@ -46,16 +46,11 @@ style = "solid" # available style: solid, outline
|
||||
|
||||
[feedback]
|
||||
enable = true
|
||||
title = "Was dit artikel nuttig?"
|
||||
content = "Uw feedback verbeterd deze website."
|
||||
positive_placeholder = "Wat deden we goed?"
|
||||
negative_placeholder = "Wat deden we fout?"
|
||||
|
||||
# Crisp Chat
|
||||
[crisp_chat]
|
||||
crisp_website_id = "9aa449e1-9999-422a-938f-8567982eec6d" # replace this code with yours
|
||||
crisp_website_id = ""
|
||||
enable = false
|
||||
# Check this video tutorial to get your crisp website ID - https://www.youtube.com/watch?v=nW5UX6iVdFc
|
||||
|
||||
# seo meta data for OpenGraph / Twitter Card
|
||||
[metadata]
|
||||
@@ -103,11 +98,11 @@ expire_days = 2
|
||||
############################# social site ########################
|
||||
|
||||
[[social]]
|
||||
icon = "fab fa-github" # fontawesome icon : https://fontawesome.com/icons
|
||||
icon = "fab fa-github"
|
||||
link = ""
|
||||
title = "github"
|
||||
|
||||
[[social]]
|
||||
icon = "fab fa-linkedin" # fontawesome icon : https://fontawesome.com/icons
|
||||
icon = "fab fa-linkedin"
|
||||
link = ""
|
||||
title = "linkedin"
|
||||
|
||||
13
i18n/en.yaml
13
i18n/en.yaml
@@ -70,6 +70,19 @@
|
||||
- id: option_project
|
||||
translation: Project
|
||||
|
||||
# Forms
|
||||
- id: feedback_title
|
||||
translation: Was this article helpful?
|
||||
|
||||
- id: feedback_content
|
||||
translation: Your feedback improves the website for other visitors.
|
||||
|
||||
- id: feedback_positive_placeholder
|
||||
translation: What was helpful about the article?
|
||||
|
||||
- id: feedback_negative_placeholder
|
||||
translation: How could we improve the article?
|
||||
|
||||
# Tooltips
|
||||
## Webserver
|
||||
- id: tooltip_bouwbesluit
|
||||
|
||||
13
i18n/nl.yaml
13
i18n/nl.yaml
@@ -70,6 +70,19 @@
|
||||
- id: option_project
|
||||
translation: Project
|
||||
|
||||
# Forms
|
||||
- id: feedback_title
|
||||
translation: Was dit artikel nuttig?
|
||||
|
||||
- id: feedback_content
|
||||
translation: Uw feedback verbeterd de site voor andere bezoekers.
|
||||
|
||||
- id: feedback_positive_placeholder
|
||||
translation: Wat vond u goed aan het artikel?
|
||||
|
||||
- id: feedback_negative_placeholder
|
||||
translation: Wat kunnen wij verbeteren?
|
||||
|
||||
# Tooltips
|
||||
## Webserver
|
||||
- id: tooltip_bouwbesluit
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
{{ with site.Params.feedback }}
|
||||
<div class="feedback row" id="feedback">
|
||||
<div class="col-md-8 col-lg-9">
|
||||
<h4 class="fw-bold">{{ .title | markdownify }}</h4>
|
||||
<p>{{ .content | markdownify }}</p>
|
||||
<h4 class="fw-bold">{{ i18n "feedback_title" }}</h4>
|
||||
<p>{{ i18n "feedback_content" | markdownify }}</p>
|
||||
</div>
|
||||
<div class="col-md-4 col-lg-3 mt-2 mb-4 mb-md-0 text-md-end">
|
||||
<button class="feedback-btn collapsed positive" type="button" data-bs-toggle="collapse" data-bs-target="#positive"
|
||||
@@ -22,7 +22,7 @@
|
||||
<input type="text" name="feedback" id="feedback" value="Positive" hidden>
|
||||
<input type="text" name="URL" id="URL" value="{{.Permalink}}" hidden>
|
||||
<textarea name="comments" id="comments" class="form-control mb-4"
|
||||
placeholder="{{ .positive_placeholder }}" required></textarea>
|
||||
placeholder="{{ i18n "feedback_positive_placeholder" }}" required></textarea>
|
||||
<button type="submit" class="btn btn-primary">{{ i18n "send_feedback" }}</button>
|
||||
</form>
|
||||
</div>
|
||||
@@ -32,7 +32,7 @@
|
||||
<input type="text" name="feedback" id="feedback" value="Negative" hidden>
|
||||
<input type="text" name="URL" id="URL" value="{{.Permalink}}" hidden>
|
||||
<textarea name="comments" id="comments" class="form-control mb-4"
|
||||
placeholder="{{ .negative_placeholder }}" required></textarea>
|
||||
placeholder="{{ i18n "feedback_negative_placeholder" }}" required></textarea>
|
||||
<button type="submit" class="btn btn-primary">{{ i18n "send_feedback" }}</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user