Skip to content

Commit

Permalink
config lang
Browse files Browse the repository at this point in the history
  • Loading branch information
Sjj1024 committed Oct 20, 2024
1 parent e7314b1 commit dfd696d
Show file tree
Hide file tree
Showing 5 changed files with 206 additions and 68 deletions.
72 changes: 72 additions & 0 deletions src/lang/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,76 @@ export default {
projectName: 'Project Name',
projectNamePlaceholder: 'Please enter the project name, example: PakePlus',
releaseBody: 'See the assets to download and install this version.',
aboutTitle: 'About PakePlus',
aboutTips:
'Open source and free, web page packaging cross-platform APP, just need a Github Token',
configToken: 'Please configure the token first',
tokenOk: 'The token is available',
tokenError: 'The token is not available.',
projectExist: 'The project already exists.',
creatProjectError: 'Create project failed',
englishName: 'Please enter a pure English project name.',
preEnvironment: 'Preparing the environment...',
back: 'Back',
configProject: 'Configure the project',
configProjectTips:
'Configure the website, name, identifier, etc. of the current project。',
relHistore: 'Release History',
delProject: 'Delete Project',
webUrl: 'Website',
example: 'example',
appName: 'Name',
appId: 'Identifier',
appIcon: 'Icon',
appVersion: 'Version',
platform: 'Platform',
desktop: 'Desktop',
winSize: 'Size',
width: 'width',
height: 'height',
appDes: 'Desc',
desTips: 'Please enter the project description.',
save: 'Save',
preview: 'Preview',
publish: 'Release',
build: 'Build',
pubPlatform: 'Platform',
pubMode: 'Mode',
closeDebug: 'close debug',
openDebug: 'open debug',
releaseNotes: 'Notes',
inputRelNotes: 'Please enter the release notes',
pubNotesTips:
'Note: The build and publish process usually takes about 15 minutes......',
inputWebPlaceholder: 'Please enter the website address.',
inputAppNamePlaceholder: 'Please enter the APP name.',
inputAppIdPlaceholder: 'Please enter the APPID',
inputAppIconPlaceholder: 'Please upload the APP icon.',
inputAppVersionPlaceholder: 'Please enter the APP version number.',
inputPrePlatformPlaceholder: 'Please select the preview platform',
inputAppDesPlaceholder: 'Please enter the APP description',
confirmDelProject: 'Are you sure you want to delete the current project?',
tips: 'tips',
saveSuccess: 'Save successfully.',
startCompile: 'Start compiling',
preCompile: 'Preparing to compile',
waiting: 'Waiting',
inProgress: 'Building',
buildSuccess: 'Build successful',
failure: 'failure',
cancelled: 'cancelled',
queued: 'queued',
timed_out: 'timed out',
completed: 'completed',
requesting: 'requesting',
assetName: 'Resource Name',
download: 'download',
assetSize: 'Size',
releaseDate: 'Date',
assetDesc:
'Resource description: The dmg suffix is the macOS version, the deb suffix is the Linux version, and the exe and msi suffixes are the Windows versions. Clicking on the resource name will copy the download link, and clicking on download will use the browser to download the software package.',
githubRepo: 'Github Repository',
navigation: 'Guides',
buyCoffee: 'If you find this helpful, you can buy me a cup of coffee.',
onlyPng: 'Only png format images are supported',
}
68 changes: 68 additions & 0 deletions src/lang/zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,72 @@ export default {
releaseBody: '请参阅下载和安装此版本的资源。',
aboutTitle: '关于PakePlus',
aboutTips: '开源免费,Web网页打包跨平台APP,仅仅只需要一个Github Token',
configToken: '请先配置Token',
tokenOk: 'Token可用',
tokenError: 'Token不可用',
projectExist: '项目已存在',
creatProjectError: '创建项目失败',
englishName: '请输入纯英文项目名称',
preEnvironment: '准备环境...',
back: '返回',
configProject: '配置项目',
configProjectTips:
'配置当前项目网站地址、APP显示名称、英文名称、APP标识等。',
relHistore: '发布历史',
delProject: '删除项目',
webUrl: '网站地址',
example: '例如',
appName: 'APP名称',
appId: 'APP标识',
appIcon: 'APP图标',
appVersion: 'APP版本',
platform: '预览平台',
desktop: '桌面端',
winSize: '窗口大小',
width: '宽度',
height: '高度',
appDes: 'APP描述',
desTips: '请输入项目描述',
save: '保存',
preview: '预览',
publish: '发布',
build: '打包发布',
pubPlatform: '发布平台',
pubMode: '发布模式',
closeDebug: '关闭调试',
openDebug: '开启调试',
releaseNotes: '发布说明',
inputRelNotes: '请输入发布说明',
pubNotesTips: '注: 打包发布大概需要15分钟左右的时间,请耐心等待......',
inputWebPlaceholder: '请输入网站地址',
inputAppNamePlaceholder: '请输入APP名称',
inputAppIdPlaceholder: '请输入APPID',
inputAppIconPlaceholder: '请上传APP图标',
inputAppVersionPlaceholder: '请输入APP版本号',
inputPrePlatformPlaceholder: '请选择预览平台',
inputAppDesPlaceholder: '请输入APP描述',
confirmDelProject: '确定要删除当前项目吗?',
tips: '提示',
saveSuccess: '保存成功',
startCompile: '开始编译',
preCompile: '准备编译',
waiting: '等待中',
inProgress: '构建中',
buildSuccess: '构建成功',
failure: '构建失败',
cancelled: '构建取消',
queued: '构建队列中',
timed_out: '构建超时',
completed: '构建完成',
requesting: '请求中',
assetName: '资源名称',
download: '下载',
assetSize: '资源大小',
releaseDate: '发布日期',
assetDesc:
'资源说明:dmg结尾的是macOS版本,deb结尾的是Linux版本,exe和msi结尾的是Windows版本,点击资源名称可以复制下载链接,点击下载会使用浏览器下载软件包。',
githubRepo: '开源地址',
navigation: '使用教程',
buyCoffee: '如果对你有帮助,可以请我喝杯咖啡',
onlyPng: '仅支持png格式的图片',
}
2 changes: 1 addition & 1 deletion src/pages/about.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ import { useI18n } from 'vue-i18n'
import { useRouter } from 'vue-router'
import { pakeUrlMap, openUrl } from '@/utils/common'
const { t, locale } = useI18n()
const { t } = useI18n()
const router = useRouter()
Expand Down
Loading

0 comments on commit dfd696d

Please sign in to comment.