-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from quangtt/feature/i18n
[i18n] Migrate to translatable theme. Add EN, VI, JA lang
- Loading branch information
Showing
18 changed files
with
176 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
node_modules/ | ||
node_modules/ | ||
/package-lock.json |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<html lang="{{lang}}"> | ||
<head> | ||
{{! Document Settings }} | ||
<meta charset="utf-8" /> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"Previous story": "Previous story", | ||
"Next story": "Next story", | ||
"Published": "Published", | ||
"Hi there!": "Hi there!", | ||
"{name}'s Picture": "{name}'s Picture", | ||
"Subscribe": "Subscribe", | ||
"Proudly published with {ghost_link}": "Proudly published with {ghost_link}", | ||
"Back": "Back", | ||
"Next": "Next", | ||
"No posts": "No posts", | ||
"1 post": "1 post", | ||
"% posts": "% posts", | ||
"posts": "posts", | ||
"Subscribe to {site_title}": "Subscribe to {site_title}", | ||
"Your email address": "Your email address", | ||
"Subscribed!": "Subscribed!", | ||
"Subscribed to {site_title} with {sub_email}": "You've successfully subscribed to <strong>{site_title}</strong> with the email address <strong>{sub_email}</strong>.", | ||
"Author": "Author:" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"Previous story": "前の記事", | ||
"Next story": "次の記事", | ||
"Published": "公開日時", | ||
"Hi there!": "こんにちは!", | ||
"{name}'s Picture": "{name}の写真", | ||
"Subscribe": "購読", | ||
"Proudly published with {ghost_link}": "誇らしげに{ghost_link}で公開", | ||
"Back": "戻る", | ||
"Next": "次る", | ||
"No posts": "記事はありません", | ||
"1 post": "1記事", | ||
"% posts": "%記事", | ||
"posts": "記事", | ||
"Subscribe to {site_title}": "{site_title}を購読する", | ||
"Your email address": "メールアドレス", | ||
"Subscribed!": "購読しました!", | ||
"Subscribed to {site_title} with {sub_email}": "正常にメールアドレス<strong>{sub_email}</strong>で<strong>{site_title}</strong>を購読しました。", | ||
"Author": "著者:" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"Previous story": "Đọc nữa", | ||
"Next story": "Đọc mãi", | ||
"Published": "Viết vào", | ||
"Hi there!": "Xin chào!", | ||
"{name}'s Picture": "Ảnh của {name}", | ||
"Subscribe": "Theo dõi", | ||
"Proudly published with {ghost_link}": "Được xây dựng dựa trên {ghost_link}", | ||
"Back": "Quay lại", | ||
"Next": "Tiếp tục", | ||
"No posts": "Không có bài nào", | ||
"1 post": "1 bài viết", | ||
"% posts": "% bài viết", | ||
"posts": "bài viết", | ||
"Subscribe to {site_title}": "Theo dõi {site_title}", | ||
"Your email address": "Địa chỉ email", | ||
"Subscribed!": "Theo dõi thành công!", | ||
"Subscribed to {site_title} with {sub_email}": "Bạn đã theo dõi <strong>{site_title}</strong> thành công bằng email <strong>{sub_email}</strong>.", | ||
"Author": "Tác giả:" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
<nav class="pagination" role="pagination"> | ||
<ul> | ||
{{#if prev}} | ||
<li class="prev"><a href="{{page_url prev}}">Back</a></li> | ||
<li class="prev"><a href="{{page_url prev}}">{{t "Back"}}</a></li> | ||
{{/if}} | ||
{{#if next}} | ||
<li class="next"><a href="{{page_url next}}">Next</a></li> | ||
<li class="next"><a href="{{page_url next}}">{{t "Next"}}</a></li> | ||
{{/if}} | ||
</ul> | ||
</nav> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<form method="post" action="{{action}}" id="{{form_id}}" class="{{form_class}}"> | ||
{{! This is required for the form to work correctly }} | ||
{{hidden}} | ||
|
||
<div class="form-group{{#if error}} error{{/if}}"> | ||
{{input_email id=input_id class=input_class placeholder=placeholder value=email autofocus=autofocus}} | ||
</div> | ||
<button id="{{button_id}}" class="{{button_class}}" type="submit"><span>{{t "Subscribe"}}</span></button> | ||
{{! This is used to get extra info about where this subscriber came from }} | ||
{{script}} | ||
</form> | ||
|
||
{{#if error}} | ||
<p class="main-error">{{error.message}}</p> | ||
{{/if}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
<!doctype html> | ||
<!--[if (IE 8)&!(IEMobile)]><html class="no-js lt-ie9" lang="en"><![endif]--> | ||
<!--[if (gte IE 9)| IEMobile |!(IE)]><!--><html class="no-js" lang="en"><!--<![endif]--> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8" /> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> | ||
|
||
<title>{{@site.title}} - {{t "Subscribe"}}</title> | ||
|
||
<meta name="HandheldFriendly" content="True"> | ||
<meta name="MobileOptimized" content="320"> | ||
<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1"> | ||
<meta name="apple-mobile-web-app-capable" content="yes" /> | ||
|
||
<link rel="shortcut icon" href="{{asset "favicon.ico"}}"> | ||
<meta http-equiv="cleartype" content="on"> | ||
|
||
<link rel="stylesheet" href="{{asset "public/ghost.css" hasMinFile="true"}}"/> | ||
</head> | ||
<body> | ||
<div class="gh-app"> | ||
<div class="gh-viewport"> | ||
<main class="gh-main" role="main"> | ||
<div class="gh-flow"> | ||
<header class="gh-flow-head"> | ||
<nav class="gh-flow-nav"> | ||
<a href="{{#if subscribed_url}}{{subscribed_url}}{{else}}{{@site.url}}{{/if}}" class="gh-flow-back"> | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<svg width="17px" height="27px" viewBox="0 0 17 27" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> | ||
<!-- Generator: Sketch 39.1 (31720) - http://www.bohemiancoding.com/sketch --> | ||
<title>arrow-left3</title> | ||
<desc>Created with Sketch.</desc> | ||
<defs></defs> | ||
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"> | ||
<g id="Stroke-42" transform="translate(2.000000, 2.000000)" stroke-width="3" stroke="#0B0B0A"> | ||
<polyline points="13.5401 0.4256 0.3971 11.9256 13.5401 23.4256"></polyline> | ||
</g> | ||
</g> | ||
</svg> | ||
{{t "Back"}} | ||
</a> | ||
</nav> | ||
</header> | ||
|
||
<div class="gh-flow-content-wrap"> | ||
<section class="gh-flow-content"> | ||
{{^if success}} | ||
<header> | ||
<h1>{{t "Subscribe to {site_title}" site_title=@site.title}}</h1> | ||
</header> | ||
|
||
{{subscribe_form | ||
form_class="gh-signin" | ||
input_class="gh-input" | ||
button_class="gh-btn gh-btn-blue gh-btn-block" | ||
placeholder=(t "Your email address") | ||
autofocus="true" | ||
}} | ||
{{else}} | ||
<header> | ||
<h1>{{t "Subscribed!"}}</h1> | ||
</header> | ||
|
||
<p> | ||
{{{t "Subscribed to {site_title} with {sub_email}" site_title=@site.title sub_email=email}}} | ||
</p> | ||
{{/if}} | ||
</section> | ||
</div> | ||
</div> | ||
</main> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters