Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

my-japanese-translation #987

Merged
merged 2 commits into from
Jun 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions frontend/src/locale/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"myPlan": "My Plan",
"about": "About",
"inputPlaceholder": "Type your message here...",
"tagline": "DocsGPT uses GenAI, please review critial information using sources.",
"tagline": "DocsGPT uses GenAI, please review critical information using sources.",
"sourceDocs": "Source Docs",
"none": "None",
"cancel":"Cancel",
Expand All @@ -16,8 +16,8 @@
"query": "What is DocsGPT?"
},
{
"header": "Summarise documentation",
"query": "Summarise current context"
"header": "Summarize documentation",
"query": "Summarize current context"
},
{
"header": "Write Code",
Expand Down
4 changes: 4 additions & 0 deletions frontend/src/locale/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { initReactI18next } from 'react-i18next';

import en from './en.json'; //English
import es from './es.json'; //Spanish
import jp from './jp.json'; //Japanese

i18n.use(initReactI18next).init({
resources: {
Expand All @@ -12,6 +13,9 @@ i18n.use(initReactI18next).init({
es: {
translation: es,
},
jp: {
translation: jp,
},
},
});

Expand Down
109 changes: 109 additions & 0 deletions frontend/src/locale/jp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
{
"language": "日本語",
"chat": "チャット",
"chats": "チャット",
"newChat": "新しいチャット",
"myPlan": "私のプラン",
"about": "について",
"inputPlaceholder": "ここにメッセージを入力してください...",
"tagline": "DocsGPTはGenAIを使用しています。重要な情報はソースで確認してください。",
"sourceDocs": "ソースドキュメント",
"none": "なし",
"cancel":"キャンセル",
"demo": [
{
"header": "DocsGPTについて学ぶ",
"query": "DocsGPTとは何ですか?"
},
{
"header": "ドキュメントを要約する",
"query": "現在のコンテキストを要約してください"
},
{
"header": "コードを書く",
"query": "APIリクエストのコードを/api/answerに書いてください。"
},
{
"header": "学習支援",
"query": "コンテキストに対する潜在的な質問を書いてください"
}
],
"settings": {
"label": "設定",
"general": {
"label": "一般",
"selectTheme": "テーマを選択",
"light": "ライト",
"dark": "ダーク",
"selectLanguage": "言語を選択",
"chunks": "クエリごとに処理されるチャンク",
"prompt": "アクティブプロンプト",
"deleteAllLabel": "すべての会話を削除",
"deleteAllBtn": "すべて削除",
"addNew": "新規追加",
"convHistory":"会話履歴",
"none":"なし",
"low":"低",
"medium":"中",
"high":"高",
"unlimited":"無制限",
"default":"デフォルト"
},
"documents": {
"label": "ドキュメント",
"name": "ドキュメント名",
"date": "ベクトル日付",
"type": "タイプ",
"tokenUsage": "トークン使用量"
},
"apiKeys": {
"label": "APIキー",
"name": "名前",
"key": "APIキー",
"sourceDoc": "ソースドキュメント",
"createNew": "新規作成"
}
},
"modals": {
"uploadDoc": {
"label": "新規書類のアップロード",
"file": "ファイルから",
"remote": "リモート",
"name": "名前",
"choose": "ファイルを選択",
"info": ".pdf, .txt, .rst, .docx, .md, .zipファイルを25MBまでアップロードしてください",
"uploadedFiles": "アップロードされたファイル",
"cancel": "キャンセル",
"train": "トレーニング",
"link": "リンク",
"urlLink": "URLリンク",
"reddit": {
"id": "クライアントID",
"secret": "クライアントシークレット",
"agent": "ユーザーエージェント",
"searchQueries": "検索クエリ",
"numberOfPosts": "投稿数"
}
},
"createAPIKey": {
"label": "新しいAPIキーを作成",
"apiKeyName": "APIキー名",
"chunks": "クエリごとに処理されるチャンク",
"prompt": "アクティブプロンプトを選択",
"sourceDoc": "ソースドキュメント",
"create": "作成"
},
"saveKey": {
"note": "キーを保存してください",
"disclaimer": "キーが表示されるのはこのときだけです。",
"copy": "コピー",
"copied": "コピーしました",
"confirm": "キーを保存しました"
},
"deleteConv": {
"confirm": "すべての会話を削除してもよろしいですか?",
"delete": "削除"
}
}
}

4 changes: 4 additions & 0 deletions frontend/src/settings/General.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ const General: React.FC = () => {
label: 'Spanish',
value: 'es',
},
{
label: 'Japanese',
value: 'jp',
},
];
const chunks = ['0', '2', '4', '6', '8', '10'];
const token_limits = new Map([
Expand Down
Loading