Skip to content

Commit 7740844

Browse files
lavine77sxf-xiongtao
authored andcommitted
feat: update some translations
1 parent da67adf commit 7740844

File tree

10 files changed

+27
-25
lines changed

10 files changed

+27
-25
lines changed

packages/web/i18n/en/admin.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"attribute": "Attribute",
6969
"author_name": "Author name",
7070
"default_system_name": "System name is used by default",
71-
"is_enable": "Enable",
71+
"is_enable": "Status",
7272
"charge_token_fee": "Charge for token consumption",
7373
"call_price": "API call cost (n credits/call)",
7474
"instructions": "Tips",
@@ -339,7 +339,7 @@
339339
"feishu_publish_channel_desc": "If disabled, Feishu will no longer be displayed in publishing channels.",
340340
"dingtalk_publish_channel": "DingTalk",
341341
"dingtalk_publish_channel_desc": "If disabled, DingTalk will no longer be displayed in publishing channels.",
342-
"wechat_publish_channel": "WeChat Official Account",
342+
"wechat_publish_channel": "WeChat official account",
343343
"wechat_publish_channel_desc": "If disabled, WeChat official account will no longer be displayed in publishing channels.",
344344
"content_security_review": "Content security audit",
345345
"baidu_security_id": "Baidu security ID",
@@ -429,7 +429,7 @@
429429
"free_user_cleanup_warning": "Warning for free edition user cleanup",
430430
"wechat_service_appid": "App ID of WeChat service account. Enter the business edition domain for the verification address:",
431431
"wechat_service_secret": "AppSecret of WeChat service account",
432-
"register_one": "register one",
432+
"register_one": "Register one",
433433
"provide": "Provider",
434434
"domain": "domain",
435435
"microsoft_app_client_id": "App (client) ID of Microsoft app",

packages/web/i18n/en/common.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,9 +241,9 @@
241241
"core.app.Publish": "Publish",
242242
"core.app.Publish Confirm": "Are you sure you want to publish the app? The app status will be immediately updated across all publishing channels.",
243243
"core.app.Publish app tip": "The app version will be updated across all publishing channels.",
244-
"core.app.QG.Custom prompt tip": "To ensure the generated content follows the required format, the prompts highlighted in yellow cannot be modified.",
244+
"core.app.QG.Custom prompt tip": "To ensure the generated content follows the required format, the prompt highlighted in yellow cannot be modified.",
245245
"core.app.QG.Custom prompt tip1": "To ensure the generated content follows the required format,",
246-
"core.app.QG.Custom prompt tip2": " the prompts highlighted in yellow ",
246+
"core.app.QG.Custom prompt tip2": " the prompt highlighted in yellow ",
247247
"core.app.QG.Custom prompt tip3": "cannot be modified.",
248248
"core.app.QG.Fixed Prompt": "Please strictly follow the format rules: \nReturn questions in JSON format: ['Question 1', 'Question 2', 'Question 3'].",
249249
"core.app.Question Guide": "Follow-up",
@@ -341,7 +341,7 @@
341341
"core.chat.Confirm to clear share chat history": "Are you sure you want to delete all chat history?",
342342
"core.chat.Converting to text": "Converting to text...",
343343
"core.chat.Custom History Title": "Custom title",
344-
"core.chat.Custom History Title Description": "If not configured, a title will be automatically generated based on the chat history.",
344+
"core.chat.Custom History Title Description": "If left blank, a title is generated based on the chat history.",
345345
"core.chat.Exit Chat": "Exit",
346346
"core.chat.Failed to initialize chat": "Chat initialization failed.",
347347
"core.chat.Feedback Failed": "Error occurred while submitting feedback.",

packages/web/i18n/en/dataset.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@
341341
"database_host_port_tip": "Range: {{min}}~{{max}}",
342342
"connection_pool_size_tooltip": "The app must be connected to the database for query. To ensure normal database operations, a connection pool will be established to ensure that the number of connections does not exceed the pool size. Please configure the pool size properly based on the database performance and concurrent access.",
343343
"database_table_desc_tip": "To increase the accuracy of answers, please accurately describe the meaning and purpose of the table. The model will call the table based on the description.",
344-
"database_tables": "Tables",
344+
"database_tables": "Database tables",
345345
"remove_warning": "Confirm"
346346
}
347347

packages/web/i18n/en/publish.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
"edit_link": "Edit",
1111
"feishu_api": "Feishu API",
1212
"feishu_bot": "Feishu bot",
13-
"feishu_bot_desc": "Connect to Feishu bot via API",
13+
"feishu_bot_desc": "Connect to Feishu bot via API.",
1414
"key_alias": "Alias of the key for display only",
1515
"key_tips": "You can use an API key to access certain APIs. (Accessing apps requires in-app API keys.)",
1616
"link_name": "Name of the link to share",
1717
"new_feishu_bot": "Create Feishu bot",
1818
"official_account.create_modal_title": "Create WeChat official account connection",
19-
"official_account.desc": "Connect to WeChat official account via API",
19+
"official_account.desc": "Connect to WeChat official account via API.",
2020
"official_account.edit_modal_title": "Edit WeChat official account connection",
2121
"official_account.name": "WeChat official account connection",
2222
"official_account.wechat": "WeChat official account",
@@ -33,12 +33,12 @@
3333
"token_auth_use_cases": "View authentication guide",
3434
"wecom.api": "WeCom API",
3535
"wecom.bot": "WeCom bot",
36-
"wecom.bot_desc": "Connect to WeCom bot via API",
36+
"wecom.bot_desc": "Connect to WeCom bot via API.",
3737
"wecom.create_modal_title": "Create WeCom bot",
3838
"wecom.edit_modal_title": "Edit WeCom bot",
3939
"wecom.title": "WeCom bots",
4040
"dingtalk.bot": "DingTalk bot",
41-
"dingtalk.bot_desc": "Connect to DingTalk bot via API",
41+
"dingtalk.bot_desc": "Connect to DingTalk bot via API.",
4242
"dingtalk.create_modal_title": "Create DingTalk bot",
4343
"dingtalk.edit_modal_title": "Edit DingTalk bot",
4444
"dingtalk.title": "DingTalk bots",

packages/web/i18n/en/user.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"login.error": "Login error occurred.",
2727
"login.password_condition": "Password cannot exceed 60 characters.",
2828
"login.success": "Login successful.",
29-
"manage_team": "Team",
29+
"manage_team": "Teams",
3030
"name": "Name",
3131
"new_password": "New password",
3232
"notification.remind_owner_bind": "Please remind the creator to specify an account to receive notifications.",

projects/app/src/components/core/ai/ModelTable/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ const ModelTable = () => {
9595
priceLabel: (
9696
<Flex color={'myGray.700'}>
9797
{`${t('common:Input')}: `}
98-
<Box fontWeight={'bold'} color={'myGray.900'} mr={0.5}>
98+
<Box fontWeight={'bold'} color={'myGray.900'} mx={0.5}>
9999
{item.charsPointsPrice || 0}
100100
</Box>
101101
{` ${t('common:support.wallet.subscription.point')}/1K tokens`}
@@ -135,7 +135,7 @@ const ModelTable = () => {
135135
priceLabel: item.charsPointsPrice ? (
136136
<Flex color={'myGray.700'}>
137137
{`${t('common:Input')}: `}
138-
<Box fontWeight={'bold'} color={'myGray.900'} mr={0.5}>
138+
<Box fontWeight={'bold'} color={'myGray.900'} mx={0.5}>
139139
{item.charsPointsPrice}
140140
</Box>
141141
{` ${t('common:support.wallet.subscription.point')}/1K tokens`}

projects/app/src/components/core/app/formRender/LabelAndForm.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import type { UseFormReturn } from 'react-hook-form';
77
import { Controller } from 'react-hook-form';
88
import InputRender from '.';
99
import type { SpecificProps } from './type';
10+
import { useTranslation } from 'next-i18next';
1011

1112
// Helper function to flatten error object keys
1213
const getFlattenedErrorKeys = (errors: any, prefix = ''): string[] => {
@@ -45,13 +46,14 @@ const LabelAndFormRender = ({
4546
showValueType?: boolean;
4647
} & SpecificProps &
4748
BoxProps) => {
49+
const { t } = useTranslation();
4850
const { control } = variablesForm;
4951

5052
return (
5153
<Box _notLast={{ mb: 4 }}>
5254
<Flex alignItems={'center'} mb={1}>
53-
{typeof label === 'string' ? <FormLabel required={required}>{label}</FormLabel> : label}
54-
{placeholder && <QuestionTip ml={1} label={placeholder} />}
55+
{typeof label === 'string' ? <FormLabel required={required}>{t(label)}</FormLabel> : label}
56+
{placeholder && <QuestionTip ml={1} label={t(placeholder)} />}
5557
</Flex>
5658

5759
<Controller

projects/app/src/pageComponents/account/model/ModelConfigTable.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -114,22 +114,22 @@ const ModelTable = ({ Tab }: { Tab: React.ReactNode }) => {
114114
<Box fontWeight={'bold'} color={'myGray.900'} mr={0.5} ml={2}>
115115
{item.inputPrice || 0}
116116
</Box>
117-
{`${t('common:support.wallet.subscription.point')}/1K Tokens`}
117+
{`${t('common:support.wallet.subscription.point')}/1K tokens`}
118118
</Flex>
119119
<Flex>
120120
{`${t('common:Output')}: `}
121121
<Box fontWeight={'bold'} color={'myGray.900'} mr={0.5} ml={2}>
122122
{item.outputPrice || 0}
123123
</Box>
124-
{`${t('common:support.wallet.subscription.point')}/1K Tokens`}
124+
{`${t('common:support.wallet.subscription.point')}/1K tokens`}
125125
</Flex>
126126
</Box>
127127
) : (
128128
<Flex color={'myGray.700'}>
129129
<Box fontWeight={'bold'} color={'myGray.900'} mr={0.5}>
130130
{item.charsPointsPrice || 0}
131131
</Box>
132-
{`${t('common:support.wallet.subscription.point')}/1K Tokens`}
132+
{`${t('common:support.wallet.subscription.point')}/1K tokens`}
133133
</Flex>
134134
),
135135
tagColor: 'blue'
@@ -142,10 +142,10 @@ const ModelTable = ({ Tab }: { Tab: React.ReactNode }) => {
142142
priceLabel: (
143143
<Flex color={'myGray.700'}>
144144
{`${t('common:Input')}: `}
145-
<Box fontWeight={'bold'} color={'myGray.900'} mr={0.5}>
145+
<Box fontWeight={'bold'} color={'myGray.900'} mx={0.5}>
146146
{item.charsPointsPrice || 0}
147147
</Box>
148-
{` ${t('common:support.wallet.subscription.point')}/1K Tokens`}
148+
{` ${t('common:support.wallet.subscription.point')}/1K tokens`}
149149
</Flex>
150150
),
151151
tagColor: 'yellow'
@@ -188,10 +188,10 @@ const ModelTable = ({ Tab }: { Tab: React.ReactNode }) => {
188188
priceLabel: item.charsPointsPrice ? (
189189
<Flex color={'myGray.700'}>
190190
{`${t('common:Input')}: `}
191-
<Box fontWeight={'bold'} color={'myGray.900'} mr={0.5}>
191+
<Box fontWeight={'bold'} color={'myGray.900'} mx={0.5}>
192192
{item.charsPointsPrice}
193193
</Box>
194-
{` ${t('common:support.wallet.subscription.point')}/1K Tokens`}
194+
{` ${t('common:support.wallet.subscription.point')}/1K tokens`}
195195
</Flex>
196196
) : (
197197
'-'

projects/app/src/pageComponents/account/model/ModelDashboard/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ const ModelDashboard = ({ Tab }: { Tab: React.ReactNode }) => {
618618
label: t('account_model:avg_ttfb'),
619619
dataKey: 'avgTtfb',
620620
color: '#FF5630',
621-
formatter: (value: number) => `${value.toFixed(2)}s`
621+
formatter: (value: number) => `${value.toFixed(2)}`
622622
}
623623
]}
624624
/>

projects/app/src/pageComponents/account/team/PermissionManage/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ function PermissionManage({
215215
<Thead>
216216
<Tr bg={'white !important'}>
217217
<Th bg="myGray.100" borderLeftRadius="md" maxW={'150px'}>
218-
{`${t('user:team.group.members')} / ${t('user:team.org.org')} / ${t('user:team.group.group')}`}
218+
{`${t('user:team.group.members')}/${t('user:team.org.org')}/${t('user:team.group.group')}`}
219219
<QuestionTip ml="1" label={t('user:team.group.permission_tip')} />
220220
</Th>
221221
<Th bg="myGray.100">

0 commit comments

Comments
 (0)