From 95bcf101d7c14c336e13a00f115b83fd16637f06 Mon Sep 17 00:00:00 2001 From: Kaoru Yamamoto <62369964+kaoru-yamamoto@users.noreply.github.com> Date: Tue, 19 Sep 2023 02:23:03 +0900 Subject: [PATCH] Add Japanese locale (#6433) --- src/node/i18n/index.ts | 4 ++++ src/node/i18n/locales/ja.json | 13 +++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 src/node/i18n/locales/ja.json diff --git a/src/node/i18n/index.ts b/src/node/i18n/index.ts index daf271299..f494e4913 100644 --- a/src/node/i18n/index.ts +++ b/src/node/i18n/index.ts @@ -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. @@ -18,6 +19,9 @@ init({ th: { translation: th, }, + ja: { + translation: ja, + }, }, }) diff --git a/src/node/i18n/locales/ja.json b/src/node/i18n/locales/ja.json new file mode 100644 index 000000000..6597e0748 --- /dev/null +++ b/src/node/i18n/locales/ja.json @@ -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": "パスワードが間違っています。" +}