Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: 词条国际化 #1720

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
192 changes: 187 additions & 5 deletions packages/devui-vue/devui/locale/lang/en-us.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
export default {
common: {
lang: 'zh-us'
},
pagination: {
totalItemText: 'Total',
goToText: 'Go to',
perPage: 'Size/Page',
pageSize: 'Number Of Entries Per age'
},
accordion: {
loading: 'loading',
Expand All @@ -16,9 +21,14 @@ export default {
colorPicker: {
foundationPanel: 'Foundation panel',
advancedPanel: 'Advanced panel',
commonColor: 'Common color',
solid: 'Solid color',
linear: 'Linear gradient',
radial: 'radial gradient',
used: 'Recently used'
},
datePickerPro: {
ok: 'OK',
ok: 'Confirm',
placeholder: 'select date',
month1: 'Jan',
month2: 'Feb',
Expand Down Expand Up @@ -59,14 +69,15 @@ export default {
stepsGuide: {
previous: 'Previous',
continue: 'Continue',
ok: 'OK',
ok: 'Confirm',
},
table: {
selectAll: 'Select all',
ok: 'OK',
ok: 'Confirm',
noData: 'No Data',
},
timePopup: {
ok: 'OK',
ok: 'Confirm',
},
transfer: {
unit: '',
Expand Down Expand Up @@ -94,6 +105,23 @@ export default {
getNotAllowedFileTypeMsg(filename: string, scope: string): string {
return `Files with unsupported types: ${filename}. Supported file types: ${scope}`;
},
warning: 'Remind',
upload: 'Upload',
chooseFile: 'Select File',
chooseFiles: 'Select Multiple Files',
preload: 'Preload',
uploading: 'Uploading...',
uploaded: 'Uploaded',
uploadFailed: 'Failed To Upload',
uploadSuccess: 'Uploading Succeeded',
delete: 'Delete',
reUpload: 'Reupload',
cancelUpload: 'Cancel Upload',
uploadFailedCount: 'Failed To Upload Files',
upLoading: 'Pploading',
addCount(filesCount: number): string {
return `${filesCount} Files Added`
}
},
search: {
placeholder: 'Enter a keyword',
Expand All @@ -106,8 +134,162 @@ export default {
},
tagInput: {
maxTagsText: 'Maximum number reached: ',
noData: 'No Data',
},
timeSelect: {
placeholder: 'Please select time',
},
};
relativeTime: {
yearsAgo(num: number) {
return num === 1 ? 'last year' : `${num} years ago`
},
monthsAgo(num: number) {
return num === 1 ? 'last month' : `${num} months ago`
},
weeksAgo(num: number) {
return num === 1 ? 'last week' : `${num} weeks ago`
},
daysAgo(num: number) {
return num === 1 ? 'last day' : `${num} days ago`
},
daysLater(num: number) {
return num === 1 ? 'next day' : `${num} days later`
},
weeksLater(num: number) {
return num === 1 ? 'next week' : `${num} weeks later`
},
monthsLater(num: number) {
return num === 1 ? 'next month' : `${num} months later`
},
yearsLater(num: number) {
return num === 1 ? 'next year' : `${num} years later`
},
hoursAgo: 'hours ago',
minutesAgo: 'minutes ago',
justnow: 'just now',
later: 'later',
minutesLater: ' minutes later',
hoursLater: ' hours later'
},
modal: {
success: 'Succeeded',
error: 'Erroneous',
warning: 'Warnings',
info: 'Infomation'
},
autoComplete: {
latestInput: 'Latest Input',
placeholder: 'Search',
},
datePicker: {
getWeekDays(): Array<string> {
return ['Sun', 'Mon', 'Tue', 'Wed', 'Thur', 'Fri', 'Sat'];
},
today: 'Today',
year: ' ',
month: ' '
},
form: {
minValue: 'The minimum value is',
validSuccess: 'Verification passed',
maxValue: 'The maximum value is',
maxLength: 'The maximum length is',
minLength: 'The minimum length is',
isTrue: 'Must be a true value',
errorEmail: 'The email format is incorrect',
errorRegular: 'Regular mismatch',
notOnlySpace: 'Cannot be all spaces',
},
mention: {
loading: 'Loading... '
},
quadrantDiagram: {
xAxisLabel: 'Urgency',
yAxisLabel: 'Importance',
importantAndUrgent: 'Important and urgent',
importantNoturgent: 'Important not urgent',
notImportantNoturgent: 'Not important, not urgent',
notImportantAndUrgent: 'Not important and urgent'
},
codeReview: {
copyFilePath: 'Copy File Path'
},
editorMd: {
undo: 'Undo',
redo: 'Redo',
clean: 'Clear format',
header: '段落样式',
normal: 'Text',
h1: 'Title 1',
h2: 'Title 2',
h3: 'Title 3',
h4: 'Title 4',
h5: 'Title 5',
h6: 'Title 6',
font: 'Font',
size: 'Font size',
songti: 'Tahoma',
yahei: 'Microsoft Yahei',
kaiti: 'Regular script',
heiti: 'Bold',
lishu: 'Official script',
bold: 'Bold',
italic: 'Italic',
underline: 'underline',
strike: 'Strike through the line',
color: 'Font color',
background: 'Background color',
orderedList: 'Ordered List',
unorderedList: 'Unordered List',
checkList: 'Task List',
left: 'Left aligned',
center: 'Center',
right: 'Right aligned',
image: 'Image',
file: 'File',
table: 'Table',
link: 'hyperlink',
code: 'In line code',
codeBlock: 'Code block',
blockQuote: 'Quoting',
superscript: 'Superscript',
subscript: 'Subscript',
globalLink: 'Global Links',
emoji: 'emoji',
fullScreen: 'Full Screen',
exitFullScreen: 'Exit full screen',
help: 'Help',
more: 'More',
helpFormat: 'Format',
helpInsert: 'Insert',
helpOperation: 'Operation',
mention: 'Mention someone',
quickMenu: 'Shortcut Menu',
toggleHelpPanel: 'Open/Close Help Panel',
scrollTable: 'Horizontal scrolling table',
mouseWheel: 'Mouse wheel',
save: 'Save',
copyCells: 'Copy',
copyTable: 'Copy Table',
cutCells: 'Cut',
emptyCells: 'Empty content',
insertRowUp: 'Insert row on',
insertRowDown: 'Insert row below',
insertColumnLeft: 'Insert row left',
insertColumnRight: 'Insert row right',
mergeCells: 'Merge Cells',
unmergeCells: 'Split Cells',
deleteRow: 'Delete the current row',
deleteColumn: 'Delete the current column',
deleteTable: 'Delete Table',
defaultLinkText: 'Link',
basicBlock: 'Card',
linkPlaceholder: 'Please enter the link address and press Enter to confirm',
char: 'character',
word: 'Word',
countLimitTips: '{{countUnit}} number exceeds the maximum allowed value',
ieMsg: 'For a better experience, please use Chrome browser',
loading: 'Loading...',
pasting: 'You have pasted a lot of content and are working hard to load it. Please be patient and wait...'
}
};
Loading
Loading