Skip to content

Commit

Permalink
Add Japanese locale (#6433)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaoru-yamamoto authored Sep 18, 2023
1 parent d80568d commit 95bcf10
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/node/i18n/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import i18next, { init } from "i18next"
import * as en from "./locales/en.json"
import * as th from "./locales/th.json"
import * as zhCn from "./locales/zh-cn.json"
import * as ja from "./locales/ja.json"
init({
lng: "en",
fallbackLng: "en", // language to use if translations in user language are not available.
Expand All @@ -18,6 +19,9 @@ init({
th: {
translation: th,
},
ja: {
translation: ja,
},
},
})

Expand Down
13 changes: 13 additions & 0 deletions src/node/i18n/locales/ja.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"LOGIN_TITLE": "{{app}} ログイン",
"LOGIN_BELOW": "以下によりログインしてください。",
"WELCOME": "ようこそ {{app}} へ!",
"LOGIN_PASSWORD": "パスワードは設定ファイル( {{configFile}} )を確認してください。",
"LOGIN_USING_ENV_PASSWORD": "パスワードは環境変数 $PASSWORD で設定されています。",
"LOGIN_USING_HASHED_PASSWORD": "パスワードは環境変数 $HASHED_PASSWORD で設定されています。",
"SUBMIT": "実行",
"PASSWORD_PLACEHOLDER": "パスワード",
"LOGIN_RATE_LIMIT": "ログイン制限を超えました!",
"MISS_PASSWORD": "パスワードを入力してください。",
"INCORRECT_PASSWORD": "パスワードが間違っています。"
}

0 comments on commit 95bcf10

Please sign in to comment.