|
23 | 23 | class="newsletter-form-button" |
24 | 24 | style="justify-content: {% if include.left %}flex-start{% elsif include.right %}flex-end{% else %}center{% endif %}" |
25 | 25 | > |
26 | | - subscribe |
| 26 | + {{ site.data[site.active_lang].strings.newsletter.subscribe }} |
27 | 27 | </button> |
28 | 28 |
|
29 | 29 | <button |
30 | 30 | type="button" |
31 | 31 | class="newsletter-loading-button" |
32 | 32 | style="justify-content: {% if include.left %}flex-start{% elsif include.right %}flex-end{% else %}center{% endif %}" |
33 | 33 | > |
34 | | - Please wait... |
| 34 | + {{ site.data[site.active_lang].strings.newsletter.wait }} |
35 | 35 | </button> |
36 | 36 | </form> |
37 | 37 |
|
38 | 38 | <div |
39 | 39 | class="newsletter-success" |
40 | 40 | style="justify-content: {% if include.left %}flex-start{% elsif include.right %}flex-end{% else %}center{% endif %}" |
41 | 41 | > |
42 | | - <p class="newsletter-success-message">You're subscribed!</p> |
| 42 | + <p class="newsletter-success-message">{{ site.data[site.active_lang].strings.newsletter.subscribed }}</p> |
43 | 43 | </div> |
44 | 44 |
|
45 | 45 | <div |
46 | 46 | class="newsletter-error" |
47 | 47 | style="justify-content: {% if include.left %}flex-start{% elsif include.right %}flex-end{% else %}center{% endif %}" |
48 | 48 | > |
49 | | - <p class="newsletter-error-message">Oops! Something went wrong, please try again</p> |
| 49 | + <p class="newsletter-error-message">{{ site.data[site.active_lang].strings.newsletter.error }}</p> |
50 | 50 | </div> |
51 | 51 |
|
52 | 52 | <button |
|
55 | 55 | onmouseout='this.style.textDecoration="none"' |
56 | 56 | onmouseover='this.style.textDecoration="underline"' |
57 | 57 | > |
58 | | - ← Back |
| 58 | + ← {{ site.data[site.active_lang].strings.newsletter.back }} |
59 | 59 | </button> |
60 | 60 | </div> |
61 | 61 |
|
|
74 | 74 |
|
75 | 75 | const rateLimit = () => { |
76 | 76 | errorContainer.style.display = 'flex'; |
77 | | - errorMessage.innerText = 'Too many signups, please try again in a little while'; |
| 77 | + errorMessage.innerText = '{{ site.data[site.active_lang].strings.newsletter.too_many_signups }}'; |
78 | 78 | submitButton.style.display = 'none'; |
79 | 79 | formInput.style.display = 'none'; |
80 | 80 | backButton.style.display = 'block'; |
|
149 | 149 |
|
150 | 150 | success.style.display = 'none'; |
151 | 151 | errorContainer.style.display = 'none'; |
152 | | - errorMessage.innerText = 'Oops! Something went wrong, please try again'; |
| 152 | + errorMessage.innerText = '{{ site.data[site.active_lang].strings.newsletter.error }}'; |
153 | 153 | backButton.style.display = 'none'; |
154 | 154 | formInput.style.display = 'flex'; |
155 | 155 | submitButton.style.display = 'flex'; |
|
0 commit comments