fix: supports number format

This commit is contained in:
NFish 2025-01-22 19:41:18 +08:00
parent 066516b54d
commit ffa5af1356
4 changed files with 31 additions and 30 deletions

View File

@ -22,6 +22,7 @@ type Props = {
}
const KeyValue = ({ icon, label, tooltip }: { icon: ReactNode; label: string; tooltip?: ReactNode }) => {
console.log(label)
return (
<div className='flex text-text-tertiary'>
<div className='size-4 flex items-center justify-center'>

View File

@ -22,7 +22,7 @@ const translation = {
freeTrialTip: 'free trial of 200 OpenAI calls. ',
freeTrialTipSuffix: 'No credit card required',
yearlyTip: 'Pay for 10 months, enjoy 1 Year!',
mostPopular: 'Most Popular',
mostPopular: 'Popular',
cloud: 'Cloud Service',
self: 'Self-Hosted',
planRange: {
@ -39,23 +39,23 @@ const translation = {
currentPlan: 'Current Plan',
contractSales: 'Contact sales',
contractOwner: 'Contact team manager',
startForFree: 'Start for free',
getStarted: 'Get started',
startForFree: 'Start for Free',
getStarted: 'Get Started',
contactSales: 'Contact Sales',
talkToSales: 'Talk to Sales',
modelProviders: 'Support OpenAI/Anthropic/Llama2/Azure OpenAI/Hugging Face/Replicate',
teamWorkspace: '{{count}} Team Workspace',
teamMember_one: '{{count}} Team Member',
teamMember_other: '{{count}} Team Members',
teamWorkspace: '{{count,number}} Team Workspace',
teamMember_one: '{{count,number}} Team Member',
teamMember_other: '{{count,number}} Team Members',
annotationQuota: 'Annotation Quota',
buildApps: '{{count}} Apps',
documents: '{{count}} Knowledge Documents',
buildApps: '{{count,number}} Apps',
documents: '{{count,number}} Knowledge Documents',
documentsTooltip: 'Quota on the number of documents imported from the Knowledge Data Source.',
vectorSpace: '{{size}} Knowledge Data Storage',
vectorSpaceTooltip: 'Documents with the High Quality indexing mode will consume Knowledge Data Storage resources. When Knowledge Data Storage reaches the limit, new documents will not be uploaded.',
documentsRequestQuota: '{{count}}/min Knowledge Request Rate limit',
documentsRequestQuota: '{{count,number}}/min Knowledge Request Rate Limit',
documentsRequestQuotaTooltip: 'Specifies the total number of actions a workspace can perform per minute within the knowledge base, including dataset creation, deletion, updates, document uploads, modifications, archiving, and knowledge base queries. This metric is used to evaluate the performance of knowledge base requests. For example, if a Sandbox user performs 10 consecutive hit tests within one minute, their workspace will be temporarily restricted from performing the following actions for the next minute: dataset creation, deletion, updates, and document uploads or modifications. ',
documentProcessingPriority: 'Document Processing',
documentProcessingPriority: ' Document Processing',
priority: {
'standard': 'Standard',
'priority': 'Priority',
@ -87,12 +87,12 @@ const translation = {
member: 'Member',
memberAfter: 'Member',
messageRequest: {
title: '{{count}} Messages',
titlePerMonth: '{{count}} Messages/month',
title: '{{count,number}} messages',
titlePerMonth: '{{count,number}} messages/month',
tooltip: 'Message invocation quotas for various plans using OpenAl models. Messages over the limit will use your OpenAI API Key.',
},
annotatedResponse: {
title: '{{count}} Annotation Quota Limits',
title: '{{count,number}} Annotation Quota Limits',
tooltip: 'Manual editing and annotation of responses provides customizable high-quality question-answering abilities for apps. (Applicable only in Chat apps)',
},
ragAPIRequestTooltip: 'Refers to the number of API calls invoking only the knowledge base processing capabilities of Dify.',

View File

@ -43,16 +43,16 @@ const translation = {
contactSales: '営業に連絡する',
talkToSales: '営業と話す',
modelProviders: 'OpenAI/Anthropic/Llama2/Azure OpenAI/Hugging Face/Replicateをサポート',
teamWorkspace: '{{count}}チームワークスペース',
teamMember_one: 'チームメンバー:{{count}}人',
teamMember_other: 'チームメンバー:{{count}}人',
teamWorkspace: '{{count,number}}チームワークスペース',
teamMember_one: 'チームメンバー:{{count,number}}人',
teamMember_other: 'チームメンバー:{{count,number}}人',
annotationQuota: 'アノテーション・クォータ',
buildApps: 'アプリの数:{{count}}個',
documents: '{{count}}の知識文書',
buildApps: 'アプリの数:{{count,number}}個',
documents: '{{count,number}}の知識文書',
documentsTooltip: 'ナレッジデータソースからインポートされたドキュメントの数に対するクォータ。',
vectorSpace: '{{size}}の知識データストレージ',
vectorSpaceTooltip: '高品質インデックスモードのドキュメントは、知識データストレージのリソースを消費します。知識データストレージの上限に達すると、新しいドキュメントはアップロードされません。',
documentsRequestQuota: '{{count}}100/分のナレッジ リクエストのレート制限',
documentsRequestQuota: '{{count,number}}/分のナレッジ リクエストのレート制限',
documentsRequestQuotaTooltip: 'ナレッジベース内でワークスペースが1分間に実行できる操作の総数を示します。これには、データセットの作成、削除、更新、ドキュメントのアップロード、修正、アーカイブ、およびナレッジベースクエリが含まれます。この指標は、ナレッジベースリクエストのパフォーマンスを評価するために使用されます。例えば、Sandbox ユーザーが1分間に10回連続でヒットテストを実行した場合、そのワークスペースは次の1分間、データセットの作成、削除、更新、ドキュメントのアップロードや修正などの操作を一時的に実行できなくなります。',
documentProcessingPriority: '文書処理',
priority: {
@ -60,7 +60,7 @@ const translation = {
'priority': '優先',
'top-priority': '最優先',
},
logsHistory: 'ログ履歴',
logsHistory: '{{days}}ログ履歴',
customTools: 'カスタムツール',
unavailable: '利用不可',
days: '日',
@ -86,12 +86,12 @@ const translation = {
member: 'メンバー',
memberAfter: 'メンバー',
messageRequest: {
title: '{{count}}メッセージ',
titlePerMonth: '{{count}}メッセージ/月',
title: '{{count,number}}メッセージ',
titlePerMonth: '{{count,number}}メッセージ/月',
tooltip: 'Open Alモデルを使用するさまざまなプランのメッセージ呼び出しクォータ。上限を超えるメッセージは、Open AI APIキーを使用します。',
},
annotatedResponse: {
title: '{{count}}の注釈クォータ制限',
title: '{{count,number}}の注釈クォータ制限',
tooltip: '手動での回答の編集と注釈により、カスタマイズ可能な高品質の質問応答機能をアプリに提供します。(チャットアプリのみに適用)',
},
ragAPIRequestTooltip: 'Difyのナレッジベース処理機能のみを呼び出すAPI呼び出しの数を指します。',

View File

@ -47,20 +47,20 @@ const translation = {
teamMember_one: '{{count}} 名团队成员',
teamMember_other: '{{count}} 名团队成员',
annotationQuota: '标注回复数',
buildApps: '{{count}} 个应用程序',
documents: '{{count}} 个知识库文档上传配额',
buildApps: '{{count, number}} 个应用程序',
documents: '{{count, number}} 个知识库文档上传配额',
documentsTooltip: '从知识库的数据源导入的文档数量配额。',
vectorSpace: '{{size}} 知识库数据存储空间',
vectorSpaceTooltip: '采用高质量索引模式的文档会消耗知识数据存储资源。当知识数据存储达到限制时,将不会上传新文档。',
documentsRequestQuota: '{{count}}/分钟 知识库请求频率限制',
documentsRequestQuotaTooltip: '指每分钟内,一个空间在知识库中可执行的操作总数,包括数据集的创建、删除、更新,文档的上传、修改、归档,以及知识库查询等,用于评估知识库请求的性能。',
documentsRequestQuotaTooltip: '指每分钟内,一个空间在知识库中可执行的操作总数,包括数据集的创建、删除、更新,文档的上传、修改、归档,以及知识库查询等,用于评估知识库请求的性能。例如Sandbox 用户在 1 分钟内连续执行 10 次命中测试,其工作区将在接下来的 1 分钟内无法继续执行以下操作:数据集的创建、删除、更新,文档的上传、修改等操作。',
documentProcessingPriority: '文档处理',
priority: {
'standard': '标准',
'priority': '优先',
'top-priority': '最高优先级',
},
logsHistory: '日志历史',
logsHistory: '{{days}}日志历史',
customTools: '自定义工具',
unavailable: '不可用',
days: '天',
@ -86,12 +86,12 @@ const translation = {
member: '成员',
memberAfter: '个成员',
messageRequest: {
title: '{{count}} 条消息额度',
titlePerMonth: '{{count}} 条消息额度/月',
title: '{{count,number}} 条消息额度',
titlePerMonth: '{{count,number}} 条消息额度/月',
tooltip: '为不同方案提供基于OpenAl模型的消息响应额度。',
},
annotatedResponse: {
title: '{{count}} 个标注回复数',
title: '{{count,number}} 个标注回复数',
tooltip: '标注回复功能通过人工编辑标注为应用提供了可定制的高质量问答回复能力。',
},
ragAPIRequestTooltip: '指单独调用 Dify 知识库数据处理能力的 API。',