Added multianguage plugin

This commit is contained in:
tom5079
2019-05-13 22:19:45 +09:00
parent c1c9a542be
commit a0ddaf2f34
7 changed files with 25 additions and 7 deletions

View File

@@ -9,4 +9,10 @@ google_analytics: UA-119938781-2
github:
app_url: https://github.com/tom5079/Pupil-issue/releases/download/1.2/Pupil-v1.2.apk
issue_url: https://github.com/tom5079/Pupil-issue/issues/new/choose
issue_url: https://github.com/tom5079/Pupil-issue/issues/new/choose
gems:
- jekyll-multiple-languages-plugin
languages: ["en", "ko", "ja"]
exclude_from_localizations: []

3
_i18n/en.yml Normal file
View File

@@ -0,0 +1,3 @@
header:
download_app: Download app
having_a_problem: Having a problem?

3
_i18n/ja.yml Normal file
View File

@@ -0,0 +1,3 @@
header:
download_app: アプリダウンロード
having_a_problem: 問題がありますか?

3
_i18n/ko.yml Normal file
View File

@@ -0,0 +1,3 @@
header:
download_app: 앱 다운로드
having_a_problem: 문제가 있으세요?

View File

@@ -25,8 +25,8 @@
<h1 class="project-name">{{ page.title | default: site.title | default: site.github.repository_name }}</h1>
<h2 class="project-tagline">{{ page.description | default: site.description | default: site.github.project_tagline }}</h2>
{% if site.show_downloads %}
<a href="{{ site.github.app_url }}" class="btn">Download app</a>
<a href="{{ site.github.issue_url }}" target="_blank" class="btn">Having a problem?</a>
<a href="{{ site.github.app_url }}" class="btn">(% t header.download_app %}</a>
<a href="{{ site.github.issue_url }}" target="_blank" class="btn">{% header.having_a_problem %}</a>
{% endif %}
</header>

7
index.html Normal file
View File

@@ -0,0 +1,7 @@
---
layout: default
---
<div id="home">
<h1>Blog Posts</h1>
</div>

View File

@@ -1,4 +0,0 @@
---
layout: default
---