feat: 弹窗&prompt i18n

This commit is contained in:
zhangyh
2025-11-14 15:10:32 +08:00
parent 80472a9cec
commit c32afb99ce
11 changed files with 444 additions and 162 deletions

View 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') }
]