Browse Source

Add multi-languages support

master
albakham 5 months ago
parent
commit
ca4ecbb9a6
3 changed files with 4 additions and 4 deletions
  1. 1
    1
      author.hbs
  2. 1
    1
      default.hbs
  3. 2
    2
      subscribe.hbs

+ 1
- 1
author.hbs View File

@@ -21,7 +21,7 @@
<div class="author-location">{{location}} <span class="bull">&bull;</span></div>
{{/if}}
<div class="author-stats">
{{plural ../pagination.total empty='No posts' singular='% post' plural='% posts'}} <span class="bull">&bull;</span>
{{plural ../pagination.total empty=(t "No posts") singular=(t "1 post") plural=(t "% posts")}}
</div>
{{#if website}}
<a class="social-link social-link-wb" href="{{website}}" target="_blank" rel="noopener">{{> "icons/website"}}</a>

+ 1
- 1
default.hbs View File

@@ -46,7 +46,7 @@
{{#if @site.logo}}
<img class="subscribe-overlay-logo" src="{{@site.logo}}" alt="{{@site.title}}" />
{{/if}}
<h1 class="subscribe-overlay-title">{{t "Subscribe to {{@site.title}}"}}</h1>
<h1 class="subscribe-overlay-title">{{t "Subscribe to {sitetitle}" sitetitle=@site.title}}</h1>
<p class="subscribe-overlay-description">{{t "Stay up to date! Get all the latest &amp; greatest posts delivered straight to your inbox"}}</p>
{{subscribe_form placeholder="youremail@example.com"}}
</div>

+ 2
- 2
subscribe.hbs View File

@@ -46,7 +46,7 @@
<section class="gh-flow-content">
{{^if success}}
<header>
<h1>{{t "Subscribe to {{@site.title}}"}}</h1>
<h1>{{t "Subscribe to {sitetitle}" sitetitle=@site.title}}</h1>
</header>

{{subscribe_form
@@ -62,7 +62,7 @@
</header>

<p>
{{t "You've successfully subscribed to"}} <em>{{@site.title}}</em>
{{t "You've successfully subscribed to"}}<em> {{@site.title}</em>
{{t "with the email address"}} <em>{{email}}</em>.
</p>
{{/if}}

Loading…
Cancel
Save