chore: add locales
This commit is contained in:
@@ -13,7 +13,11 @@ export default {
|
|||||||
'gpuservice.template.command.placeholder':
|
'gpuservice.template.command.placeholder':
|
||||||
'Separate arguments with spaces; wrap arguments containing spaces in quotes, e.g.: /bin/bash -c "echo hello world"',
|
'Separate arguments with spaces; wrap arguments containing spaces in quotes, e.g.: /bin/bash -c "echo hello world"',
|
||||||
'gpuservice.template.mountPath': 'Mount Path',
|
'gpuservice.template.mountPath': 'Mount Path',
|
||||||
|
'gpuservice.template.mountPath.tips':
|
||||||
|
'The default mount path for the storage volume when creating an instance from this template. Useful for persisting data that needs to be retained while the instance is running.',
|
||||||
'gpuservice.template.containerDisk': 'Container Disk (GB)',
|
'gpuservice.template.containerDisk': 'Container Disk (GB)',
|
||||||
|
'gpuservice.template.containerDisk.tips':
|
||||||
|
'The size of the container system disk.',
|
||||||
'gpuservice.template.memory': 'Memory (GB)',
|
'gpuservice.template.memory': 'Memory (GB)',
|
||||||
'gpuservice.instance.containerDisk.remaining':
|
'gpuservice.instance.containerDisk.remaining':
|
||||||
'Container Disk (Max {count} GB)',
|
'Container Disk (Max {count} GB)',
|
||||||
|
|||||||
@@ -13,7 +13,11 @@ export default {
|
|||||||
'gpuservice.template.command.placeholder':
|
'gpuservice.template.command.placeholder':
|
||||||
'引数はスペースで区切り、スペースを含む引数は引用符で囲んでください。例:/bin/bash -c "echo hello world"',
|
'引数はスペースで区切り、スペースを含む引数は引用符で囲んでください。例:/bin/bash -c "echo hello world"',
|
||||||
'gpuservice.template.mountPath': 'マウントパス',
|
'gpuservice.template.mountPath': 'マウントパス',
|
||||||
|
'gpuservice.template.mountPath.tips':
|
||||||
|
'このテンプレートからインスタンスを作成する際に、ストレージボリュームがデフォルトでマウントされるパスです。インスタンスの実行中に保持する必要があるデータの永続化に使用できます。',
|
||||||
'gpuservice.template.containerDisk': 'コンテナディスク (GB)',
|
'gpuservice.template.containerDisk': 'コンテナディスク (GB)',
|
||||||
|
'gpuservice.template.containerDisk.tips':
|
||||||
|
'コンテナシステムディスクのサイズです。',
|
||||||
'gpuservice.template.memory': 'メモリ (GB)',
|
'gpuservice.template.memory': 'メモリ (GB)',
|
||||||
'gpuservice.instance.containerDisk.remaining':
|
'gpuservice.instance.containerDisk.remaining':
|
||||||
'コンテナディスク (最大 {count} GB)',
|
'コンテナディスク (最大 {count} GB)',
|
||||||
|
|||||||
@@ -14,7 +14,11 @@ export default {
|
|||||||
'gpuservice.template.command.placeholder':
|
'gpuservice.template.command.placeholder':
|
||||||
'Разделяйте аргументы пробелами; аргументы с пробелами заключайте в кавычки, например: /bin/bash -c "echo hello world"',
|
'Разделяйте аргументы пробелами; аргументы с пробелами заключайте в кавычки, например: /bin/bash -c "echo hello world"',
|
||||||
'gpuservice.template.mountPath': 'Путь монтирования',
|
'gpuservice.template.mountPath': 'Путь монтирования',
|
||||||
|
'gpuservice.template.mountPath.tips':
|
||||||
|
'Путь, по которому том хранилища монтируется по умолчанию при создании экземпляра из этого шаблона. Может использоваться для сохранения данных, которые нужно сохранить во время работы экземпляра.',
|
||||||
'gpuservice.template.containerDisk': 'Диск контейнера (GB)',
|
'gpuservice.template.containerDisk': 'Диск контейнера (GB)',
|
||||||
|
'gpuservice.template.containerDisk.tips':
|
||||||
|
'Размер системного диска контейнера.',
|
||||||
'gpuservice.template.memory': 'Память (GB)',
|
'gpuservice.template.memory': 'Память (GB)',
|
||||||
'gpuservice.instance.containerDisk.remaining':
|
'gpuservice.instance.containerDisk.remaining':
|
||||||
'Диск контейнера (Макс. {count} GB)',
|
'Диск контейнера (Макс. {count} GB)',
|
||||||
|
|||||||
@@ -13,7 +13,10 @@ export default {
|
|||||||
'gpuservice.template.command.placeholder':
|
'gpuservice.template.command.placeholder':
|
||||||
'Argümanları boşlukla ayırın; boşluk içeren argümanları tırnak içine alın, örn.: /bin/bash -c "echo hello world"',
|
'Argümanları boşlukla ayırın; boşluk içeren argümanları tırnak içine alın, örn.: /bin/bash -c "echo hello world"',
|
||||||
'gpuservice.template.mountPath': 'Bağlama Yolu',
|
'gpuservice.template.mountPath': 'Bağlama Yolu',
|
||||||
|
'gpuservice.template.mountPath.tips':
|
||||||
|
'Bu şablondan bir örnek oluşturulurken depolama biriminin varsayılan olarak bağlanacağı yol. Örnek çalışırken saklanması gereken verileri kalıcı hale getirmek için kullanılabilir.',
|
||||||
'gpuservice.template.containerDisk': 'Konteyner Diski (GB)',
|
'gpuservice.template.containerDisk': 'Konteyner Diski (GB)',
|
||||||
|
'gpuservice.template.containerDisk.tips': 'Konteyner sistem diskinin boyutu.',
|
||||||
'gpuservice.template.memory': 'Bellek (GB)',
|
'gpuservice.template.memory': 'Bellek (GB)',
|
||||||
'gpuservice.instance.containerDisk.remaining':
|
'gpuservice.instance.containerDisk.remaining':
|
||||||
'Konteyner Diski (Maks. {count} GB)',
|
'Konteyner Diski (Maks. {count} GB)',
|
||||||
|
|||||||
@@ -13,10 +13,13 @@ export default {
|
|||||||
'gpuservice.template.command.placeholder':
|
'gpuservice.template.command.placeholder':
|
||||||
'使用空格分隔参数;含空格的参数请用引号包裹,例如:/bin/bash -c "echo hello world"',
|
'使用空格分隔参数;含空格的参数请用引号包裹,例如:/bin/bash -c "echo hello world"',
|
||||||
'gpuservice.template.mountPath': '挂载路径',
|
'gpuservice.template.mountPath': '挂载路径',
|
||||||
'gpuservice.template.containerDisk': '容器磁盘(GB)',
|
'gpuservice.template.mountPath.tips':
|
||||||
'gpuservice.template.memory': '内存(GB)',
|
'在使用该模板创建实例时,存储卷默认挂载的路径,可用于持久化实例运行过程中需要保留的数据。',
|
||||||
'gpuservice.instance.containerDisk.remaining': '容器磁盘(最大{count}GB)',
|
'gpuservice.template.containerDisk': '容器磁盘(GB)',
|
||||||
'gpuservice.instance.memory.remaining': '内存(最大{count}GB)',
|
'gpuservice.template.containerDisk.tips': '容器系统盘大小。',
|
||||||
|
'gpuservice.template.memory': '内存(GB)',
|
||||||
|
'gpuservice.instance.containerDisk.remaining': '容器磁盘(最大 {count} GB)',
|
||||||
|
'gpuservice.instance.memory.remaining': '内存(最大 {count} GB)',
|
||||||
'gpuservice.template.displayName': '显示名称',
|
'gpuservice.template.displayName': '显示名称',
|
||||||
'gpuservice.template.displayName.max': '显示名称不能超过 63 个字符',
|
'gpuservice.template.displayName.max': '显示名称不能超过 63 个字符',
|
||||||
'gpuservice.template.ports': '端口',
|
'gpuservice.template.ports': '端口',
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import {
|
|||||||
useAppUtils
|
useAppUtils
|
||||||
} from '@gpustack/core-ui';
|
} from '@gpustack/core-ui';
|
||||||
import { useIntl } from '@umijs/max';
|
import { useIntl } from '@umijs/max';
|
||||||
import { Flex, Form } from 'antd';
|
import { Form } from 'antd';
|
||||||
import { useMemo } from 'react';
|
import { useMemo } from 'react';
|
||||||
import { GPUsConfigs } from '../../../resources/config/gpu-driver';
|
import { GPUsConfigs } from '../../../resources/config/gpu-driver';
|
||||||
import formStyles from '../../instances/styles/instances.module.less';
|
import formStyles from '../../instances/styles/instances.module.less';
|
||||||
@@ -179,39 +179,39 @@ const Basic: React.FC<BasicProps> = ({
|
|||||||
/>
|
/>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
</div>
|
</div>
|
||||||
|
<Form.Item<FormData>
|
||||||
<Flex gap={12}>
|
name={['spec', 'resources', 'localStorage']}
|
||||||
{page === 'template' && (
|
normalize={(value) => (value ? `${value}Gi` : undefined)}
|
||||||
<div style={{ flex: 1 }}>
|
getValueProps={(value) => ({
|
||||||
<Form.Item<FormData> name={['spec', 'volumeMount']}>
|
value: value ? String(value).replace(/Gi$/, '') : ''
|
||||||
<CInput.Input
|
})}
|
||||||
label={intl.formatMessage({
|
>
|
||||||
id: 'gpuservice.template.mountPath'
|
<InputNumber
|
||||||
})}
|
label={renderStorageLabel()}
|
||||||
placeholder={intl.formatMessage({
|
description={intl.formatMessage({
|
||||||
id: 'clusters.volume.mountPath.format'
|
id: 'gpuservice.template.containerDisk.tips'
|
||||||
})}
|
})}
|
||||||
disabled={disabled}
|
min={0}
|
||||||
/>
|
max={onceMaxRequest?.localStorage ?? undefined}
|
||||||
</Form.Item>
|
disabled={disabled}
|
||||||
</div>
|
/>
|
||||||
)}
|
</Form.Item>
|
||||||
<div style={{ flex: 1 }}>
|
{page === 'template' && (
|
||||||
<Form.Item<FormData>
|
<Form.Item<FormData> name={['spec', 'volumeMount']}>
|
||||||
name={['spec', 'resources', 'localStorage']}
|
<CInput.Input
|
||||||
normalize={(value) => (value ? `${value}Gi` : undefined)}
|
label={intl.formatMessage({
|
||||||
getValueProps={(value) => ({
|
id: 'gpuservice.template.mountPath'
|
||||||
value: value ? String(value).replace(/Gi$/, '') : ''
|
|
||||||
})}
|
})}
|
||||||
>
|
description={intl.formatMessage({
|
||||||
<InputNumber
|
id: 'gpuservice.template.mountPath.tips'
|
||||||
label={renderStorageLabel()}
|
})}
|
||||||
max={onceMaxRequest?.localStorage ?? undefined}
|
placeholder={intl.formatMessage({
|
||||||
disabled={disabled}
|
id: 'clusters.volume.mountPath.format'
|
||||||
/>
|
})}
|
||||||
</Form.Item>
|
disabled={disabled}
|
||||||
</div>
|
/>
|
||||||
</Flex>
|
</Form.Item>
|
||||||
|
)}
|
||||||
<Ports disabled={disabled} />
|
<Ports disabled={disabled} />
|
||||||
<Env disabled={disabled} />
|
<Env disabled={disabled} />
|
||||||
</>
|
</>
|
||||||
|
|||||||
Reference in New Issue
Block a user