-
Notifications
You must be signed in to change notification settings - Fork 0
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 #63 from ofuton/add-locales
Support i18n (add locale for English)
- Loading branch information
Showing
21 changed files
with
341 additions
and
93 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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"Name": { | ||
"message": "Maimodorun" | ||
}, | ||
"Description": { | ||
"message": "maimodorun: Save and recovery tool for text on kintone" | ||
}, | ||
"RecoveryButtonTitle": { | ||
"message": "Restore saved text" | ||
}, | ||
"AutoSaveSign": { | ||
"message": "Saved!" | ||
} | ||
} |
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,14 @@ | ||
{ | ||
"Name": { | ||
"message": "まいもどるん" | ||
}, | ||
"Description": { | ||
"message": "kintoneで入力したテキストを自動で保存し、復元できる拡張機能です。" | ||
}, | ||
"RecoveryButtonTitle": { | ||
"message": "保存内容を復元する" | ||
}, | ||
"AutoSaveSign": { | ||
"message": "保存しました" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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,24 @@ | ||
import i18n from 'i18next' | ||
import { initReactI18next } from 'react-i18next' | ||
|
||
import en from './en/translation.json' | ||
import ja from './ja/translation.json' | ||
import I18nextBrowserLanguageDetector from 'i18next-browser-languagedetector' | ||
|
||
export const resources = { | ||
en: { translation: en }, | ||
ja: { translation: ja } | ||
} | ||
|
||
i18n | ||
.use(I18nextBrowserLanguageDetector) | ||
.use(initReactI18next) | ||
.init({ | ||
fallbackLng: 'en', | ||
resources, | ||
interpolation: { | ||
escapeValue: false | ||
} | ||
}) | ||
|
||
export default i18n |
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,22 @@ | ||
{ | ||
"RecordNotFoundAlert": "This record has been deleted.", | ||
"Timeline": "Timeline", | ||
"ActivityCount_one": "{{count}} activity", | ||
"ActivityCount_other": "{{count}} activities", | ||
"AriaLabelForListOfHistory": "List of history", | ||
"AriaLabelForEmptyHistoryImage": "An image indicating that no activity exists", | ||
"ActivityDoesNotExist": "You have no activity yet!", | ||
"WhyDoNotYouPostComment": "Why don't you write something in kintone?", | ||
"RecordCardTitleForComment": "You wrote the body text in \"{{location}}\".", | ||
"RecordCardTitleForReply": "You wrote a reply with \"{{location}}\".", | ||
"RecordCardTitleForReplyInPeople": "You wrote a reply with \"{{location}}\".", | ||
"RecordCardTitleForCommentInMessage": "You wrote a message in \"{{location}}\".", | ||
"RecordCardTitleForCommentInApp": "You wrote a comment in \"{{location}}\".", | ||
"ThreadBodyTag": "Thread / Body", | ||
"ThreadReplyTag": "Thread / Reply", | ||
"PeopleBodyTag": "People / Body", | ||
"PeopleReplyTag": "People / Reply", | ||
"MessageBodyTag": "Message / Body", | ||
"AppCommentTag": "App / Comment", | ||
"UnknownTag": "Unknown" | ||
} |
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,21 @@ | ||
{ | ||
"RecordNotFoundAlert": "このレコードは削除されています", | ||
"Timeline": "タイムライン", | ||
"ActivityCount": "{{count}}個のアクティビティ", | ||
"AriaLabelForListOfHistory": "履歴の一覧", | ||
"AriaLabelForEmptyHistoryImage": "アクティビティが存在しないことを表す画像", | ||
"ActivityDoesNotExist": "まだアクティビティが存在しません!", | ||
"WhyDoNotYouPostComment": "kintoneで何か書き込んでみてはいかがでしょうか?", | ||
"RecordCardTitleForComment": "{{location}}で本文を書きました", | ||
"RecordCardTitleForReply": "{{location}}で返信を書きました", | ||
"RecordCardTitleForReplyInPeople": "{{location}}で投稿しました", | ||
"RecordCardTitleForCommentInMessage": "{{location}}で送信しました", | ||
"RecordCardTitleForCommentInApp": "{{location}}でコメントしました", | ||
"ThreadBodyTag": "スレッド / 本文", | ||
"ThreadReplyTag": "スレッド / 返信", | ||
"PeopleBodyTag": "ピープル / 本文", | ||
"PeopleReplyTag": "ピープル / 返信", | ||
"MessageBodyTag": "メッセージ / 本文", | ||
"AppCommentTag": "アプリ / コメント", | ||
"UnknownTag": "不明" | ||
} |
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
Oops, something went wrong.