2023-10-30-语言适配 en

This commit is contained in:
2023-10-30 17:26:36 +08:00
parent cec54c175b
commit 2bb795c05b
33 changed files with 969 additions and 2745 deletions

View File

View File

@@ -0,0 +1,295 @@
export default {
Header:{
hello:'hello',
HOME:'HOME',
LIBRARY:'LIBRARY',
HISTORY:'HISTORY',
bindEmail:'bind email',
logOff:'log off',
skip:'skip',
emailContent:'you have binded email',
Email:'Email',
NextStep:'Next step',
verification:'Enter verification code',
SentTo:'Sent to',
Resend:'Resend',
jsContent1:'The email format is incorrect',
jsContent2:'Succeeded in binding the mailbox.',
jsContent3:`You have not performed any operation for a long time. You must be active;otherwise, you will log out in {numTime} S`,
},
Habit:{
Workspace:'Workspace',
WorkspaceSetting:'Workspace Setting',
settingWorkspace:'adjust your workspace setting',
Overall:'Overall',
Single:'Single',
System:'System',
Designer:'Designer',
Mannequin:'Mannequin',
Current:'Current',
User:'User',
jsContent1:'Whether to delete the workspace?',
jsContent2:'Please enter a workbench name',
},
RobotAssist:{
inputContent1:"write a message~",
jsContent1:"Please enter content",
},
HomeView:{
GetStarted:'Get Started',
Start:'Start',
Edit:'Edit',
Design:'Design',
Redesign:'Redesign',
GeneratedDesign:'Generated Design',
SelectedDesign:'Selected Design',
Export:'Export',
jsContent1:'You must choose one or more colors for further process.',
jsContent2:'You must choose one or more colors for further process.',
jsContent3:'Failed to export the file',
},
LibraryPage:{
Upload:'Upload',
Generate:'Generate',
Delete:'Delete',
Rename:'Rename',
inputContent1:'Search by your style code',
all:'all',
ImageOnly:'Image Only',
TextOnly:'Text Only',
TextImage:'Text-Image',
inputContent2:'Prompt input',
maximumLength:'The entered content exceeds the maximum length.',
Model1:'Model1',
Model2:'Model2',
inputContent3:'Prompt input',
Cancel:'Cancel',
Sure:'Sure',
Moodboard:'Moodboard',
Prints:'Prints',
Sketches:'Sketches',
Mannequins:'Mannequins',
jsContent1:'Are you sure to delete the picture?',
jsContent2:'Are you sure to delete the picture?',
jsContent3:'You can only upload Image file!',
jsContent4:'Image must smaller than 2MB!',
jsContent5:'This picture has been uploaded whether to continue uploading',
jsContent6:'The entered content exceeds the maximum length.',
jsContent7:'Please enter content"',
},
HistoryPage:{
History:'History',
StartDate:'Start Date',
EndDate:'End Date',
inputContent1:'Search by collection name',
Detail:'Detail',
Rename:'Rename',
Retrieve:'Retrieve',
Delete:'Delete',
inputContent2:'Enter a new name',
Submit:'Submit',
CollectionsName:'Collections Name',
UptateTime:'Uptate Time',
SketchCounts:'Sketch Counts',
Operations:'Operations',
jsContent1:'Deleted successfully',
jsContent2:'Do you really want to delete this collection? ',
jsContent3:'Change successfully',
jsContent4:'Image must smaller than 2MB!',
jsContent5:'This picture has been uploaded whether to continue uploading',
jsContent6:'The entered content exceeds the maximum length.',
jsContent7:'Please enter content"',
},
ModelPlacement:{
Registration:'Registration',
Submit:'Submit',
Preview:'Preview',
Back:'Back',
Restore:'Restore',
System:'System',
Library:'Library',
Point:'Point',
RemovePoint:'Remove Point',
mannequinHint:'Please change the pure white inside the mannequin for another color to enhance your experience',
SHOULDER:'SHOULDER',
WAISTBAND:'WAISTBAND',
HAND:'HAND',
jsContent1:"You haven't marked the image yet, and the model will not be uploaded. Are you sure you want to close it?",
jsContent2:'This picture has been uploaded whether to continue uploading',
},
ModelPlacementMobile:{
Registration:'Registration',
Submit:'Submit',
Preview:'Preview',
Back:'Back',
Restore:'Restore',
Point:'Point',
RemovePoint:'Remove Point',
mannequinHint:'Please change the pure white inside the mannequin for another color to enhance your experience',
SHOULDER:'SHOULDER',
WAISTBAND:'WAISTBAND',
HAND:'HAND',
jsContent1:"You haven't marked the image yet, and the model will not be uploaded. Are you sure you want to close it?",
jsContent2:'This picture has been uploaded whether to continue uploading',
},
Upload:{
Delete:'Delete',
Maximum2M:'Maximum 10 images can be uploaded, Maximum 2M per image',
jsContent1:'You can only upload Image file!',
jsContent2:'Image must smaller than 2MB!',
jsContent3:'upload failed',
},
SketchboardUpload:{
Upload:'Upload',
Library:'Library',
Generate:'Generate',
PIN:'PIN',
Thumbnail:'Thumbnail preview of selected sketchboard',
inputContent1:'Caption generation',
maximumLength:'The entered content exceeds the maximum length.',
jsContent1:"upload failed",
jsContent2:"You can only upload Image file!",
jsContent3:'Image must smaller than 2MB!',
jsContent4:"Maximum number of allowable file uploads has been exceeded",
jsContent5:"Please select a picture",
jsContent6:"The entered content exceeds the maximum length.",
jsContent7:"Please enter content",
},
PrintboardUpload:{
Upload:'Upload',
Library:'Library',
Generate:'Generate',
PIN:'PIN',
Thumbnail:'Thumbnail preview of selected printboard',
inputContent1:'Caption generation',
maximumLength:'The entered content exceeds the maximum length.',
jsContent1:"You can only upload Image file!",
jsContent2:'Image must smaller than 2MB!',
jsContent3:"Maximum number of allowable file uploads has been exceeded",
jsContent4:"Please select a picture",
jsContent5:"The entered content exceeds the maximum length.",
jsContent6:"Please enter content",
},
ColorboardUpload:{
Thumbnail:'Thumbnail preview of selected colorboard',
Clear:'Clear',
Palette:'Palette',
HEX:'HEX',
RGBA:'RGBA',
AutoRecognize:'Auto Recognize',
ColorCode:'Color Code',
ExtractColor:'Extract Color',
jsContent1:"Your browser does not support it",
jsContent2:"Can't find the TCX color",
jsContent3:"You can only upload Image file!",
jsContent4:'Image must smaller than 2MB!',
},
MoodboardUpload:{
Upload:'Upload',
Library:'Library',
Generate:'Generate',
Delete:'Delete',
Thumbnail:'Thumbnail preview of selected moodboard',
layout:'layout',
jsContent1:'You can select up to 8 images',
jsContent2:"upload failed",
jsContent3:"You can only upload Image file!",
jsContent4:'Image must smaller than 2MB!',
jsContent5:'Please click Layout to sort randomly',
},
Cropper:{
Cutpicture:'Cut picture',
Finish:'Finish',
Cancel:'Cancel',
CropPreview:'Crop Preview',
},
Material:{
inputContent1:'Please input',
PIN:'PIN',
},
MarketingSketchUpload:{
Upload:'Upload',
MyLibrary:'My Library',
maximumLength:'Maximum 15 images can be uploaded, Maximum 2M per image',
jsContent1:'upload failed',
jsContent2:"You can only upload Image file!",
jsContent3:'Image must smaller than 2MB!',
jsContent5:'Maximum number of allowable file uploads has been exceeded',
},
layout:{
MoodBoardDesign:'MoodBoard Design',
Submit:'Submit',
},
Generate:{
ImageOnly:'Image Only',
TextOnly:'Text Only',
TextImage:'Text-Image',
Model1:'Model1',
Model2:'Model2',
inputContent1:'Prompt input',
Generate:'Generate',
maximumLength:'The entered content exceeds the maximum length.',
jsContent1:"You can only upload Image file!",
jsContent2:'Image must smaller than 2MB!',
jsContent3:"Please enter content",
jsContent4:'The entered content exceeds the maximum length.',
jsContent5:"Please enter content",
jsContent6:"You can select up to 8 images",
jsContent7:"upload failed",
},
collectionModal:{
Moodboard:'Moodboard',
Printboard:'Printboard',
Colorboard:'Colorboard',
Sketchboard:'Sketchboard',
collection:'select moodboard for your collection',
jsContent1:'You must select the image and then use the layout.',
jsContent2:'The uploaded files will not be saved, being sure to continue? ',
jsContent3:'You must choose one or more colors for further process.',
},
DesignDetail:{
Details:'Details',
EditDetails:'Edit the details of your design',
Submit:'Submit',
CurrentApparel:'Current Apparel',
CurrentPrint:'Current Print',
CurrentColor:'Current Color',
},
DesignDetailAlter:{
Upload:'Upload',
Library:'Library',
inputContent1:'Please input',
Palette:'Palette',
HEX:'HEX',
RGBA:'RGBA',
AutoRecognize:'Auto Recognize',
Delete:'Delete',
ColorCode:'Color Code',
jsContent1:"Your browser does not support it",
jsContent2:"You can select up to 8 images",
jsContent3:"upload failed",
jsContent4:'You can only upload Image file!',
jsContent5:'Image must smaller than 5MB!',
jsContent6:"Can't find the TCX color",
},
DesignDetailEnd:{
NewApparel:'New Apparel',
NewPrint:'New Print',
Placement:'Placement',
Overall:'Overall',
Single:'Single',
NewColor:'New Color',
preview:'preview',
Layout:'Layout',
jsContent1:'Please select print',
},
DesignPrintOperation:{
Placement:'Placement',
Overall:'Overall',
Single:'Single',
Random:'Random',
inputContent:'Please input',
preview:'preview',
jsContent1:'The above changes are not saved, being sure to continue? ',
},
}

View File

@@ -0,0 +1,31 @@
import { createI18n } from 'vue-i18n'
// element-plus 中的语言配置
import elementEnLocale from './en'
import elementZhLocale from './zh-cn'
// 自己的语言配置
import enLocale from './en'
import zhLocale from './zh-cn'
// 语言配置整合
const messages = {
'en':{
...enLocale,
...elementEnLocale
},
'zh-cn':{
...zhLocale,
...elementZhLocale
}
}
// 创建 i18n
const i18n = createI18n({
legacy: false,
globalInjection:true, // 全局模式,可以直接使用 $t
locale: 'en',
messages: messages
})
export default i18n

295
src/lang/zh-cn.ts Normal file
View File

@@ -0,0 +1,295 @@
export default {
Header:{
hello:'你好',
HOME:'首页',
LIBRARY:'收藏',
HISTORY:'历史',
bindEmail:'绑定邮箱',
logOff:'退出登录',
skip:'跳过',
emailContent:'你绑定了的邮箱',
Email:'邮箱',
NextStep:'下一步',
verification:'输入验证码',
SentTo:'发送',
Resend:'重发',
jsContent1:'邮箱格式不正确',
jsContent2:'绑定邮箱成功',
jsContent3:`已经长时间未操作,您必须活跃起来,否则将会在{numTime} S 后退出登录`,
},
Habit:{
Workspace:'工作空间',
WorkspaceSetting:'设置工作空间',
settingWorkspace:'调整您的工作空间',
Overall:'整体',
Single:'单件',
System:'系统',
Designer:'设计师',
Mannequin:'模特',
Current:'当前',
User:'用户',
jsContent1:'是否删除指定工作空间',
jsContent2:'请输入当前工作空间的名字',
},
RobotAssist:{
inputContent1:"问我什么都行~",
jsContent1:"请输入内容~",
},
HomeView:{
GetStarted:'开始设计',
Start:'重新开始',
Edit:'编辑',
Design:'设计',
Redesign:'重新设计',
GeneratedDesign:'生成的设计',
SelectedDesign:'喜欢的设计',
Export:'导出',
jsContent1:'你必须选择一种或多种颜色进行下一步处理。',
jsContent2:'你必须选择一种或多种颜色进行下一步处理。',
jsContent3:'导出文件失败。',
},
LibraryPage:{
Upload:'Upload',
Generate:'Generate',
Delete:'Delete',
Rename:'Rename',
inputContent1:'Search by your style code',
all:'all',
ImageOnly:'Image Only',
TextOnly:'Text Only',
TextImage:'Text-Image',
inputContent2:'Prompt input',
maximumLength:'The entered content exceeds the maximum length.',
Model1:'Model1',
Model2:'Model2',
inputContent3:'Prompt input',
Cancel:'Cancel',
Sure:'Sure',
Moodboard:'Moodboard',
Prints:'Prints',
Sketches:'Sketches',
Mannequins:'Mannequins',
jsContent1:'Are you sure to delete the picture?',
jsContent2:'Are you sure to delete the picture?',
jsContent3:'You can only upload Image file!',
jsContent4:'Image must smaller than 2MB!',
jsContent5:'This picture has been uploaded whether to continue uploading',
jsContent6:'The entered content exceeds the maximum length.',
jsContent7:'Please enter content"',
},
HistoryPage:{
History:'History',
StartDate:'Start Date',
EndDate:'End Date',
inputContent1:'Search by collection name',
Detail:'Detail',
Rename:'Rename',
Retrieve:'Retrieve',
Delete:'Delete',
inputContent2:'Enter a new name',
Submit:'Submit',
CollectionsName:'Collections Name',
UptateTime:'Uptate Time',
SketchCounts:'Sketch Counts',
Operations:'Operations',
jsContent1:'Deleted successfully',
jsContent2:'Do you really want to delete this collection? ',
jsContent3:'Change successfully',
jsContent4:'Image must smaller than 2MB!',
jsContent5:'This picture has been uploaded whether to continue uploading',
jsContent6:'The entered content exceeds the maximum length.',
jsContent7:'Please enter content"',
},
ModelPlacement:{
Registration:'Registration',
Submit:'Submit',
Preview:'Preview',
Back:'Back',
Restore:'Restore',
System:'System',
Library:'Library',
Point:'Point',
RemovePoint:'Remove Point',
mannequinHint:'Please change the pure white inside the mannequin for another color to enhance your experience',
SHOULDER:'SHOULDER',
WAISTBAND:'WAISTBAND',
HAND:'HAND',
jsContent1:"You haven't marked the image yet, and the model will not be uploaded. Are you sure you want to close it?",
jsContent2:'This picture has been uploaded whether to continue uploading',
},
ModelPlacementMobile:{
Registration:'Registration',
Submit:'Submit',
Preview:'Preview',
Back:'Back',
Restore:'Restore',
Point:'Point',
RemovePoint:'Remove Point',
mannequinHint:'Please change the pure white inside the mannequin for another color to enhance your experience',
SHOULDER:'SHOULDER',
WAISTBAND:'WAISTBAND',
HAND:'HAND',
jsContent1:"You haven't marked the image yet, and the model will not be uploaded. Are you sure you want to close it?",
jsContent2:'This picture has been uploaded whether to continue uploading',
},
Upload:{
Delete:'Delete',
Maximum2M:'Maximum 10 images can be uploaded, Maximum 2M per image',
jsContent1:'You can only upload Image file!',
jsContent2:'Image must smaller than 2MB!',
jsContent3:'upload failed',
},
SketchboardUpload:{
Upload:'Upload',
Library:'Library',
Generate:'Generate',
PIN:'PIN',
Thumbnail:'Thumbnail preview of selected sketchboard',
inputContent1:'Caption generation',
maximumLength:'The entered content exceeds the maximum length.',
jsContent1:"upload failed",
jsContent2:"You can only upload Image file!",
jsContent3:'Image must smaller than 2MB!',
jsContent4:"Maximum number of allowable file uploads has been exceeded",
jsContent5:"Please select a picture",
jsContent6:"The entered content exceeds the maximum length.",
jsContent7:"Please enter content",
},
PrintboardUpload:{
Upload:'Upload',
Library:'Library',
Generate:'Generate',
PIN:'PIN',
Thumbnail:'Thumbnail preview of selected printboard',
inputContent1:'Caption generation',
maximumLength:'The entered content exceeds the maximum length.',
jsContent1:"You can only upload Image file!",
jsContent2:'Image must smaller than 2MB!',
jsContent3:"Maximum number of allowable file uploads has been exceeded",
jsContent4:"Please select a picture",
jsContent5:"The entered content exceeds the maximum length.",
jsContent6:"Please enter content",
},
ColorboardUpload:{
Thumbnail:'Thumbnail preview of selected colorboard',
Clear:'Clear',
Palette:'Palette',
HEX:'HEX',
RGBA:'RGBA',
AutoRecognize:'Auto Recognize',
ColorCode:'Color Code',
ExtractColor:'Extract Color',
jsContent1:"Your browser does not support it",
jsContent2:"Can't find the TCX color",
jsContent3:"You can only upload Image file!",
jsContent4:'Image must smaller than 2MB!',
},
MoodboardUpload:{
Upload:'Upload',
Library:'Library',
Generate:'Generate',
Delete:'Delete',
Thumbnail:'Thumbnail preview of selected moodboard',
layout:'layout',
jsContent1:'You can select up to 8 images',
jsContent2:"upload failed",
jsContent3:"You can only upload Image file!",
jsContent4:'Image must smaller than 2MB!',
jsContent5:'Please click Layout to sort randomly',
},
Cropper:{
Cutpicture:'Cut picture',
Finish:'Finish',
Cancel:'Cancel',
CropPreview:'Crop Preview',
},
Material:{
inputContent1:'Please input',
PIN:'PIN',
},
MarketingSketchUpload:{
Upload:'Upload',
MyLibrary:'My Library',
maximumLength:'Maximum 15 images can be uploaded, Maximum 2M per image',
jsContent1:'upload failed',
jsContent2:"You can only upload Image file!",
jsContent3:'Image must smaller than 2MB!',
jsContent5:'Maximum number of allowable file uploads has been exceeded',
},
layout:{
MoodBoardDesign:'MoodBoard Design',
Submit:'Submit',
},
Generate:{
ImageOnly:'Image Only',
TextOnly:'Text Only',
TextImage:'Text-Image',
Model1:'Model1',
Model2:'Model2',
inputContent1:'Prompt input',
Generate:'Generate',
maximumLength:'The entered content exceeds the maximum length.',
jsContent1:"You can only upload Image file!",
jsContent2:'Image must smaller than 2MB!',
jsContent3:"Please enter content",
jsContent4:'The entered content exceeds the maximum length.',
jsContent5:"Please enter content",
jsContent6:"You can select up to 8 images",
jsContent7:"upload failed",
},
collectionModal:{
Moodboard:'Moodboard',
Printboard:'Printboard',
Colorboard:'Colorboard',
Sketchboard:'Sketchboard',
collection:'select moodboard for your collection',
jsContent1:'You must select the image and then use the layout.',
jsContent2:'The uploaded files will not be saved, being sure to continue? ',
jsContent3:'You must choose one or more colors for further process.',
},
DesignDetail:{
Details:'Details',
EditDetails:'Edit the details of your design',
Submit:'Submit',
CurrentApparel:'Current Apparel',
CurrentPrint:'Current Print',
CurrentColor:'Current Color',
},
DesignDetailAlter:{
Upload:'Upload',
Library:'Library',
inputContent1:'Please input',
Palette:'Palette',
HEX:'HEX',
RGBA:'RGBA',
AutoRecognize:'Auto Recognize',
Delete:'Delete',
ColorCode:'Color Code',
jsContent1:"Your browser does not support it",
jsContent2:"You can select up to 8 images",
jsContent3:"upload failed",
jsContent4:'You can only upload Image file!',
jsContent5:'Image must smaller than 5MB!',
jsContent6:"Can't find the TCX color",
},
DesignDetailEnd:{
NewApparel:'New Apparel',
NewPrint:'New Print',
Placement:'Placement',
Overall:'Overall',
Single:'Single',
NewColor:'New Color',
preview:'preview',
Layout:'Layout',
jsContent1:'Please select print',
},
DesignPrintOperation:{
Placement:'Placement',
Overall:'Overall',
Single:'Single',
Random:'Random',
inputContent:'Please input',
preview:'preview',
jsContent1:'The above changes are not saved, being sure to continue? ',
},
}