validatorjs2
Version:
Validation library inspired by Laravel's Validator
52 lines (50 loc) • 2.72 kB
JavaScript
require=(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({"./lang/id":[function(require,module,exports){
module.exports = {
accepted: ':attribute harus disetujui.',
after: ':attribute harus setelah :after.',
after_or_equal: ':attribute harus sama dengan atau setelah :after_or_equal.',
alpha: ':attribute hanya boleh berisi huruf.',
alpha_dash: ':attribute hanya boleh berisi huruf, - atau _.',
alpha_num: ':attribute hanya boleh berisi huruf dan angka.',
before: ':attribute harus sebelum :before.',
before_or_equal: ':attribute harus sama dengan atau sebelum :before_or_equal.',
between: ':attribute harus berisi antara :min dan :max.',
confirmed: ':attribute konfirmasi tidak sama.',
email: ':attribute harus berupa email.',
date: ':attribute format tanggal tidak benar.',
def: ':attribute attribute has errors.',
digits: ':attribute harus :digits digit.',
digits_between: 'Isian :attribute harus antara angka :min dan :max.',
different: ':attribute dan :different harus berbeda.',
in: ':attribute tidak benar.',
integer: ':attribute harus berupa angka.',
hex: ':attribute harus berformat heksadesimal',
min: {
numeric: ':attribute minimal :min.',
string: ':attribute minimal :min karakter.'
},
max: {
numeric: ':attribute harus lebih kecil :max.',
string: ':attribute maksimal :max karakter.'
},
not_in: ':attribute tidak benar.',
numeric: ':attribute harus berupa angka.',
present: ':attribute harus ada (tapi boleh kosong).',
required: ':attribute tidak boleh kosong.',
required_if: ':attribute harus di isi jika :other berisi :value.',
required_unless: ':attribute harus di isi jika :other tidak berisi :value.',
required_with: ':attribute harus di isi jika :field tidak kosong.',
required_with_all: ':attribute harus di isi jika :fields tidak kosong.',
required_without: ':attribute harus di isi jika :field kosong.',
required_without_all: ':attribute harus di isi jika :fields kosong.',
same: ':attribute dan :same harus sama.',
size: {
numeric: ':attribute harus berisi :size.',
string: ':attribute harus berisi :size karakter.'
},
string: ':attribute harus berupa string.',
url: ':attribute harus berupa format url.',
regex: ':attribute format tidak benar.',
attributes: {}
};
},{}]},{},[]);