Skip to content

Commit

Permalink
update: i18n common.json keys (#2124)
Browse files Browse the repository at this point in the history
  • Loading branch information
zjy365 authored Jul 22, 2024
1 parent 85de3c1 commit f24e41f
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const CodeEditor = (props: Props) => {
isOpen={isOpen}
onClose={onClose}
iconSrc="modal/edit"
title={t('common:Code editor')}
title={t('common:code_editor')}
w={'full'}
>
<ModalBody>
Expand Down
14 changes: 7 additions & 7 deletions packages/web/i18n/en/common.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"Add new": "Add new",
"add_new": "Add new",
"App": "App",
"Click to resume": "Resume",
"Code editor": "Code edit",
"click_to_resume": "Resume",
"code_editor": "Code edit",
"Export": "Export",
"Field name": "Name",
"field_name": "Name",
"Folder": "Folder",
"Is open": "Opened",
"is_open": "Opened",
"Login": "Login",
"Move": "Move",
"Name": "Name",
"New Create": "Create New",
"No data": "No data",
"new_create": "Create New",
"no_data": "No data",
"Rename": "Rename",
"Resume": "Resume",
"Running": "Running",
Expand Down
14 changes: 7 additions & 7 deletions packages/web/i18n/zh/common.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"Add new": "新增",
"add_new": "新增",
"App": "应用",
"Click to resume": "点击恢复",
"Code editor": "代码编辑",
"click_to_resume": "点击恢复",
"code_editor": "代码编辑",
"Export": "导出",
"Field name": "字段名",
"field_name": "字段名",
"Folder": "文件夹",
"Is open": "是否开启",
"is_open": "是否开启",
"Login": "登录",
"Move": "移动",
"Name": "名称",
"New Create": "新建",
"No data": "暂无数据",
"new_create": "新建",
"no_data": "暂无数据",
"Rename": "重命名",
"Resume": "恢复",
"Running": "运行中",
Expand Down
2 changes: 1 addition & 1 deletion projects/app/src/components/core/app/InputGuideConfig.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ const InputGuideConfig = ({
>
<ModalBody px={[5, 16]} py={[4, 8]}>
<Flex justifyContent={'space-between'} alignItems={'center'}>
<FormLabel>{t('common:Is open')}</FormLabel>
<FormLabel>{t('common:is_open')}</FormLabel>
<Switch
isChecked={isOpenQuestionGuide}
onChange={(e) => {
Expand Down
2 changes: 1 addition & 1 deletion projects/app/src/components/support/apikey/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ const ApiKeyTable = ({ tips, appId }: { tips: string; appId?: string }) => {
})
}
>
{t('common:New Create')}
{t('common:new_create')}
</Button>
</Box>
</Box>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const ResumeInherit = ({
)();
}}
>
{commonT('Click to resume')}
{commonT('click_to_resume')}
</Box>

<CommonConfirmModal />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const ExtractFieldModal = ({
</Flex>

<Flex mt={5} alignItems={'center'}>
<FormLabel flex={['0 0 80px', '0 0 100px']}>{t('common:Field name')}</FormLabel>
<FormLabel flex={['0 0 80px', '0 0 100px']}>{t('common:field_name')}</FormLabel>
<Input
bg={'myGray.50'}
placeholder="name/age/sql"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const RenderToolInput = ({
size={'sm'}
onClick={() => setEditField(defaultEditFormData)}
>
{t('common:Add new')}
{t('common:add_new')}
</Button>
)}
</HStack>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ const CustomLinkInput = () => {
});
}}
>
{commonT('Add new')}
{commonT('add_new')}
</Button>
<Button
isDisabled={list.filter((item) => !!item.externalFileUrl).length === 0}
Expand Down

0 comments on commit f24e41f

Please sign in to comment.