Skip to content

Commit

Permalink
feat: i18n update (labring#132)
Browse files Browse the repository at this point in the history
* feat: i18n for login page

* chore: update proxy

* feat: add message utils

* feat: add alias for 't'

* feat: update i18n for message
  • Loading branch information
object-kaz committed Jul 18, 2022
1 parent 055aa0c commit efe0cb9
Show file tree
Hide file tree
Showing 14 changed files with 20,434 additions and 51 deletions.
1 change: 1 addition & 0 deletions packages/web/auto-imports.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ declare global {
const useDisplayMedia: typeof import('@vueuse/core')['useDisplayMedia']
const useDocumentVisibility: typeof import('@vueuse/core')['useDocumentVisibility']
const useDraggable: typeof import('@vueuse/core')['useDraggable']
const useDropZone: typeof import('@vueuse/core')['useDropZone']
const useElementBounding: typeof import('@vueuse/core')['useElementBounding']
const useElementByPoint: typeof import('@vueuse/core')['useElementByPoint']
const useElementHover: typeof import('@vueuse/core')['useElementHover']
Expand Down
14 changes: 0 additions & 14 deletions packages/web/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,14 @@ declare module '@vue/runtime-core' {
Counter: typeof import('./src/components/Counter.vue')['default']
ElButton: typeof import('element-plus/es')['ElButton']
ElCard: typeof import('element-plus/es')['ElCard']
ElContainer: typeof import('element-plus/es')['ElContainer']
ElDialog: typeof import('element-plus/es')['ElDialog']
ElDropdown: typeof import('element-plus/es')['ElDropdown']
ElDropdownItem: typeof import('element-plus/es')['ElDropdownItem']
ElDropdownMenu: typeof import('element-plus/es')['ElDropdownMenu']
ElForm: typeof import('element-plus/es')['ElForm']
ElFormItem: typeof import('element-plus/es')['ElFormItem']
ElHeader: typeof import('element-plus/es')['ElHeader']
ElIcon: typeof import('element-plus/es')['ElIcon']
ElInput: typeof import('element-plus/es')['ElInput']
ElMain: typeof import('element-plus/es')['ElMain']
ElRadio: typeof import('element-plus/es')['ElRadio']
ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup']
ElScrollbar: typeof import('element-plus/es')['ElScrollbar']
ElSpace: typeof import('element-plus/es')['ElSpace']
ElTable: typeof import('element-plus/es')['ElTable']
ElTableColumn: typeof import('element-plus/es')['ElTableColumn']
ElTag: typeof import('element-plus/es')['ElTag']
ElTooltip: typeof import('element-plus/es')['ElTooltip']
ElUpload: typeof import('element-plus/es')['ElUpload']
Footer: typeof import('./src/components/Footer.vue')['default']
Loading: typeof import('element-plus/es')['ElLoadingDirective']
RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView']
}
Expand Down
8 changes: 8 additions & 0 deletions packages/web/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,13 @@ layout:
pages:
account:
login:
account: Account
login-btn: Login
password: Password
title: Login
register: Register
utils:
form:
email: Email is invalid
password: '{name} requires at least 8 digits'
required: '{name} cannot be empty'
19 changes: 19 additions & 0 deletions packages/web/locales/zh-CN.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,24 @@ layout:
pages:
account:
login:
account: 账户
login-btn: 登录
password: 密码
title: Laf 云开发账户登录
register: 注册
utils:
form:
email: 邮箱格式不正确
password: '{name} 至少需要8位'
required: '{name}不能为空'
message:
confirm:
buttons:
cancel: 取消
confirm: 确认
default-message: 确定执行此操作吗?
default-title: 提示
error:
default-message: 操作失败
success:
default-message: 操作成功
Loading

0 comments on commit efe0cb9

Please sign in to comment.