Localized error messages
This commit is contained in:
parent
7cd6d66558
commit
fb9761959c
|
@ -60,6 +60,11 @@
|
|||
"uploadError": "Fehler beim Hochladen Ihres Beitrags",
|
||||
"copied": "Kopiert!"
|
||||
},
|
||||
"userError": {
|
||||
"tooShort": "Name ist zu kurz.",
|
||||
"tooLong": "Name ist zu lang.",
|
||||
"empty" : "Bitte geben Sie Ihren Namen ein."
|
||||
},
|
||||
"instructions": {
|
||||
"instructions" : "Anweisung",
|
||||
"pureRust": "Reinen Rust-Implementierung:",
|
||||
|
|
|
@ -60,6 +60,11 @@
|
|||
"uploadError": "Error uploading your contribution",
|
||||
"copied": "Copied!"
|
||||
},
|
||||
"userError": {
|
||||
"tooShort": "Name is too short.",
|
||||
"tooLong": "Name is too long.",
|
||||
"empty" : "Please enter your name."
|
||||
},
|
||||
"instructions": {
|
||||
"instructions" : "Instructions",
|
||||
"pureRust": "Using pure Rust implementation:",
|
||||
|
|
|
@ -60,6 +60,11 @@
|
|||
"uploadError": "Erreur lors de l'upload de votre contribution",
|
||||
"copied": "Copié dans le presse-papier!"
|
||||
},
|
||||
"userError": {
|
||||
"tooShort": "Le nom est trop court.",
|
||||
"tooLong": "Le nom est trop long.",
|
||||
"empty" : "Veuillez entrer votre nom."
|
||||
},
|
||||
"instructions": {
|
||||
"instructions" : "Instructions",
|
||||
"pureRust": "Avec une implémentation en Rust pur:",
|
||||
|
|
|
@ -60,6 +60,11 @@
|
|||
"uploadError": "あなたのコントリビューション(貢献)のアップロードにエラーが生じました",
|
||||
"copied": "コピーされました!"
|
||||
},
|
||||
"userError": {
|
||||
"tooShort": "35文字以下入力してください.",
|
||||
"tooLong": "5文字以上入力してください.",
|
||||
"empty" : "名前を入力してください."
|
||||
},
|
||||
"instructions": {
|
||||
"instructions" : "説明書",
|
||||
"pureRust": "純粋なRustインプリメンテーション(実装)を使用:",
|
||||
|
|
|
@ -60,6 +60,11 @@
|
|||
"uploadError": "기여물을 업로드하는 중 오류가 발생했습니다.",
|
||||
"copied": "복사되었습니다!"
|
||||
},
|
||||
"userError": {
|
||||
"tooShort": "5~35자의 영문 소문자와 숫자만 사용 가능합니다.",
|
||||
"tooLong": "5~35자의 영문 소문자와 숫자만 사용 가능합니다.",
|
||||
"empty" : "성함 입력해 주십시오"
|
||||
},
|
||||
"instructions": {
|
||||
"instructions" : "사용 설명서",
|
||||
"pureRust": "순수한 러스트 구현:",
|
||||
|
|
|
@ -36,13 +36,13 @@ const getters = {
|
|||
return { invalid: false, msg: '' }
|
||||
}
|
||||
if (name === '') {
|
||||
return { invalid: true, msg: 'Name is empty' }
|
||||
return { invalid: true, msg: this.$t('pages.userError.empty') }
|
||||
}
|
||||
if (name.length < 4) {
|
||||
return { invalid: true, msg: 'Name is too short' }
|
||||
return { invalid: true, msg: this.$t('pages.userError.tooShort') }
|
||||
}
|
||||
if (name.length > 35) {
|
||||
return { invalid: true, msg: 'Name is too long' }
|
||||
return { invalid: true, msg: this.$t('pages.userError.tooLong') }
|
||||
}
|
||||
return { invalid: false, msg: '' }
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue