-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
50 changed files
with
434 additions
and
637 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
common: | ||
clear: Clear | ||
login: Log in | ||
register: register | ||
login: | ||
accountLogin: Account login | ||
agreement: I have read and agree | ||
agreementAnd: and | ||
agreementTips: Please read and agree to the Service Agreement and Privacy Policy | ||
captchaMsg: Please enter the correct verification code | ||
captchaPlaceholder: please enter verification code | ||
captchaResend: Reacquire | ||
captchaSend: get verification code | ||
loginSuccess: login successful | ||
mobileLogin: Mobile phone number login | ||
more: More ways | ||
passwordPlaceholder: Please enter password | ||
phonePlaceholder: Please enter phone number | ||
privacyPolicy: Privacy Policy | ||
remember: Remember password | ||
serviceAgreement: Service Agreement | ||
title: Login please | ||
unamePlaceholder: Account/email | ||
usernameMsg: Please enter the correct account number | ||
menu: | ||
cardList: card list | ||
exception: Exception page | ||
exception403: '403' | ||
exception404: '404' | ||
exception500: '500' | ||
form: form page | ||
formGroup: group form | ||
formStep: step by step form | ||
list: List | ||
profile: Details page | ||
profileBasic: Basic details page | ||
result: Results page | ||
resultError: failure page | ||
resultSuccess: success page | ||
searchTable: Inquiry form | ||
user: Personal Center | ||
userInfo: user settings | ||
userSetting: user settings | ||
workplace: workbench | ||
messageBox: | ||
logout: sign out | ||
switchRoles: Switch roles | ||
userCenter: User Center | ||
userSettings: user settings | ||
settings: | ||
alertContent: >- | ||
After configuration, it will only take effect temporarily. To actually | ||
affect the project, click the "Copy Configuration" button below and replace | ||
the configuration into settings.json. | ||
alerts: notification | ||
colorWeak: model | ||
copySettings: Copy configuration | ||
footer: bottom | ||
language: language | ||
menu: Menu Bar | ||
menuWidth: Menu width (px) | ||
navbar: Navigation Bar | ||
otherSettings: other settings | ||
reload: Reload | ||
screenToExit: Exit Full Screen | ||
screenToFull: full screen | ||
source: Source code address | ||
tabBar: Multiple tabs | ||
themeToDark: Click to switch to dark mode | ||
themeToLight: Click to switch to light mode | ||
title: Application configuration | ||
topMenu: top menu bar |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,26 @@ | ||
import { createI18n } from 'vue-i18n'; | ||
import en from './en-US/index.json'; | ||
import cn from './zh-CN/index.json'; | ||
|
||
export const LOCALE_OPTIONS = [ | ||
{ label: '中文', value: 'zh-CN' }, | ||
{ label: 'English', value: 'en-US' } | ||
]; | ||
const defaultLocale = localStorage.getItem('arco-locale') || 'zh-CN'; | ||
|
||
const autoImportLocale = () => { | ||
let locale = Object.fromEntries( | ||
Object.entries(import.meta.glob('./*.y(a)?ml', { eager: true })).map( | ||
([key, value]: any) => { | ||
const matched = key.match(/([A-Za-z0-9-_]+)\./i)[1]; | ||
return [matched, value.default]; | ||
} | ||
) | ||
); | ||
return locale; | ||
}; | ||
|
||
const messages = autoImportLocale(); | ||
|
||
const i18n = createI18n({ | ||
locale: defaultLocale, | ||
fallbackLocale: 'en-US', | ||
legacy: false, | ||
allowComposition: true, | ||
messages: { | ||
'en-US': en, | ||
'zh-CN': cn | ||
} | ||
messages | ||
}); | ||
|
||
export default i18n; |
Oops, something went wrong.