From a0da3e3b7bc1dac241d83328bd27c7adb79d2a2a Mon Sep 17 00:00:00 2001 From: XiaoXinPro 14 IAH5R <568170040@qq.com> Date: Mon, 4 Sep 2023 15:22:47 +0800 Subject: [PATCH] add --- src/App.vue | 4 +- src/lang/package/en.ts | 185 +++++++++++++++++++----------------- src/lang/package/zh-cn.ts | 185 +++++++++++++++++++----------------- src/layout/index.vue | 15 ++- src/types/auto-imports.d.ts | 6 ++ src/types/components.d.ts | 3 + 6 files changed, 219 insertions(+), 179 deletions(-) diff --git a/src/App.vue b/src/App.vue index 9fb00e0..dd91f22 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,6 +1,6 @@ diff --git a/src/lang/package/en.ts b/src/lang/package/en.ts index 8994911..5b40122 100644 --- a/src/lang/package/en.ts +++ b/src/lang/package/en.ts @@ -5,11 +5,11 @@ export default { document: "Document", }, // 公用 - public:{ - cancel:'Cancel', - confirm:'Confirm', - username:'Username', - avatar:'Avatar', + public: { + cancel: "Cancel", + confirm: "Confirm", + username: "Username", + avatar: "Avatar", }, // 登录页面国际化 login: { @@ -27,41 +27,41 @@ export default { signIn: "Already got an account? Sign in here", signUp: "Don't have an account? Sign up here", forgetPwd: "I forgot my password", - forgetPwdTitle:'Forgot password', - SendEmail:'Send SMS Code', - resetPassword:'Reset password', - setNewPwd:'Set new password', - newPwd:'New password', - oldPwd:'Old password', - confirmNewPwd:'Confirm new password', - confirm:'Confirm', - gohome:'Back to home page', - SMSCode:'SMS Code', - SMSLogin:'SMS login', - pwsLogin:'Account password login', - sendSMS:'Send SMS', - setInvitatioCode:"Invitation Code", - invitatioCode:"Invitation Code", + forgetPwdTitle: "Forgot password", + SendEmail: "Send SMS Code", + resetPassword: "Reset password", + setNewPwd: "Set new password", + newPwd: "New password", + oldPwd: "Old password", + confirmNewPwd: "Confirm new password", + confirm: "Confirm", + gohome: "Back to home page", + SMSCode: "SMS Code", + SMSLogin: "SMS login", + pwsLogin: "Account password login", + sendSMS: "Send SMS", + setInvitatioCode: "Invitation Code", + invitatioCode: "Invitation Code", }, // 导航栏国际化 navbar: { account: "Account", logout: "Logout", - goLogin:'Go and log in', - LanguageChange:'Language switching' + goLogin: "Go and log in", + LanguageChange: "Language switching", }, // 创作视频 createVideo: { title: "Create Video", - availableMould:"Available moulds", - personalWarehouse:'Personal warehouse', + availableMould: "Available moulds", + personalWarehouse: "Personal warehouse", typeScript: "Type your script", uploadAudio: "Upload audio", - recordedAudio:'Recorded audio', - startRecorded:'Start recording', - stopRecorded:'Stop recording', + recordedAudio: "Recorded audio", + startRecorded: "Start recording", + stopRecorded: "Stop recording", aiScript: "Ai script", typeTitle: "Type a title", confirm: "Confirm", @@ -72,37 +72,37 @@ export default { reselect: "Reselect", sureUpload: "Confirm upload", generateVideo: "Generate video", - saveVideo:'Save manuscript', - select:'Please select', - music:'Music', - Aipicture:'Ai-generated pictures', - AipictureTip:'Please customize your picture', - chooseMusic:'Choose music', - searchMusic:'Search music', - copywriting:'Copywriting', - BackgroundImage:'Background Image', - comingSoon:'COMING SOON', - material:'Material', - subtitles:'Subtitles', - sex:"Sex", - videoRatio:"Video Ratio", - all:'All', - male:'Male', - female:'Female', - landscape:'Landscape', - portrait:'Portrait', - systemBGI:'System background diagram', - personBGI:'Person background diagram', - systemMaterial:'System Material', - personMaterial:'Person Material', - abscissa:'abscissa', - ordinate:'ordinate', - hierarchy:'hierarchy', - ratio:'ratio', - entered:'entered', - tooltip2:'Add Pause', - SubtitlesTip:"Subtitles will be shown here", - subtitlesSwitch:'Subtitles Switch', + saveVideo: "Save manuscript", + select: "Please select", + music: "Music", + Aipicture: "Ai-generated pictures", + AipictureTip: "Please customize your picture", + chooseMusic: "Choose music", + searchMusic: "Search music", + copywriting: "Copywriting", + BackgroundImage: "Background Image", + comingSoon: "COMING SOON", + material: "Material", + subtitles: "Subtitles", + sex: "Sex", + videoRatio: "Video Ratio", + all: "All", + male: "Male", + female: "Female", + landscape: "Landscape", + portrait: "Portrait", + systemBGI: "System background diagram", + personBGI: "Person background diagram", + systemMaterial: "System Material", + personMaterial: "Person Material", + abscissa: "abscissa", + ordinate: "ordinate", + hierarchy: "hierarchy", + ratio: "ratio", + entered: "entered", + tooltip2: "Add Pause", + SubtitlesTip: "Subtitles will be shown here", + subtitlesSwitch: "Subtitles Switch", }, // 我的视频 @@ -125,19 +125,20 @@ export default { manuscriptText: "Manuscript", generatingText: "The video is generating, Please wait a moment", generationFailedText: "The video generate is failed, Reason:", - edit:'Edit', - upSharpness:'Upgrade image quality', - upSharpnessTips:'If you are satisfied with the preview, you can click here to improve the video sharpness ~', - freeUserTip:'Free user-generated videos are limited to 5 minute', - hasNewVideo:'You have a new video status!', - reset:"reset", + edit: "Edit", + upSharpness: "Upgrade image quality", + upSharpnessTips: + "If you are satisfied with the preview, you can click here to improve the video sharpness ~", + freeUserTip: "Free user-generated videos are limited to 5 minute", + hasNewVideo: "You have a new video status!", + reset: "reset", }, // 个人账户 account: { title: "My Account", reSetPwd: "Reset password", - editInfo:'Edit personal information', + editInfo: "Edit personal information", until: "Until", getMore: "UPGRADE", copyCode: "Copy invitation code", @@ -150,8 +151,8 @@ export default { successed: "Successed", failed: "Failed", msg1: "Obtain one video production time", - inputCode:'Please enter the invitation code', - submit:'Submit', + inputCode: "Please enter the invitation code", + submit: "Submit", noListOrder: "没有数据哦,快去邀请更多人加入我们吧~", noListInvite: "No data, please invite more people to join us", }, @@ -167,30 +168,38 @@ export default { selectPlan: "SELECT PLAN", WeChatPay: "WeChatPay", Alipay: "Alipay", - score:'Credits', - day:'day', - second:'seconds', - yes:'yes', - no:'no', - InviteGetscore:'Invite users to get score', - createVideoPrice:'Create video prices', - AIGeneratesPhotoPrices:'AI generates photo unit prices', - UnitChargeDuration:'Unit charge duration', - Language:'Language', - sound:'Sound', - IndividualVideoDuration:'Individual video duration', - Watermark:'Watermark', - AIGeneratedPortrait:'AI generated portrait', - PhotoSinging:'Photo singing', - AIGeneratedText:'The number of times AI generated text', - VideoResolution:'Video resolution', - DigitalPersonTemplate:'Digital person template', - talkUs:"Talk With Us", + score: "Credits", + day: "day", + second: "seconds", + yes: "yes", + no: "no", + InviteGetscore: "Invite users to get score", + createVideoPrice: "Create video prices", + AIGeneratesPhotoPrices: "AI generates photo unit prices", + UnitChargeDuration: "Unit charge duration", + Language: "Language", + sound: "Sound", + IndividualVideoDuration: "Individual video duration", + Watermark: "Watermark", + AIGeneratedPortrait: "AI generated portrait", + PhotoSinging: "Photo singing", + AIGeneratedText: "The number of times AI generated text", + VideoResolution: "Video resolution", + DigitalPersonTemplate: "Digital person template", + talkUs: "Talk With Us", }, - API:{ - title:'API Access', + + userModel: { + title: "User Model", }, + voiceModel: { + title: "Voice Model", + }, + + API: { + title: "API Access", + }, signSucceed: { title: "Confirm your email", diff --git a/src/lang/package/zh-cn.ts b/src/lang/package/zh-cn.ts index 8cb7adf..6561c10 100644 --- a/src/lang/package/zh-cn.ts +++ b/src/lang/package/zh-cn.ts @@ -5,11 +5,11 @@ export default { document: "项目文档", }, // 公用 - public:{ - cancel:'取消', - confirm:'确定', - username:'用户名', - avatar:'头像', + public: { + cancel: "取消", + confirm: "确定", + username: "用户名", + avatar: "头像", }, // 登录页面国际化 login: { @@ -28,41 +28,41 @@ export default { signIn: "立即登录", signUp: "立即注册", forgetPwd: "忘记密码", - forgetPwdTitle:'忘记密码', - SendEmail:'发送短信验证码', - resetPassword:'重置密码', - setNewPwd:'设置新密码', - newPwd:'新密码', - oldPwd:'旧密码', - confirmNewPwd:'确认新密码', - confirm:'确定', - gohome:'进入首页', - SMSCode:'短信验证码', - SMSLogin:'短信登录', - pwsLogin:'账号密码登录', - sendSMS:'发送短信验证码', - setInvitatioCode:"填写邀请码", - invitatioCode:"邀请码", + forgetPwdTitle: "忘记密码", + SendEmail: "发送短信验证码", + resetPassword: "重置密码", + setNewPwd: "设置新密码", + newPwd: "新密码", + oldPwd: "旧密码", + confirmNewPwd: "确认新密码", + confirm: "确定", + gohome: "进入首页", + SMSCode: "短信验证码", + SMSLogin: "短信登录", + pwsLogin: "账号密码登录", + sendSMS: "发送短信验证码", + setInvitatioCode: "填写邀请码", + invitatioCode: "邀请码", }, // 导航栏国际化 navbar: { account: "账户", logout: "注销", - goLogin:'登录', - LanguageChange:'语言切换', + goLogin: "登录", + LanguageChange: "语言切换", }, // 创作视频 createVideo: { title: "创作视频", - availableMould:"可用模板", - personalWarehouse:'个人仓库', + availableMould: "可用模板", + personalWarehouse: "个人仓库", typeScript: "输入文案", uploadAudio: "上传音频", - recordedAudio:'录制音频', - startRecorded:'开始录制', - stopRecorded:'停止录制', + recordedAudio: "录制音频", + startRecorded: "开始录制", + stopRecorded: "停止录制", aiScript: "AI生成文本", typeTitle: "输入标题", confirm: "确定", @@ -73,37 +73,37 @@ export default { reselect: "重新选择", sureUpload: "确认上传", generateVideo: "生成视频", - saveVideo:'保存草稿', - select:'请选择', - music:'音乐', - Aipicture:'Ai生成图片', - AipictureTip:'请自定义您的图片', - chooseMusic:'选择音乐', - searchMusic:'搜索音乐', - copywriting:'文案', - comingSoon:'敬请期待', - BackgroundImage:'背景', - material:'素材', - subtitles:'字幕', - sex:"性别", - videoRatio:"视频比例", - all:'全部', - male:'男性', - female:'女性', - landscape:'横屏', - portrait:'竖屏', - systemBGI:'系统背景', - personBGI:'个人背景', - systemMaterial:'系统素材', - personMaterial:'个人素材', - abscissa:'横坐标', - ordinate:'纵坐标', - hierarchy:'层级', - ratio:'缩放倍率', - entered:'已输入', - tooltip2:'添加停顿', - SubtitlesTip:"字幕将在此处展示", - subtitlesSwitch:'字幕开关', + saveVideo: "保存草稿", + select: "请选择", + music: "音乐", + Aipicture: "Ai生成图片", + AipictureTip: "请自定义您的图片", + chooseMusic: "选择音乐", + searchMusic: "搜索音乐", + copywriting: "文案", + comingSoon: "敬请期待", + BackgroundImage: "背景", + material: "素材", + subtitles: "字幕", + sex: "性别", + videoRatio: "视频比例", + all: "全部", + male: "男性", + female: "女性", + landscape: "横屏", + portrait: "竖屏", + systemBGI: "系统背景", + personBGI: "个人背景", + systemMaterial: "系统素材", + personMaterial: "个人素材", + abscissa: "横坐标", + ordinate: "纵坐标", + hierarchy: "层级", + ratio: "缩放倍率", + entered: "已输入", + tooltip2: "添加停顿", + SubtitlesTip: "字幕将在此处展示", + subtitlesSwitch: "字幕开关", }, // 我的视频 @@ -126,19 +126,19 @@ export default { manuscriptText: "草稿", generatingText: "视频正在生成中,请稍等哦", generationFailedText: "视频生成失败。原因:", - edit:'编辑', - upSharpness:'升级画质', - upSharpnessTips:'如果对预览效果满意,您可以点击此处来提升视频清晰度~', - freeUserTip:'免费用户生成视频时长限制为5分钟', - hasNewVideo:'您有新的视频状态!', - reset:"重置", + edit: "编辑", + upSharpness: "升级画质", + upSharpnessTips: "如果对预览效果满意,您可以点击此处来提升视频清晰度~", + freeUserTip: "免费用户生成视频时长限制为5分钟", + hasNewVideo: "您有新的视频状态!", + reset: "重置", }, // 个人账户 account: { title: "个人账户", reSetPwd: "修改密码", - editInfo:'编辑个人信息', + editInfo: "编辑个人信息", until: "有效期至", getMore: "升级套餐", copyCode: "复制邀请码", @@ -151,8 +151,8 @@ export default { successed: "支付成功", failed: "支付失败", msg1: "获得视频制作次数一次", - inputCode:'请输入邀请码', - submit:'提交', + inputCode: "请输入邀请码", + submit: "提交", noListOrder: "没有数据哦,快去邀请更多人加入我们吧~", noListInvite: "没有数据哦,快去邀请更多人加入我们吧~", }, @@ -168,28 +168,37 @@ export default { selectPlan: "方案选择", WeChatPay: "微信支付", Alipay: "支付宝支付", - score:'积分', - day:'天', - second:'秒', - yes:'是', - no:'否', - InviteGetscore:'邀请用户得到的积分', - createVideoPrice:'创建视频单价', - AIGeneratesPhotoPrices:'AI生成照片单价', - UnitChargeDuration:'单价收费时长', - Language:'语言', - sound:'声音', - IndividualVideoDuration:'单个视频时长', - Watermark:'水印', - AIGeneratedPortrait:'AI生成人像', - PhotoSinging:'照片唱歌', - AIGeneratedText:'AI生成脚本次数', - VideoResolution:'视频分辨率', - DigitalPersonTemplate:'数字人模版', - talkUs:"联系我们", + score: "积分", + day: "天", + second: "秒", + yes: "是", + no: "否", + InviteGetscore: "邀请用户得到的积分", + createVideoPrice: "创建视频单价", + AIGeneratesPhotoPrices: "AI生成照片单价", + UnitChargeDuration: "单价收费时长", + Language: "语言", + sound: "声音", + IndividualVideoDuration: "单个视频时长", + Watermark: "水印", + AIGeneratedPortrait: "AI生成人像", + PhotoSinging: "照片唱歌", + AIGeneratedText: "AI生成脚本次数", + VideoResolution: "视频分辨率", + DigitalPersonTemplate: "数字人模版", + talkUs: "联系我们", + }, + + userModel: { + title: "定制分身", + }, + + voiceModel: { + title: "定制声纹", }, - API:{ - title:'API 接口', + + API: { + title: "API 接口", }, signSucceed: { diff --git a/src/layout/index.vue b/src/layout/index.vue index b5e2a5f..f89f0a5 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -23,6 +23,19 @@ {{ $t("myCreating.title") }} +