Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add multilingual support for Ghost Dawn Theme #75

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions author.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@
{{#if facebook}}
<a class="share-link share-link-facebook author-social-item" href="https://www.facebook.com/{{facebook}}" target="_blank" rel="noopener noreferrer">
{{> "icons/facebook"}}
Facebook
{{t "Author.Social Media.Facebook"}}
</a>
{{/if}}
{{#if twitter}}
<a class="share-link share-link-twitter author-social-item" href="https://twitter.com/{{twitter}}" target="_blank" rel="noopener noreferrer">
{{> "icons/twitter"}}
Twitter
{{t "Author.Social Media.Twitter"}}
</a>
{{/if}}
</div>
Expand Down
10 changes: 5 additions & 5 deletions default.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@
<div class="gh-head-members">
{{#unless @member}}
{{#unless @site.members_invite_only}}
<a class="gh-head-link" href="#/portal/signin" data-portal="signin">Sign in</a>
<a class="gh-head-btn gh-btn gh-primary-btn" href="#/portal/signup" data-portal="signup">Subscribe</a>
<a class="gh-head-link" href="#/portal/signin" data-portal="signin">{{t "Navigation.Sign in"}}</a>
<a class="gh-head-btn gh-btn gh-primary-btn" href="#/portal/signup" data-portal="signup">{{t "Navigation.Subscribe"}}</a>
{{else}}
<a class="gh-head-btn gh-btn gh-primary-btn" href="#/portal/signin" data-portal="signin">Sign in</a>
<a class="gh-head-btn gh-btn gh-primary-btn" href="#/portal/signin" data-portal="signin">{{t "Navigation.Sign in"}}</a>
{{/unless}}
{{else}}
<a class="gh-head-btn gh-btn gh-primary-btn" href="#/portal/account" data-portal="account">Account</a>
<a class="gh-head-btn gh-btn gh-primary-btn" href="#/portal/account" data-portal="account">{{t "Navigation.Account"}}</a>
{{/unless}}
</div>
{{/unless}}
Expand Down Expand Up @@ -88,7 +88,7 @@
</nav>
{{/if}}
<div class="gh-powered-by">
<a href="https://ghost.org/" target="_blank" rel="noopener">Powered by Ghost</a>
<a href="https://ghost.org/" target="_blank" rel="noopener">{{t "Footer.Powered by Ghost"}}</a>
</div>
</div>
</footer>
Expand Down
25 changes: 25 additions & 0 deletions locales/de.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"Navigation.Sign in": "Anmelden",
"Navigation.Subscribe": "Abonnieren",
"Navigation.Account": "Konto",
"Navigation.Login": "Anmelden",
"Footer.Powered by Ghost": "Powered by Ghost",
"Cover.Subscribe now": "Jetzt abonnieren",
"Cover.Login": "Anmelden",
"Post.Published by": "Veröffentlicht von",
"Post.Previous post": "Vorheriger Beitrag",
"Post.Next post": "Nächster Beitrag",
"Post.Related posts": "Das könnte Sie auch interessieren...",
"Author.Location": "Standort",
"Author.Website": "Webseite",
"Author.Social Media.Facebook": "Facebook",
"Author.Social Media.Twitter": "Twitter",
"Content.Visibility.Paid": "Dieser Beitrag ist nur für zahlende Abonnenten",
"Content.Visibility.Members": "Dieser Beitrag ist nur für Abonnenten",
"Content.Visibility.Filter": "Dieser Beitrag ist nur für Abonnenten der Stufe {{tiers}}",
"Content.CTA.Upgrade": "Jetzt upgraden",
"Content.CTA.Subscribe": "Jetzt abonnieren",
"Content.CTA.SignIn": "Bereits ein Konto? Anmelden",
"Comments.Member discussion": "Mitgliederdiskussion",
"Pagination.Load more": "Mehr laden"
}
25 changes: 25 additions & 0 deletions locales/en.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"Navigation.Sign in": "Sign in",
"Navigation.Subscribe": "Subscribe",
"Navigation.Account": "Account",
"Navigation.Login": "Login",
"Footer.Powered by Ghost": "Powered by Ghost",
"Cover.Subscribe now": "Subscribe now",
"Cover.Login": "Login",
"Post.Published by": "Published by",
"Post.Previous post": "Previous post",
"Post.Next post": "Next post",
"Post.Related posts": "You might also like...",
"Author.Location": "Location",
"Author.Website": "Website",
"Author.Social Media.Facebook": "Facebook",
"Author.Social Media.Twitter": "Twitter",
"Content.Visibility.Paid": "This post is for paying subscribers only",
"Content.Visibility.Members": "This post is for subscribers only",
"Content.Visibility.Filter": "This post is for subscribers on the {{tiers}} only",
"Content.CTA.Upgrade": "Upgrade now",
"Content.CTA.Subscribe": "Subscribe now",
"Content.CTA.SignIn": "Already have an account? Sign in",
"Comments.Member discussion": "Member discussion",
"Pagination.Load more": "Load more"
}
25 changes: 25 additions & 0 deletions locales/es.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"avigation.Sign in": "Iniciar sesión",
"Navigation.Subscribe": "Suscribirse",
"Navigation.Account": "Cuenta",
"Navigation.Login": "Iniciar sesión",
"Footer.Powered by Ghost": "Desarrollado por Ghost",
"Cover.Subscribe now": "Suscríbete ahora",
"Cover.Login": "Iniciar sesión",
"Post.Published by": "Publicado por",
"Post.Previous post": "Publicación anterior",
"Post.Next post": "Siguiente publicación",
"Post.Related posts": "También te puede interesar...",
"Author.Location": "Ubicación",
"Author.Website": "Sitio web",
"Author.Social Media.Facebook": "Facebook",
"Author.Social Media.Twitter": "Twitter",
"Content.Visibility.Paid": "Esta publicación es solo para suscriptores de pago",
"Content.Visibility.Members": "Esta publicación es solo para suscriptores",
"Content.Visibility.Filter": "Esta publicación es solo para suscriptores del nivel {{tiers}}",
"Content.CTA.Upgrade": "Actualizar ahora",
"Content.CTA.Subscribe": "Suscríbete ahora",
"Content.CTA.SignIn": "¿Ya tienes una cuenta? Inicia sesión",
"Comments.Member discussion": "Discusión de miembros",
"Pagination.Load more": "Cargar más"
}
25 changes: 25 additions & 0 deletions locales/fi.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"Navigation.Sign in: "Kirjaudu sisään",
"Navigation.Subscribe": "Tilaa",
"Navigation.Account": "Tili",
"Navigation.Login": "Kirjaudu",
"Footer.Powered by Ghost": "Powered by Ghost",
"Cover.Subscribe now": "Tilaa nyt",
"Cover.Login": "Kirjaudu",
"Post.Published by": "Julkaissut",
"Post.Previous post": "Edellinen artikkeli",
"Post.Next post": "Seuraava artikkeli",
"Post.Related posts": "Saatat pitää myös näistä...",
"Author.Location": "Sijainti",
"Author.Website": "Verkkosivu",
"Author.Social Media.Facebook": "Facebook",
"Author.Social Media.Twitter": "Twitter",
"Content.Visibility.Paid": "Tämä artikkeli on vain maksaville tilaajille",
"Content.Visibility.Members": "Tämä artikkeli on vain tilaajille",
"Content.Visibility.Filter": "Tämä artikkeli on vain {{tiers}} tason tilaajille",
"Content.CTA.Upgrade": "Päivitä nyt",
"Content.CTA.Subscribe": "Tilaa nyt",
"Content.CTA.SignIn": "Onko sinulla jo tili? Kirjaudu sisään",
"Comments.Member discussion": "Jäsenkeskustelu",
"Pagination.Load more": "Lataa lisää"
}
25 changes: 25 additions & 0 deletions locales/fr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"Navigation.Sign in": "Se connecter",
"Navigation.Subscribe": "S'abonner",
"Navigation.Account": "Compte",
"Navigation.Login": "Connexion",
"Footer.Powered by Ghost": "Propulsé par Ghost",
"Cover.Subscribe now": "S'abonner maintenant",
"Cover.Login": "Se connecter",
"Post.Published by": "Publié par",
"Post.Previous post": "Article précédent",
"Post.Next post": "Article suivant",
"Post.Related posts": "Vous aimerez aussi...",
"Author.Location": "Localisation",
"Author.Website": "Site web",
"Author.Social Media.Facebook": "Facebook",
"Author.Social Media.Twitter": "Twitter",
"Content.Visibility.Paid": "Cet article est réservé aux abonnés payants",
"Content.Visibility.Members": "Cet article est réservé aux abonnés",
"Content.Visibility.Filter": "Cet article est réservé aux abonnés de niveau {{tiers}}",
"Content.CTA.Upgrade": "Mettre à niveau",
"Content.CTA.Subscribe": "S'abonner maintenant",
"Content.CTA.SignIn": "Déjà un compte ? Connectez-vous",
"Comments.Member discussion": "Discussion des membres",
"Pagination.Load more": "Charger plus"
}
25 changes: 25 additions & 0 deletions locales/it.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"avigation.Sign in": "Accedi",
"Navigation.Subscribe": "Abbonati",
"Navigation.Account": "Account",
"Navigation.Login": "Accedi",
"Footer.Powered by Ghost": "Powered by Ghost",
"Cover.Subscribe now": "Abbonati ora",
"Cover.Login": "Accedi",
"Post.Published by": "Pubblicato da",
"Post.Previous post": "Post precedente",
"Post.Next post": "Post successivo",
"Post.Related posts": "Potrebbe interessarti anche...",
"Author.Location": "Località",
"Author.Website": "Sito web",
"Author.Social Media.Facebook": "Facebook",
"Author.Social Media.Twitter": "Twitter",
"Content.Visibility.Paid": "Questo post è solo per abbonati a pagamento",
"Content.Visibility.Members": "Questo post è solo per abbonati",
"Content.Visibility.Filter": "Questo post è solo per abbonati di livello {{tiers}}",
"Content.CTA.Upgrade": "Aggiorna ora",
"Content.CTA.Subscribe": "Abbonati ora",
"Content.CTA.SignIn": "Hai già un account? Accedi",
"Comments.Member discussion": "Discussione membri",
"Pagination.Load more": "Carica altro"
}
25 changes: 25 additions & 0 deletions locales/ja.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"Navigation.Sign in": "ログイン",
"Navigation.Subscribe": "購読",
"Navigation.Account": "アカウント",
"Navigation.Login": "ログイン",
"Footer.Powered by Ghost": "Powered by Ghost",
"Cover.Subscribe now": "今すぐ購読",
"Cover.Login": "ログイン",
"Post.Published by": "投稿者",
"Post.Previous post": "前の記事",
"Post.Next post": "次の記事",
"Post.Related posts": "おすすめの記事...",
"Author.Location": "所在地",
"Author.Website": "ウェブサイト",
"Author.Social Media.Facebook": "Facebook",
"Author.Social Media.Twitter": "Twitter",
"Content.Visibility.Paid": "この記事は有料会員限定です",
"Content.Visibility.Members": "この記事は会員限定です",
"Content.Visibility.Filter": "この記事は{{tiers}}会員のみ閲覧できます",
"Content.CTA.Upgrade": "今すぐアップグレード",
"Content.CTA.Subscribe": "今すぐ購読",
"Content.CTA.SignIn": "アカウントをお持ちの方はログイン",
"Comments.Member discussion": "会員ディスカッション",
"Pagination.Load more": "もっと見る"
}
25 changes: 25 additions & 0 deletions locales/ko.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"Navigation.Sign in": "로그인",
"Navigation.Subscribe": "구독하기",
"Navigation.Account": "계정",
"Navigation.Login": "로그인",
"Footer.Powered by Ghost": "Powered by Ghost",
"Cover.Subscribe now": "지금 구독하기",
"Cover.Login": "로그인",
"Post.Published by": "작성자",
"Post.Previous post": "이전 글",
"Post.Next post": "다음 글",
"Post.Related posts": "추천 콘텐츠...",
"Author.Location": "위치",
"Author.Website": "웹사이트",
"Author.Social Media.Facebook": "Facebook",
"Author.Social Media.Twitter": "Twitter",
"Content.Visibility.Paid": "이 글은 유료 구독자만 볼 수 있습니다",
"Content.Visibility.Members": "이 글은 구독자만 볼 수 있습니다",
"Content.Visibility.Filter": "이 글은 {{tiers}} 등급 구독자만 볼 수 있습니다",
"Content.CTA.Upgrade": "지금 업그레이드",
"Content.CTA.Subscribe": "지금 구독하기",
"Content.CTA.SignIn": "계정이 있으신가요? 로그인",
"Comments.Member discussion": "구독자 토론",
"Pagination.Load more": "더 보기"
}
25 changes: 25 additions & 0 deletions locales/ru.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"avigation.Sign in": "Войти",
"Navigation.Subscribe": "Подписаться",
"Navigation.Account": "Аккаунт",
"Navigation.Login": "Войти",
"Footer.Powered by Ghost": "Работает на Ghost",
"Cover.Subscribe now": "Подписаться сейчас",
"Cover.Login": "Войти",
"Post.Published by": "Автор",
"Post.Previous post": "Предыдущая статья",
"Post.Next post": "Следующая статья",
"Post.Related posts": "Вам также может понравиться...",
"Author.Location": "Местоположение",
"Author.Website": "Веб-сайт",
"Author.Social Media.Facebook": "Facebook",
"Author.Social Media.Twitter": "Twitter",
"Content.Visibility.Paid": "Эта статья только для платных подписчиков",
"Content.Visibility.Members": "Эта статья только для подписчиков",
"Content.Visibility.Filter": "Эта статья доступна только для подписчиков уровня {{tiers}}",
"Content.CTA.Upgrade": "Улучшить тариф",
"Content.CTA.Subscribe": "Подписаться сейчас",
"Content.CTA.SignIn": "Уже есть аккаунт? Войти",
"Comments.Member discussion": "Обсуждение",
"Pagination.Load more": "Загрузить ещё"
}
25 changes: 25 additions & 0 deletions locales/th.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"Navigation.Sign in": "เข้าสู่ระบบ",
"Navigation.Subscribe": "สมัครสมาชิก",
"Navigation.Account": "บัญชีผู้ใช้",
"Navigation.Login": "เข้าสู่ระบบ",
"Footer.Powered by Ghost": "ขับเคลื่อนโดย Ghost",
"Cover.Subscribe now": "สมัครสมาชิกเลย",
"Cover.Login": "เข้าสู่ระบบ",
"Post.Published by": "เขียนโดย",
"Post.Previous post": "โพสต์ก่อนหน้า",
"Post.Next post": "โพสต์ถัดไป",
"Post.Related posts": "คุณอาจจะชอบ...",
"Author.Location": "ที่อยู่",
"Author.Website": "เว็บไซต์",
"Author.Social Media.Facebook": "Facebook",
"Author.Social Media.Twitter": "Twitter",
"Content.Visibility.Paid": "โพสต์นี้สำหรับสมาชิกแบบชำระเงินเท่านั้น",
"Content.Visibility.Members": "โพสต์นี้สำหรับสมาชิกเท่านั้น",
"Content.Visibility.Filter": "โพสต์นี้สำหรับสมาชิกระดับ {{tiers}} เท่านั้น",
"Content.CTA.Upgrade": "อัพเกรดเลย",
"Content.CTA.Subscribe": "สมัครสมาชิกเลย",
"Content.CTA.SignIn": "มีบัญชีอยู่แล้ว? เข้าสู่ระบบ",
"Comments.Member discussion": "การสนทนาของสมาชิก",
"Pagination.Load more": "โหลดเพิ่ม"
}
25 changes: 25 additions & 0 deletions locales/zh-CN.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"Navigation.Sign in": "登录",
"Navigation.Subscribe": "订阅",
"Navigation.Account": "我的账户",
"Navigation.Login": "登录",
"Footer.Powered by Ghost": "由 Ghost 驱动",
"Cover.Subscribe now": "立即订阅",
"Cover.Login": "登录",
"Post.Published by": "作者",
"Post.Previous post": "上一篇",
"Post.Next post": "下一篇",
"Post.Related posts": "你可能还喜欢...",
"Author.Location": "所在地",
"Author.Website": "网站",
"Author.Social Media.Facebook": "Facebook",
"Author.Social Media.Twitter": "Twitter",
"Content.Visibility.Paid": "此文章仅付费订阅者可见",
"Content.Visibility.Members": "订阅后可见",
"Content.Visibility.Filter": "此文章仅对{{tiers}}等级订阅者开放",
"Content.CTA.Upgrade": "立即升级",
"Content.CTA.Subscribe": "立即订阅",
"Content.CTA.SignIn": "已有账号?点击登录",
"Comments.Member discussion": "订阅者讨论",
"Pagination.Load more": "加载更多"
}
25 changes: 25 additions & 0 deletions locales/zh.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"Navigation.Sign in": "登录",
"Navigation.Subscribe": "订阅",
"Navigation.Account": "我的账户",
"Navigation.Login": "登录",
"Footer.Powered by Ghost": "由 Ghost 驱动",
"Cover.Subscribe now": "立即订阅",
"Cover.Login": "登录",
"Post.Published by": "作者",
"Post.Previous post": "上一篇",
"Post.Next post": "下一篇",
"Post.Related posts": "你可能还喜欢...",
"Author.Location": "所在地",
"Author.Website": "网站",
"Author.Social Media.Facebook": "Facebook",
"Author.Social Media.Twitter": "Twitter",
"Content.Visibility.Paid": "此文章仅付费订阅者可见",
"Content.Visibility.Members": "订阅后可见",
"Content.Visibility.Filter": "此文章仅对{{tiers}}等级订阅者开放",
"Content.CTA.Upgrade": "立即升级",
"Content.CTA.Subscribe": "立即订阅",
"Content.CTA.SignIn": "已有账号?点击登录",
"Comments.Member discussion": "订阅者讨论",
"Pagination.Load more": "加载更多"
}
2 changes: 1 addition & 1 deletion partials/comments.hbs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{#if comments}}
<section class="gh-comments gh-canvas">
<header class="gh-comments-header">
<h3 class="gh-comments-title related-title">Member discussion</h3>
<h3 class="gh-comments-title related-title">{{t "Comments.Member discussion"}}</h3>
{{comment_count class="gh-comments-count"}}
</header>
{{comments title="" count=false}}
Expand Down
Loading