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
623e8d4
commit cbd30a8
Showing
2 changed files
with
43 additions
and
0 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,14 @@ | ||
// Validation errors messages for Parsley | ||
import Parsley from '../parsley'; | ||
|
||
Parsley.addMessages('ua', { | ||
dateiso: "Це значення повинно бути коректною датою (РРРР-ММ-ДД).", | ||
minwords: "Це значення повинно містити не менше %s слів.", | ||
maxwords: "Це значення повинно містити не більше %s слів.", | ||
words: "Це значення повинно містити від %s до %s слів.", | ||
gt: "Це значення повинно бути більше.", | ||
gte: "Це значення повинно бути більше або дорівнює.", | ||
lt: "Це значення повинно бути менше.", | ||
lte: "Це значення повинно бути менше або дорівнює.", | ||
notequalto: "Це значення повинно відрізнятися." | ||
}); |
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,29 @@ | ||
// Validation errors messages for Parsley | ||
import Parsley from '../parsley'; | ||
|
||
Parsley.addMessages('ua', { | ||
defaultMessage: "Некоректне значення.", | ||
type: { | ||
email: "Введіть адресу електронної пошти.", | ||
url: "Введіть URL адресу.", | ||
number: "Введіть число.", | ||
integer: "Введіть ціле число.", | ||
digits: "Введіть тільки цифри.", | ||
alphanum: "Введіть буквено-цифрове значення." | ||
}, | ||
notblank: "Це поле має бути заповненим.", | ||
required: "Обов'язкове поле.", | ||
pattern: "Це значення некоректне.", | ||
min: "Це значення повинно бути не менше ніж %s.", | ||
max: "Це значення повинно бути не більше ніж %s.", | ||
range: "Це значення повинно бути від %s до %s.", | ||
minlength: "Це значення повинно містити не менше %s символів.", | ||
maxlength: "Це значення повинно містити не більше %s символів.", | ||
length: "Це значення повинно містити від %s до %s символів.", | ||
mincheck: "Виберіть не менше %s значень.", | ||
maxcheck: "Виберіть не більше %s значень.", | ||
check: "Виберіть від %s до %s значень.", | ||
equalto: "Це значення повинно співпадати." | ||
}); | ||
|
||
Parsley.setLocale('ua'); |