Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Localization for Slovak Language. #605

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions localization/sk-SK.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/**
* Localization file for Slovak - Slovak Republic (sk-SK)
*/
(function (factory) {
// Module systems magic dance.
/*global require,ko.validation,define,module*/
if (typeof require === 'function' && typeof exports === 'object' && typeof module === 'object') {
// CommonJS or Node
module.exports = factory(require('../'));
} else if (typeof define === 'function' && define['amd']) {
// AMD anonymous module with hard-coded dependency on 'knockout.validation'
define(['knockout.validation'], factory);
} else {
// <script> tag: use the global `ko.validation` object
factory(ko.validation);
}
}(function (kv) {
if (!kv || typeof kv.defineLocale !== 'function') {
throw new Error('Knockout-Validation is required, please ensure it is loaded before this localization file');
}
return kv.defineLocale('sk-SK', {
required: 'Toto pole je povinné.',
min: 'Zadajte číslo väčšie alebo rovné {0}.',
max: 'Zadajte číslo menšie alebo rovné {0}.',
minLength: 'Vložte minimálne {0} znakov.',
maxLength: 'Vložte najviac {0} znakov.',
pattern: 'Skontrolujte formát poľa.',
step: 'Hodnota musí byť násobok {0}.',
email: 'Neplatná e-mailová adresa.',
date: 'Zadajte platný dátum.',
dateISO: 'Zadajte platný dátum.',
number: 'Zadajte číslo.',
digit: 'Zadajte číslice.',
phoneUS: 'Zadajte platné telefónne číslo.',
equal: 'Hodnoty musia byť rovnaké.',
notEqual: 'Vyberte inú hodnotu.',
unique: 'Skontrolujte, či je zadaná hodnota jedinečná.'
});
}));