Skip to content

Commit

Permalink
chore(console): rename the display of builtin (#2351)
Browse files Browse the repository at this point in the history
  • Loading branch information
goldenxinxing authored Jun 14, 2023
1 parent 0c605a5 commit 9bc3ef7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
10 changes: 5 additions & 5 deletions console/src/domain/job/components/JobForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,6 @@ export interface IJobFormProps {
onSubmit: (data: ICreateJobSchema) => Promise<void>
}

const RuntimeType = {
BUILTIN: 'builtIn',
OTHER: 'other',
}

export default function JobForm({ job, onSubmit }: IJobFormProps) {
const styles = useStyles()
const [values, setValues] = useState<ICreateJobFormSchema | undefined>(undefined)
Expand All @@ -74,6 +69,11 @@ export default function JobForm({ job, onSubmit }: IJobFormProps) {
const [t] = useTranslation()
// const [resourcePool, setResourcePool] = React.useState<ISystemResourcePool | undefined>()

const RuntimeType = {
BUILTIN: t('runtime.image.builtin'),
OTHER: t('runtime.image.other'),
}

const [form] = useForm()
const history = useHistory()

Expand Down
8 changes: 8 additions & 0 deletions console/src/i18n/locales.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,14 @@ const runtime = {
en: 'Image Built',
zh: '镜像已构建',
},
'runtime.image.builtin': {
en: 'Built-in',
zh: '内置',
},
'runtime.image.other': {
en: 'Other',
zh: '其他',
},
}

const model = {
Expand Down

0 comments on commit 9bc3ef7

Please sign in to comment.