validatorjs2
Version:
Validation library inspired by Laravel's Validator
103 lines (102 loc) • 5.33 kB
JavaScript
module.exports = {
accepted: ":attribute måste accepteras.",
active_url: ":attribute är inte en giltig webbadress.",
after: ":attribute måste vara ett datum efter den :date.",
after_or_equal: ":attribute måste vara ett datum senare eller samma dag som :date.",
alpha: ":attribute får endast innehålla bokstäver.",
alpha_dash: ":attribute får endast innehålla bokstäver, siffror och bindestreck.",
alpha_num: ":attribute får endast innehålla bokstäver och siffror.",
array: ":attribute måste vara en array.",
before: ":attribute måste vara ett datum innan den :date.",
before_or_equal: ":attribute måste vara ett datum före eller samma dag som :date.",
between: {
numeric: ":attribute måste vara en siffra mellan :min och :max.",
file: ":attribute måste vara mellan :min till :max kilobyte stor.",
string: ":attribute måste innehålla :min till :max tecken.",
array: ":attribute måste innehålla mellan :min - :max objekt."
},
boolean: ":attribute måste vara sant eller falskt.",
confirmed: ":attribute bekräftelsen matchar inte.",
date: ":attribute är inte ett giltigt datum.",
date_format: ":attribute matchar inte formatet :format.",
different: ":attribute och :other får inte vara lika.",
digits: ":attribute måste vara :digits tecken.",
digits_between: ":attribute måste vara mellan :min och :max tecken.",
dimensions: ":attribute har felaktiga bilddimensioner.",
distinct: ":attribute innehåller fler än en repetition av samma element.",
email: ":attribute måste innehålla en korrekt e-postadress.",
exists: ":attribute är ogiltigt.",
file: ":attribute måste vara en fil.",
filled: ":attribute är obligatoriskt.",
gt: {
numeric: ":attribute måste vara större än :value.",
file: ":attribute måste vara större än :value kilobyte stor.",
string: ":attribute måste vara längre än :value tecken.",
array: ":attribute måste innehålla fler än :value objekt."
},
gte: {
numeric: ":attribute måste vara lika med eller större än :value.",
file: ":attribute måste vara lika med eller större än :value kilobyte stor.",
string: ":attribute måste vara lika med eller längre än :value tecken.",
array: ":attribute måste innehålla lika många eller fler än :value objekt."
},
hex: "The :attribute field should have hexadecimal format",
image: ":attribute måste vara en bild.",
in: ":attribute är ogiltigt.",
in_array: ":attribute finns inte i :other.",
integer: ":attribute måste vara en siffra.",
ip: ":attribute måste vara en giltig IP-adress.",
ipv4: ":attribute måste vara en giltig IPv4-adress.",
ipv6: ":attribute måste vara en giltig IPv6-adress.",
json: ":attribute måste vara en giltig JSON-sträng.",
lt: {
numeric: ":attribute måste vara mindre än :value.",
file: ":attribute måste vara mindre än :value kilobyte stor.",
string: ":attribute måste vara kortare än :value tecken.",
array: ":attribute måste innehålla färre än :value objekt."
},
lte: {
numeric: ":attribute måste vara lika med eller mindre än :value.",
file: ":attribute måste vara lika med eller mindre än :value kilobyte stor.",
string: ":attribute måste vara lika med eller kortare än :value tecken.",
array: ":attribute måste innehålla lika många eller färre än :value objekt."
},
max: {
numeric: ":attribute får inte vara större än :max.",
file: ":attribute får max vara :max kilobyte stor.",
string: ":attribute får max innehålla :max tecken.",
array: ":attribute får inte innehålla mer än :max objekt."
},
mimes: ":attribute måste vara en fil av typen: :values.",
mimetypes: ":attribute måste vara en fil av typen: :values.",
min: {
numeric: ":attribute måste vara större än :min.",
file: ":attribute måste vara minst :min kilobyte stor.",
string: ":attribute måste innehålla minst :min tecken.",
array: ":attribute måste innehålla minst :min objekt."
},
not_in: ":attribute är ogiltigt.",
not_regex: "Formatet för :attribute är ogiltigt.",
numeric: ":attribute måste vara en siffra.",
present: ":attribute måste finnas med.",
regex: ":attribute har ogiltigt format.",
required: ":attribute är obligatoriskt.",
required_if: ":attribute är obligatoriskt när :other är :value.",
required_unless: ":attribute är obligatoriskt när inte :other finns bland :values.",
required_with: ":attribute är obligatoriskt när :values är ifyllt.",
required_with_all: ":attribute är obligatoriskt när :values är ifyllt.",
required_without: ":attribute är obligatoriskt när :values ej är ifyllt.",
required_without_all: ":attribute är obligatoriskt när ingen av :values är ifyllt.",
same: ":attribute och :other måste vara lika.",
size: {
numeric: ":attribute måste vara :size.",
file: ":attribute får endast vara :size kilobyte stor.",
string: ":attribute måste innehålla :size tecken.",
array: ":attribute måste innehålla :size objekt."
},
string: ":attribute måste vara en sträng.",
timezone: ":attribute måste vara en giltig tidszon.",
unique: ":attribute används redan.",
uploaded: ":attribute kunde inte laddas upp.",
url: ":attribute har ett ogiltigt format."
};