Skip to content
This repository has been archived by the owner on May 9, 2022. It is now read-only.

Commit

Permalink
add "exceed size limit" to i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
peak committed Oct 17, 2016
1 parent 85a0084 commit 8631969
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/i18n/en-us.js
Expand Up @@ -41,5 +41,6 @@ export default {
"reset": "reset",
"hr": "horizontal rule",
"undo": "undo",
"line height": "line height"
"line height": "line height",
"exceed size limit": "exceed size limit"
}
3 changes: 2 additions & 1 deletion src/i18n/zh-cn.js
Expand Up @@ -41,5 +41,6 @@ export default {
"reset": "重置",
"hr": "分隔线",
"undo": "撤消",
"line height": "行高"
"line height": "行高",
"exceed size limit": "超出大小限制"
}
3 changes: 2 additions & 1 deletion src/modules/image/dashboard.vue
Expand Up @@ -62,7 +62,8 @@
let file = this.$els.file.files[0]
if (file.size > config.size_limit) {
alert("文件过大")
let prompt = component.$parent.locale["exceed size limit"]
alert(prompt)
return
}
component.$els.file.value = null
Expand Down

0 comments on commit 8631969

Please sign in to comment.