Implemented i18n on newsletter

This commit is contained in:
Hugo Martin 2020-08-04 21:01:10 +02:00 committed by Emruz Hossain
parent 1918fbc3fb
commit 38897e8d65
3 changed files with 30 additions and 6 deletions

View file

@ -15,4 +15,16 @@ other = "I am a Developer;I am a Devops;I love servers;I work on open-source pro
other = "Navigation"
[contact_me]
other = "Contact me:"
other = "Contact me:"
[newsletter_text]
other = "Stay up to date with email notification"
[newsletter_input]
other = "Enter email"
[newsletter_warning]
other = "We'll never share your email with anyone else."
[submit]
other = "Submit"

View file

@ -15,4 +15,16 @@ other = "Je bidouille;Bref je code" # Split each quote with a ';'
other = "Naviguation"
[contact_me]
other = "Contactez moi :"
other = "Contactez moi :"
[newsletter_text]
other = "Restez à jour par e-mail"
[newsletter_input]
other = "Entrez une adresse e-mail"
[newsletter_warning]
other = "Nous ne partagerons jamais votre courriel avec quelqu'un d'autre."
[submit]
other = "Envoyer"

View file

@ -27,7 +27,7 @@
{{ if .Site.Params.newsletter.enable }}
<div class="col-md-4 col-sm-12">
<!-- <h5>Newsletter</h5> -->
<p>Stay up to date with email notification</p>
<p>{{ i18n "newsletter_text" }}</p>
<form>
<div class="form-group">
<input
@ -35,13 +35,13 @@
class="form-control"
id="exampleInputEmail1"
aria-describedby="emailHelp"
placeholder="Enter email"
placeholder="{{ i18n "newsletter_input" }}"
/>
<small id="emailHelp" class="form-text text-muted"
>We'll never share your email with anyone else.</small
>{{ i18n "newsletter_warning" }}</small
>
</div>
<button type="submit" class="btn btn-info">Submit</button>
<button type="submit" class="btn btn-info">{{ i18n "submit" }}</button>
</form>
</div>
{{ end }}