-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
418914a
commit a0f9be9
Showing
6 changed files
with
186 additions
and
40 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
export type i18nContents = { | ||
[x: string]: { | ||
'zh-CN': string, | ||
'zh-TW': string, | ||
[x: string]: string, | ||
} | ||
} | ||
|
||
export function fillBlank(i18n: string, ...fills: (string | undefined)[]): string { | ||
let text = i18n; | ||
fills.forEach((v, i) => text = text.replace(`$${i}`, v || '')); | ||
return text; | ||
} | ||
|
||
export const info: i18nContents = { | ||
title: { | ||
'zh-CN': '学生信息', | ||
'zh-TW': '學生信息', | ||
}, | ||
student: { | ||
'zh-CN': '学生', | ||
'zh-TW': '學生', | ||
}, | ||
allStudents: { | ||
'zh-CN': '所有学生', | ||
'zh-TW': '所有學生', | ||
}, | ||
selectStudents: { | ||
'zh-CN': '请选择学生。', | ||
'zh-TW': '請選擇學生。', | ||
}, | ||
} | ||
|
||
export const chat: i18nContents = { | ||
title: { | ||
'zh-CN': '聊天编辑', | ||
'zh-TW': '聊天編輯', | ||
}, | ||
student: { | ||
'zh-CN': '学生', | ||
'zh-TW': '學生', | ||
}, | ||
allStudents: { | ||
'zh-CN': '所有学生', | ||
'zh-TW': '所有學生', | ||
}, | ||
selectStudents: { | ||
'zh-CN': '请选择学生。', | ||
'zh-TW': '請選擇學生。', | ||
}, | ||
'+': { | ||
'zh-CN': '添加', | ||
'zh-TW': '添加', | ||
}, | ||
'-': { | ||
'zh-CN': '去除', | ||
'zh-TW': '去除', | ||
}, | ||
idPromptTitle: { | ||
'zh-CN': '输入Id', | ||
'zh-TW': '輸入Id', | ||
}, | ||
idPromptInfo: { | ||
'zh-CN': '请输入需要在列表$0的学生的Id', | ||
'zh-TW': '請輸入需要在列表$0的學生的Id', | ||
}, | ||
error: { | ||
'zh-CN': '错误', | ||
'zh-TW': '錯誤', | ||
}, | ||
sameStudent: { | ||
'zh-CN': '已有此学生', | ||
'zh-TW': '已有此學生', | ||
}, | ||
withoutStudent: { | ||
'zh-CN': '列表中无此学生', | ||
'zh-TW': '列表中無此學生', | ||
}, | ||
sendMsgStudent: { | ||
'zh-CN': '发送学生消息', | ||
'zh-TW': '發送學生消息', | ||
}, | ||
sendMsgSensei: { | ||
'zh-CN': '发送老师消息', | ||
'zh-TW': '發送老師消息', | ||
}, | ||
sendMsgInfo: { | ||
'zh-CN': '请输入需要发送$0$1的$2', | ||
'zh-TW': '請輸入需要發送$0$1的$2', | ||
}, | ||
sendMsgStudentInfo: { | ||
'zh-CN': '的', | ||
'zh-TW': '的', | ||
}, | ||
sendMsgSenseiInfo: { | ||
'zh-CN': '给', | ||
'zh-TW': '給', | ||
}, | ||
text: { | ||
'zh-CN': '消息', | ||
'zh-TW': '消息', | ||
}, | ||
img: { | ||
'zh-CN': '图片链接', | ||
'zh-TW': '圖片鏈接', | ||
}, | ||
undefinedStudent: { | ||
'zh-CN': '$0的学生Id不存在', | ||
'zh-TW': '$0的學生Id不存在', | ||
}, | ||
up: { | ||
'zh-CN': '上传', | ||
'zh-TW': '上傳', | ||
}, | ||
down: { | ||
'zh-CN': '下载', | ||
'zh-TW': '下載', | ||
}, | ||
jsonFile: { | ||
'zh-CN': 'JSON文件', | ||
'zh-TW': 'JSON文件', | ||
}, | ||
} |
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
Oops, something went wrong.
a0f9be9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
momotalk-editor – ./
momotalk-editor-slouchwind.vercel.app
momotalk-editor-git-main-slouchwind.vercel.app
momotalk-editor.vercel.app
momotalk.slouchwind.tk