Skip to content

Commit 3a0b80b

Browse files
committed
Merge remote-tracking branch 'origin/main'
2 parents 3859f52 + 61d55ee commit 3a0b80b

File tree

20 files changed

+379
-15
lines changed

20 files changed

+379
-15
lines changed

src/components/SelectLang/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import { Icon, Menu, Dropdown } from 'ant-design-vue'
44
import { i18nRender } from '@/locales'
55
import i18nMixin from '@/store/i18n-mixin'
66

7-
const locales = ['zh-CN', 'zh-TW']
7+
const locales = ['zh-CN', 'en-US']
88
const languageLabels = {
99
'zh-CN': '简体中文',
10-
'zh-TW': '繁体中文'
10+
'en-US': 'English'
1111
}
1212
// eslint-disable-next-line
1313
const languageIcons = {

src/locales/index.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,15 @@ import storage from 'store'
44
import moment from 'moment'
55

66
// default lang
7-
// import enUS from './lang/en-US'
8-
import zhCN from './lang/zh-CN'
7+
import enUS from './lang/en-US'
98

109
Vue.use(VueI18n)
1110

12-
export const defaultLang = 'zh-CN'
11+
export const defaultLang = 'en-US'
1312

1413
const messages = {
15-
// 'en-US': {
16-
// ...enUS
17-
// },
18-
'zh-CN': {
19-
...zhCN
14+
'en-US': {
15+
...enUS
2016
}
2117
}
2218

src/locales/lang/en-US.js

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
import antdEnUS from 'ant-design-vue/es/locale-provider/en_US'
2+
import momentEU from 'moment/locale/eu'
3+
import global from './en-US/global'
4+
5+
import menu from './en-US/menu'
6+
import setting from './en-US/setting'
7+
import user from './en-US/user'
8+
9+
import dashboard from './en-US/dashboard'
10+
import form from './en-US/form'
11+
import result from './en-US/result'
12+
import account from './en-US/account'
13+
14+
const components = {
15+
antLocale: antdEnUS,
16+
momentName: 'eu',
17+
momentLocale: momentEU
18+
}
19+
20+
export default {
21+
message: '-',
22+
23+
'layouts.usermenu.dialog.title': 'Message',
24+
'layouts.usermenu.dialog.content': 'Are you sure you would like to logout?',
25+
'layouts.userLayout.title': 'Ant Design',
26+
...components,
27+
...global,
28+
...menu,
29+
...setting,
30+
...user,
31+
...dashboard,
32+
...form,
33+
...result,
34+
...account
35+
}

src/locales/lang/en-US/account.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import settings from './account/settings'
2+
3+
export default {
4+
...settings
5+
}
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
export default {
2+
'account.settings.menuMap.basic': 'Basic Settings',
3+
'account.settings.menuMap.security': 'Security Settings',
4+
'account.settings.menuMap.custom': 'Custom Settings',
5+
'account.settings.menuMap.binding': 'Account Binding',
6+
'account.settings.menuMap.notification': 'New Message Notification',
7+
'account.settings.basic.avatar': 'Avatar',
8+
'account.settings.basic.change-avatar': 'Change avatar',
9+
'account.settings.basic.email': 'Email',
10+
'account.settings.basic.email-message': 'Please input your email!',
11+
'account.settings.basic.nickname': 'Nickname',
12+
'account.settings.basic.nickname-message': 'Please input your Nickname!',
13+
'account.settings.basic.profile': 'Personal profile',
14+
'account.settings.basic.profile-message': 'Please input your personal profile!',
15+
'account.settings.basic.profile-placeholder': 'Brief introduction to yourself',
16+
'account.settings.basic.country': 'Country/Region',
17+
'account.settings.basic.country-message': 'Please input your country!',
18+
'account.settings.basic.geographic': 'Province or city',
19+
'account.settings.basic.geographic-message': 'Please input your geographic info!',
20+
'account.settings.basic.address': 'Street Address',
21+
'account.settings.basic.address-message': 'Please input your address!',
22+
'account.settings.basic.phone': 'Phone Number',
23+
'account.settings.basic.phone-message': 'Please input your phone!',
24+
'account.settings.basic.update': 'Update Information',
25+
'account.settings.basic.update.success': 'Update basic information successfully',
26+
'account.settings.security.strong': 'Strong',
27+
'account.settings.security.medium': 'Medium',
28+
'account.settings.security.weak': 'Weak',
29+
'account.settings.security.password': 'Account Password',
30+
'account.settings.security.password-description': 'Current password strength:',
31+
'account.settings.security.phone': 'Security Phone',
32+
'account.settings.security.phone-description': 'Bound phone:',
33+
'account.settings.security.question': 'Security Question',
34+
'account.settings.security.question-description':
35+
'The security question is not set, and the security policy can effectively protect the account security',
36+
'account.settings.security.email': 'Backup Email',
37+
'account.settings.security.email-description': 'Bound Email:',
38+
'account.settings.security.mfa': 'MFA Device',
39+
'account.settings.security.mfa-description':
40+
'Unbound MFA device, after binding, can be confirmed twice',
41+
'account.settings.security.modify': 'Modify',
42+
'account.settings.security.set': 'Set',
43+
'account.settings.security.bind': 'Bind',
44+
'account.settings.binding.taobao': 'Binding Taobao',
45+
'account.settings.binding.taobao-description': 'Currently unbound Taobao account',
46+
'account.settings.binding.alipay': 'Binding Alipay',
47+
'account.settings.binding.alipay-description': 'Currently unbound Alipay account',
48+
'account.settings.binding.dingding': 'Binding DingTalk',
49+
'account.settings.binding.dingding-description': 'Currently unbound DingTalk account',
50+
'account.settings.binding.bind': 'Bind',
51+
'account.settings.notification.password': 'Account Password',
52+
'account.settings.notification.password-description':
53+
'Messages from other users will be notified in the form of a station letter',
54+
'account.settings.notification.messages': 'System Messages',
55+
'account.settings.notification.messages-description':
56+
'System messages will be notified in the form of a station letter',
57+
'account.settings.notification.todo': 'To-do Notification',
58+
'account.settings.notification.todo-description':
59+
'The to-do list will be notified in the form of a letter from the station',
60+
'account.settings.settings.open': 'Open',
61+
'account.settings.settings.close': 'Close'
62+
}

src/locales/lang/en-US/dashboard.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import analysis from './dashboard/analysis'
2+
3+
export default {
4+
...analysis
5+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
export default {
2+
'dashboard.analysis.test': 'Gongzhuan No.{no} shop',
3+
'dashboard.analysis.introduce': 'Introduce',
4+
'dashboard.analysis.total-sales': 'Total Sales',
5+
'dashboard.analysis.day-sales': 'Daily Sales',
6+
'dashboard.analysis.visits': 'Visits',
7+
'dashboard.analysis.visits-trend': 'Visits Trend',
8+
'dashboard.analysis.visits-ranking': 'Visits Ranking',
9+
'dashboard.analysis.day-visits': 'Daily Visits',
10+
'dashboard.analysis.week': 'WoW Change',
11+
'dashboard.analysis.day': 'DoD Change',
12+
'dashboard.analysis.payments': 'Payments',
13+
'dashboard.analysis.conversion-rate': 'Conversion Rate',
14+
'dashboard.analysis.operational-effect': 'Operational Effect',
15+
'dashboard.analysis.sales-trend': 'Stores Sales Trend',
16+
'dashboard.analysis.sales-ranking': 'Sales Ranking',
17+
'dashboard.analysis.all-year': 'All Year',
18+
'dashboard.analysis.all-month': 'All Month',
19+
'dashboard.analysis.all-week': 'All Week',
20+
'dashboard.analysis.all-day': 'All day',
21+
'dashboard.analysis.search-users': 'Search Users',
22+
'dashboard.analysis.per-capita-search': 'Per Capita Search',
23+
'dashboard.analysis.online-top-search': 'Online Top Search',
24+
'dashboard.analysis.the-proportion-of-sales': 'The Proportion Of Sales',
25+
'dashboard.analysis.dropdown-option-one': 'Operation one',
26+
'dashboard.analysis.dropdown-option-two': 'Operation two',
27+
'dashboard.analysis.channel.all': 'ALL',
28+
'dashboard.analysis.channel.online': 'Online',
29+
'dashboard.analysis.channel.stores': 'Stores',
30+
'dashboard.analysis.sales': 'Sales',
31+
'dashboard.analysis.traffic': 'Traffic',
32+
'dashboard.analysis.table.rank': 'Rank',
33+
'dashboard.analysis.table.search-keyword': 'Keyword',
34+
'dashboard.analysis.table.users': 'Users',
35+
'dashboard.analysis.table.weekly-range': 'Weekly Range'
36+
}

src/locales/lang/en-US/form.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import basicForm from './form/basicForm'
2+
3+
export default {
4+
...basicForm
5+
}
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
export default {
2+
'form.basic-form.basic.title': 'Basic form',
3+
'form.basic-form.basic.description':
4+
'Form pages are used to collect or verify information to users, and basic forms are common in scenarios where there are fewer data items.',
5+
'form.basic-form.title.label': 'Title',
6+
'form.basic-form.title.placeholder': 'Give the target a name',
7+
'form.basic-form.title.required': 'Please enter a title',
8+
'form.basic-form.date.label': 'Start and end date',
9+
'form.basic-form.placeholder.start': 'Start date',
10+
'form.basic-form.placeholder.end': 'End date',
11+
'form.basic-form.date.required': 'Please select the start and end date',
12+
'form.basic-form.goal.label': 'Goal description',
13+
'form.basic-form.goal.placeholder': 'Please enter your work goals',
14+
'form.basic-form.goal.required': 'Please enter a description of the goal',
15+
'form.basic-form.standard.label': 'Metrics',
16+
'form.basic-form.standard.placeholder': 'Please enter a metric',
17+
'form.basic-form.standard.required': 'Please enter a metric',
18+
'form.basic-form.client.label': 'Client',
19+
'form.basic-form.label.tooltip': 'Target service object',
20+
'form.basic-form.client.placeholder':
21+
'Please describe your customer service, internal customers directly @ Name / job number',
22+
'form.basic-form.client.required': 'Please describe the customers you serve',
23+
'form.basic-form.invites.label': 'Inviting critics',
24+
'form.basic-form.invites.placeholder':
25+
'Please direct @ Name / job number, you can invite up to 5 people',
26+
'form.basic-form.weight.label': 'Weight',
27+
'form.basic-form.weight.placeholder': 'Please enter weight',
28+
'form.basic-form.public.label': 'Target disclosure',
29+
'form.basic-form.label.help': 'Customers and invitees are shared by default',
30+
'form.basic-form.radio.public': 'Public',
31+
'form.basic-form.radio.partially-public': 'Partially public',
32+
'form.basic-form.radio.private': 'Private',
33+
'form.basic-form.publicUsers.placeholder': 'Open to',
34+
'form.basic-form.option.A': 'Colleague A',
35+
'form.basic-form.option.B': 'Colleague B',
36+
'form.basic-form.option.C': 'Colleague C',
37+
'form.basic-form.email.required': 'Please enter your email!',
38+
'form.basic-form.email.wrong-format': 'The email address is in the wrong format!',
39+
'form.basic-form.userName.required': 'Please enter your userName!',
40+
'form.basic-form.password.required': 'Please enter your password!',
41+
'form.basic-form.password.twice': 'The passwords entered twice do not match!',
42+
'form.basic-form.strength.msg':
43+
"Please enter at least 6 characters and don't use passwords that are easy to guess.",
44+
'form.basic-form.strength.strong': 'Strength: strong',
45+
'form.basic-form.strength.medium': 'Strength: medium',
46+
'form.basic-form.strength.short': 'Strength: too short',
47+
'form.basic-form.confirm-password.required': 'Please confirm your password!',
48+
'form.basic-form.phone-number.required': 'Please enter your phone number!',
49+
'form.basic-form.phone-number.wrong-format': 'Malformed phone number!',
50+
'form.basic-form.verification-code.required': 'Please enter the verification code!',
51+
'form.basic-form.form.get-captcha': 'Get Captcha',
52+
'form.basic-form.captcha.second': 'sec',
53+
'form.basic-form.form.optional': ' (optional) ',
54+
'form.basic-form.form.submit': 'Submit',
55+
'form.basic-form.form.save': 'Save',
56+
'form.basic-form.email.placeholder': 'Email',
57+
'form.basic-form.password.placeholder': 'Password',
58+
'form.basic-form.confirm-password.placeholder': 'Confirm password',
59+
'form.basic-form.phone-number.placeholder': 'Phone number',
60+
'form.basic-form.verification-code.placeholder': 'Verification code'
61+
}

src/locales/lang/en-US/global.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export default {
2+
submit: 'Submit',
3+
save: 'Save',
4+
'submit.ok': 'Submit successfully',
5+
'save.ok': 'Saved successfully'
6+
}

0 commit comments

Comments
 (0)