Implemented i18n on newsletter
This commit is contained in:
parent
1918fbc3fb
commit
38897e8d65
3 changed files with 30 additions and 6 deletions
12
i18n/en.toml
12
i18n/en.toml
|
@ -16,3 +16,15 @@ other = "Navigation"
|
||||||
|
|
||||||
[contact_me]
|
[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"
|
12
i18n/fr.toml
12
i18n/fr.toml
|
@ -16,3 +16,15 @@ other = "Naviguation"
|
||||||
|
|
||||||
[contact_me]
|
[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"
|
|
@ -27,7 +27,7 @@
|
||||||
{{ if .Site.Params.newsletter.enable }}
|
{{ if .Site.Params.newsletter.enable }}
|
||||||
<div class="col-md-4 col-sm-12">
|
<div class="col-md-4 col-sm-12">
|
||||||
<!-- <h5>Newsletter</h5> -->
|
<!-- <h5>Newsletter</h5> -->
|
||||||
<p>Stay up to date with email notification</p>
|
<p>{{ i18n "newsletter_text" }}</p>
|
||||||
<form>
|
<form>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<input
|
<input
|
||||||
|
@ -35,13 +35,13 @@
|
||||||
class="form-control"
|
class="form-control"
|
||||||
id="exampleInputEmail1"
|
id="exampleInputEmail1"
|
||||||
aria-describedby="emailHelp"
|
aria-describedby="emailHelp"
|
||||||
placeholder="Enter email"
|
placeholder="{{ i18n "newsletter_input" }}"
|
||||||
/>
|
/>
|
||||||
<small id="emailHelp" class="form-text text-muted"
|
<small id="emailHelp" class="form-text text-muted"
|
||||||
>We'll never share your email with anyone else.</small
|
>{{ i18n "newsletter_warning" }}</small
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
<button type="submit" class="btn btn-info">Submit</button>
|
<button type="submit" class="btn btn-info">{{ i18n "submit" }}</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue