feat: 弹窗&prompt i18n
This commit is contained in:
30
src/component/home/tools/poseTransfer/prompt.ts
Normal file
30
src/component/home/tools/poseTransfer/prompt.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
export const getFirstAndLastFrame = (t: (key: string) => string) => [
|
||||
{ id: '1', type: 'text', value: t('poseTransfer.firstAndLastFrameText1') },
|
||||
{
|
||||
id: '2',
|
||||
type: 'input',
|
||||
value: '',
|
||||
placeholder: t('poseTransfer.firstAndLastFramePlaceholder1')
|
||||
},
|
||||
{ id: '3', type: 'text', value: t('poseTransfer.firstAndLastFrameText2') },
|
||||
{ id: '4', type: 'input', value: '', placeholder: t('poseTransfer.firstAndLastFramePlaceholder2') },
|
||||
{
|
||||
id: '5',
|
||||
type: 'text',
|
||||
value: t('poseTransfer.firstAndLastFrameText3')
|
||||
}
|
||||
]
|
||||
|
||||
export const getFirstFrame = (t: (key: string) => string) => [
|
||||
{ id: '1', type: 'text', value: t('poseTransfer.firstFrameText1') },
|
||||
{ id: '2', type: 'input', value: '', placeholder: t('poseTransfer.firstFramePlaceholder1') },
|
||||
{ id: '3', type: 'text', value: t('poseTransfer.firstFrameText2') },
|
||||
{ id: '4', type: 'input', value: '', placeholder: t('poseTransfer.firstFramePlaceholder2') },
|
||||
{ id: '5', type: 'text', value: t('poseTransfer.firstFrameText3') },
|
||||
{ id: '6', type: 'input', value: '', placeholder: t('poseTransfer.firstFramePlaceholder3') },
|
||||
{ id: '7', type: 'text', value: t('poseTransfer.firstFrameText4') },
|
||||
{ id: '8', type: 'input', value: '', placeholder: t('poseTransfer.firstFramePlaceholder4') },
|
||||
{ id: '9', type: 'text', value: t('poseTransfer.firstFrameText5') },
|
||||
{ id: '10', type: 'input', value: '', placeholder: t('poseTransfer.firstFramePlaceholder5') },
|
||||
{ id: '11', type: 'text', value: t('poseTransfer.firstFrameText6') }
|
||||
]
|
||||
Reference in New Issue
Block a user