Skip to content

Commit

Permalink
add locales & translations.js
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonYCHuang committed Nov 12, 2016
1 parent 82a2918 commit dd05206
Show file tree
Hide file tree
Showing 6 changed files with 105 additions and 22 deletions.
20 changes: 20 additions & 0 deletions config/locales/de.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
de:
type: "Deutsch"
comments: "Kommentare"
description:
support_markdown: "Text unterstützt Github Flavored Markdown."
delete_rule: "Die ältere als 24 Stunden Kommentare werden gelöscht."
submit_rule: "Name wird beibehalten. Text wird zurücksetzt während der Sendung."
form:
horizontal: "Horizontale Form"
stacked: "Gestapelte Form"
inline: "Inline Form"
input:
name:
label: "Name"
placeholder: "Dein Name"
text:
label: "Text"
placeholder: "Sagen Sie etwas mit markdown..."
saving: "Speichern"
post: "Posten"
41 changes: 19 additions & 22 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,20 @@
# Files in the config/locales directory are used for internationalization
# and are automatically loaded by Rails. If you want to use locales other
# than English, add the necessary files in this directory.
#
# To use the locales, use `I18n.t`:
#
# I18n.t "hello"
#
# In views, this is aliased to just `t`:
#
# <%= t("hello") %>
#
# To use a different locale, set it with `I18n.locale`:
#
# I18n.locale = :es
#
# This would use the information in config/locales/es.yml.
#
# To learn more, please read the Rails Internationalization guide
# available at http://guides.rubyonrails.org/i18n.html.

en:
hello: "Hello world"
type: "English"
comments: "Comments"
description:
support_markdown: "Text supports Github Flavored Markdown."
delete_rule: "Comments older than 24 hours are deleted."
submit_rule: "Name is preserved. Text is reset, between submits."
form:
horizontal: "Horizontal Form"
stacked: "Stacked Form"
inline: "Inline Form"
input:
name:
label: "Name"
placeholder: "Your Name"
text:
label: "Text"
placeholder: "Say something using markdown..."
saving: "Saving"
post: "Post"
20 changes: 20 additions & 0 deletions config/locales/ja.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
ja:
type: "日本語"
comments: "コメント"
description:
support_markdown: "テキストは Github Flavored Markdown をサポートしています。"
delete_rule: "コメントは24時間後削除されます。"
submit_rule: "送信の間に名前は保存され、テキストがリセットされます。"
form:
horizontal: "水平フォーム"
stacked: "積み上げフォーム"
inline: "インラインフォーム"
input:
name:
label: "名前"
placeholder: "あなたの名前"
text:
label: "本文"
placeholder: "何かが Markdown を使用して言います..."
saving: "保存"
post: "サブミット"
20 changes: 20 additions & 0 deletions config/locales/zh-CN.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
zh-CN:
type: "简体中文"
comments: "评论"
description:
support_markdown: "支援 Github Flavored Markdown。"
delete_rule: "评论于24小时后移除。"
submit_rule: "送出评论后, 名字保留并清除内容。"
form:
horizontal: "水平格式"
stacked: "堆叠格式"
inline: "内嵌格式"
input:
name:
label: "名字"
placeholder: "你的名字"
text:
label: "内容"
placeholder: "使用markdown说些什么..."
saving: "储存"
post: "发表"
20 changes: 20 additions & 0 deletions config/locales/zh-TW.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
zh-TW:
type: "正體中文"
comments: "評論"
description:
support_markdown: "支援 Github Flavored Markdown。"
delete_rule: "評論於24小時後移除。"
submit_rule: "送出評論後, 名字保留並清除內容。"
form:
horizontal: "水平格式"
stacked: "堆疊格式"
inline: "內嵌格式"
input:
name:
label: "名字"
placeholder: "你的名字"
text:
label: "內容"
placeholder: "使用markdown說些什麼..."
saving: "儲存"
post: "發表"
6 changes: 6 additions & 0 deletions public/javascripts/translations.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit dd05206

Please sign in to comment.