Skip to content

Commit

Permalink
fixed regression
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeerickson committed Sep 4, 2019
1 parent a9c0bfa commit 7e23504
Show file tree
Hide file tree
Showing 5 changed files with 138 additions and 7 deletions.
7 changes: 7 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,13 @@ module.exports = function(grunt) {
},
dest: 'dist/lang/ru.js'
},
seLang: {
src: [],
options: {
require: ['./src/lang/sl:./lang/se']
},
dest: 'dist/lang/se.js'
},
slLang: {
src: [],
options: {
Expand Down
105 changes: 105 additions & 0 deletions dist/lang/se.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
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/se":[function(require,module,exports){
module.exports = {
accepted: ':attribute mora biti sprejet.',
active_url: ':attribute ni pravilen.',
after: ':attribute mora biti za datumom :date.',
after_or_equal: ':attribute mora biti za ali enak :date.',
alpha: ':attribute lahko vsebuje samo črke.',
alpha_dash: ':attribute lahko vsebuje samo črke, številke in črtice.',
alpha_num: ':attribute lahko vsebuje samo črke in številke.',
attributes: {},
array: ':attribute mora biti polje.',
before: ':attribute mora biti pred datumom :date.',
before_or_equal: ':attribute mora biti pred ali enak :date.',
between: {
numeric: ':attribute mora biti med :min in :max.',
file: ':attribute mora biti med :min in :max kilobajti.',
string: ':attribute mora biti med :min in :max znaki.',
array: ':attribute mora imeti med :min in :max elementov.'
},
boolean: ':attribute polje mora biti 1 ali 0',
confirmed: ':attribute potrditev se ne ujema.',
date: ':attribute ni veljaven datum.',
date_format: ':attribute se ne ujema z obliko :format.',
different: ':attribute in :other mora biti drugačen.',
digits: ':attribute mora imeti :digits cifer.',
digits_between: ':attribute mora biti med :min in :max ciframi.',
dimensions: ':attribute ima napačne dimenzije slike.',
distinct: ':attribute je duplikat.',
email: ':attribute mora biti veljaven e-poštni naslov.',
exists: 'izbran :attribute je neveljaven.',
file: ':attribute mora biti datoteka.',
filled: ':attribute mora biti izpolnjen.',
gt: {
numeric: 'The :attribute must be greater than :value.',
file: 'The :attribute must be greater than :value kilobytes.',
string: 'The :attribute must be greater than :value characters.',
array: 'The :attribute must have more than :value items.'
},
gte: {
numeric: 'The :attribute must be greater than or equal :value.',
file: 'The :attribute must be greater than or equal :value kilobytes.',
string: 'The :attribute must be greater than or equal :value characters.',
array: 'The :attribute must have :value items or more.'
},
image: ':attribute mora biti slika.',
in: 'izbran :attribute je neveljaven.',
in_array: ':attribute ne obstaja v :other.',
integer: ':attribute mora biti število.',
ip: ':attribute mora biti veljaven IP naslov.',
ipv4: ':attribute mora biti veljaven IPv4 naslov.',
ipv6: ':attribute mora biti veljaven IPv6 naslov.',
json: ':attribute mora biti veljaven JSON tekst.',
lt: {
numeric: 'The :attribute must be less than :value.',
file: 'The :attribute must be less than :value kilobytes.',
string: 'The :attribute must be less than :value characters.',
array: 'The :attribute must have less than :value items.'
},
lte: {
numeric: 'The :attribute must be less than or equal :value.',
file: 'The :attribute must be less than or equal :value kilobytes.',
string: 'The :attribute must be less than or equal :value characters.',
array: 'The :attribute must not have more than :value items.'
},
max: {
numeric: ':attribute ne sme biti večje od :max.',
file: ':attribute ne sme biti večje :max kilobajtov.',
string: ':attribute ne sme biti večje :max znakov.',
array: ':attribute ne smejo imeti več kot :max elementov.'
},
mimes: ':attribute mora biti datoteka tipa: :values.',
mimetypes: ':attribute mora biti datoteka tipa: :values.',
min: {
numeric: ':attribute mora biti vsaj dolžine :min.',
file: ':attribute mora imeti vsaj :min kilobajtov.',
string: ':attribute mora imeti vsaj :min znakov.',
array: ':attribute mora imeti vsaj :min elementov.'
},
not_in: 'izbran :attribute je neveljaven.',
not_regex: 'The :attribute format is invalid.',
numeric: ':attribute mora biti število.',
present: 'Polje :attribute mora biti prisotno.',
regex: 'Format polja :attribute je neveljaven.',
required: 'Polje :attribute je obvezno.',
required_if: 'Polje :attribute je obvezno, če je :other enak :value.',
required_unless: 'Polje :attribute je obvezno, razen če je :other v :values.',
required_with: 'Polje :attribute je obvezno, če je :values prisoten.',
required_with_all: 'Polje :attribute je obvezno, če so :values prisoten.',
required_without: 'Polje :attribute je obvezno, če :values ni prisoten.',
required_without_all: 'Polje :attribute je obvezno, če :values niso prisotni.',
same: 'Polje :attribute in :other se morata ujemati.',
size: {
numeric: ':attribute mora biti :size.',
file: ':attribute mora biti :size kilobajtov.',
string: ':attribute mora biti :size znakov.',
array: ':attribute mora vsebovati :size elementov.'
},
string: ':attribute mora biti tekst.',
timezone: ':attribute mora biti časovna cona.',
unique: ':attribute je že zaseden.',
uploaded: 'Nalaganje :attribute ni uspelo.',
url: ':attribute format je neveljaven.'
};

},{}]},{},[]);
2 changes: 1 addition & 1 deletion dist/validator.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! validatorjs - v3.16.1 - - 2019-09-02 */
/*! validatorjs - v3.16.1 - - 2019-09-04 */
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.Validator = f()}})(function(){var define,module,exports;return (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})()({1:[function(require,module,exports){
"use strict";

Expand Down
26 changes: 22 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,12 @@
"mocha": "~2.5.3",
"mocha-better-spec-reporter": "github:mikeerickson/mocha-better-spec-reporter",
"pump": "3.0.0",
"puppeteer": "1.9.0"
"puppeteer": "1.9.0",
"rimraf": "3.0.0"
},
"scripts": {
"pre-commit": "npm run lint:spec && npm run lint && npm run test",
"build": "grunt dist",
"build": "rimraf dist && grunt dist",
"lint": "eslint \"./src/**/*.js\"",
"lint:spec": "eslint \"./spec/**/*.js\" --rule 'no-redeclare: off'",
"lint:fix": "eslint \"./src/**/*.js\" --fix",
Expand Down

0 comments on commit 7e23504

Please sign in to comment.