From e91af1dff98be99d82f289efd9cea0de8838dd08 Mon Sep 17 00:00:00 2001 From: Jin Hai Date: Mon, 19 Aug 2024 15:01:39 +0800 Subject: [PATCH] Refactor display Text (#1999) ### What problem does this PR solve? 'Api Key' and 'API Document' isn't aligned. ### Type of change - [x] Refactoring Signed-off-by: Jin Hai --- docs/references/api.md | 4 ++-- docs/references/ragflow_api.md | 2 +- web/src/locales/en.ts | 4 ++-- web/src/locales/zh-traditional.ts | 6 +++--- web/src/locales/zh.ts | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/references/api.md b/docs/references/api.md index 11b3c7295..b4eb432b9 100644 --- a/docs/references/api.md +++ b/docs/references/api.md @@ -30,13 +30,13 @@ To get your Chat API key or Agent API key: For Chat API key: 1. In RAGFlow, click **Chat** tab in the middle top of the page. 2. Hover over the corresponding dialogue **>** **Chat Bot API** to show the chatbot API configuration page. - 3. Click **Api Key** **>** **Create new key** to create your API key. + 3. Click **API Key** **>** **Create new key** to create your API key. 4. Copy and keep your API key safe. For Agent API key: 1. In RAGFlow, click **Agent** tab in the middle top of the page. 2. Click your agent **>** ** Chat Bot API** to show the chatbot API configuration page. - 3. Click **Api Key** **>** **Create new key** to create your API key. + 3. Click **API Key** **>** **Create new key** to create your API key. 4. Copy and keep your API key safe. ## Create conversation diff --git a/docs/references/ragflow_api.md b/docs/references/ragflow_api.md index 881ee8865..81d1b3584 100644 --- a/docs/references/ragflow_api.md +++ b/docs/references/ragflow_api.md @@ -29,7 +29,7 @@ To get your API key: 1. In RAGFlow, click **Chat** tab in the middle top of the page. 2. Hover over the corresponding dialogue **>** **Chat Bot API** to show the chatbot API configuration page. -3. Click **Api Key** **>** **Create new key** to create your API key. +3. Click **API Key** **>** **Create new key** to create your API key. 4. Copy and keep your API key safe. ## Create dataset diff --git a/web/src/locales/en.ts b/web/src/locales/en.ts index a7b5970f5..f98480a46 100644 --- a/web/src/locales/en.ts +++ b/web/src/locales/en.ts @@ -406,7 +406,7 @@ The above is the content you need to summarize.`, preview: 'Preview', embedded: 'Embedded', serviceApiEndpoint: 'Service API Endpoint', - apiKey: 'Api Key', + apiKey: 'API Key', apiReference: 'API Documents', dateRange: 'Date Range:', backendServiceApi: 'Backend service API', @@ -664,7 +664,7 @@ The above is the content you need to summarize.`, bing: 'Bing', bingTip: 'This component is used to get search result from https://www.bing.com/. Typically, it performs as a supplement to knowledgebases. Top N and Bing Subscription-Key specifies the number of search results you need to adapt.', - apiKey: 'Api Key', + apiKey: 'API Key', country: 'Country', language: 'Language', googleScholar: 'Google Scholar', diff --git a/web/src/locales/zh-traditional.ts b/web/src/locales/zh-traditional.ts index dc264817a..32864728c 100644 --- a/web/src/locales/zh-traditional.ts +++ b/web/src/locales/zh-traditional.ts @@ -378,7 +378,7 @@ export default { embedded: '嵌入', serviceApiEndpoint: '服務 API 端點', apiKey: 'API 鍵', - apiReference: 'API 文件', + apiReference: 'API 文檔', dateRange: '日期範圍:', backendServiceApi: '後端服務 API', createNewKey: '創建新密鑰', @@ -390,7 +390,7 @@ export default { fullScreenDescription: '將以下iframe嵌入您的網站處於所需位置', partialTitle: '部分嵌入', extensionTitle: 'Chrome 插件', - tokenError: '請先創建 Api Token!', + tokenError: '請先創建 API Token!', searching: '搜索中', parsing: '解析中', uploading: '上傳中', @@ -623,7 +623,7 @@ export default { bing: 'Bing', bingTip: '此元件用於從 https://www.bing.com/ 取得搜尋結果。通常,它充當知識庫的補充。 Top N 和 Bing Subscription-Key 指定您需要適配的搜尋結果數量。', - apiKey: 'Api Key', + apiKey: 'API Key', country: '國家', language: '語言', googleScholar: '谷歌學術', diff --git a/web/src/locales/zh.ts b/web/src/locales/zh.ts index 245006e47..a398b54a0 100644 --- a/web/src/locales/zh.ts +++ b/web/src/locales/zh.ts @@ -407,7 +407,7 @@ export default { fullScreenDescription: '将以下iframe嵌入您的网站处于所需位置', partialTitle: '部分嵌入', extensionTitle: 'Chrome 插件', - tokenError: '请先创建 Api Token!', + tokenError: '请先创建 API Token!', searching: '搜索中', parsing: '解析中', uploading: '上传中', @@ -641,7 +641,7 @@ export default { bing: 'Bing', bingTip: '此组件用于从 https://www.bing.com/ 获取搜索结果。通常,它作为知识库的补充。Top N 和 Bing Subscription-Key 指定您需要调整的搜索结果数量。', - apiKey: 'Api Key', + apiKey: 'API Key', country: '国家', language: '语言', googleScholar: '谷歌学术',