From 3915cef98a5547e0c17021eb0580f92abfd5893f Mon Sep 17 00:00:00 2001 From: hy3na Date: Sun, 26 Mar 2023 13:08:08 +0900 Subject: [PATCH] add_ja_locales (#172) Co-authored-by: Mckay Wrigley --- next-i18next.config.js | 2 +- public/locales/ja/chat.json | 25 +++++++++++++++++++++++++ public/locales/ja/common.json | 1 + public/locales/ja/markdown.json | 5 +++++ public/locales/ja/sidebar.json | 13 +++++++++++++ 5 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 public/locales/ja/chat.json create mode 100644 public/locales/ja/common.json create mode 100644 public/locales/ja/markdown.json create mode 100644 public/locales/ja/sidebar.json diff --git a/next-i18next.config.js b/next-i18next.config.js index c74b6db..b3e2d78 100644 --- a/next-i18next.config.js +++ b/next-i18next.config.js @@ -1,7 +1,7 @@ module.exports = { i18n: { defaultLocale: "en", - locales: ["de", "en", "es", "fr", "ko", "pt", "ru", "sv", "te", "zh"], + locales: ["de", "en", "es", "fr", "ja", "ko", "pt", "ru", "sv", "te", "zh"], }, localePath: typeof window === "undefined" diff --git a/public/locales/ja/chat.json b/public/locales/ja/chat.json new file mode 100644 index 0000000..6564b2f --- /dev/null +++ b/public/locales/ja/chat.json @@ -0,0 +1,25 @@ +{ + "OpenAI API Key Required": "OpenAIのAPIキーが必要です", + "Please set your OpenAI API key in the bottom left of the sidebar.": "左下のサイドバーでOpenAIのAPIキーを設定してください", + "Stop Generating": "作るのをやめる", + "Prompt limit is {{maxLength}} characters": "プロンプトの文字数は{{maxLength}}文字までです", + "System Prompt": "システムのプロンプト", + "You are ChatGPT, a large language model trained by OpenAI. Follow the user's instructions carefully. Respond using markdown.": "あなたはOpenAIによってトレーニングされた大規模言語モデルのChatGPTです。ユーザーの指示には注意深く従ってください。マークダウンを使用して応答してください。", + "Enter a prompt": "プロンプトを入力してください", + "Regenerate response": "もう一度回答する", + "Sorry, there was an error.": "すみません、エラーが発生しました。", + "Model": "モデル", + "Conversation": "会話", + "OR": "または", + "Loading...": "読み込み中...", + "Type a message...": "メッセージを入力...", + "Error fetching models.": "モデルの取得中にエラーが発生しました。", + "AI": "AI", + "You": "あなた", + "Make sure your OpenAI API key is set in the bottom left of the sidebar.": "OpenAIのAPIキーがサイドバーの左下に設定されていることを確認してください。", + "If you completed this step, OpenAI may be experiencing issues.": "このステップを完了した場合、OpenAIに問題が発生している可能性があります。", + "click if using a .env.local file": "もし.env.localファイルを使用している場合はこちらをクリックしてください", + "Message limit is {{maxLength}} characters. You have entered {{valueLength}} characters.": "メッセージの文字数は{{maxLength}}文字までです。あなたは{{valueLength}}文字を入力しました。", + "Please enter a message": "メッセージを入力してください", + "Chatbot UI is an advanced chatbot kit for OpenAI's chat models aiming to mimic ChatGPT's interface and functionality.": "Chatbot UIは、ChatGPTのインターフェイスと機能を模倣することを目的とした、OpenAIのチャットモデルのための高度なチャットボットキットです。" +} \ No newline at end of file diff --git a/public/locales/ja/common.json b/public/locales/ja/common.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/public/locales/ja/common.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/public/locales/ja/markdown.json b/public/locales/ja/markdown.json new file mode 100644 index 0000000..8e7783d --- /dev/null +++ b/public/locales/ja/markdown.json @@ -0,0 +1,5 @@ +{ + "Copy code": "コードをコピー", + "Copied!": "コピーしました!", + "Enter file name": "ファイル名を入力" +} \ No newline at end of file diff --git a/public/locales/ja/sidebar.json b/public/locales/ja/sidebar.json new file mode 100644 index 0000000..86cf4aa --- /dev/null +++ b/public/locales/ja/sidebar.json @@ -0,0 +1,13 @@ +{ + "New folder": "新規フォルダ", + "New chat": "新規チャット", + "No conversations.": "会話履歴はありません。", + "Search conversations...": "会話を検索...", + "OpenAI API Key": "OpenAI API Key", + "Import conversations": "会話履歴をインポート", + "Are you sure?": "よろしいですか?", + "Clear conversations": " 会話をクリア", + "Export conversations": "会話履歴をエクスポート", + "Dark mode": "ダークモード", + "Light mode": "ライトモード" +} \ No newline at end of file