-
Notifications
You must be signed in to change notification settings - Fork 379
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add Ukrainian - Ukraine (uk-UA) localization
Closes #648
- Loading branch information
Showing
5 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,39 @@ | ||
/** | ||
* Localization file for Ukrainian - Ukraine (uk-UA) | ||
*/ | ||
(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 | ||
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('uk-UA', { | ||
required: 'Будь ласка, заповніть це поле.', | ||
min: 'Будь ласка, введіть число більше або рівне {0}.', | ||
max: 'Будь ласка, введіть число менше або рівне {0}.', | ||
minLength: 'Будь ласка, введіть принаймні {0} символів.', | ||
maxLength: 'Будь ласка, введіть не більше ніж {0} символа.', | ||
pattern: 'Будь ласка, перевірте це поле.', | ||
step: 'Значення має бути кратним {0}', | ||
email: 'Будь ласка, вкажіть коректну адресу електронної пошти', | ||
date: 'Будь ласка, введіть коректну дату', | ||
dateISO: 'Будь ласка, введіть коректну дату у форматі ISO', | ||
number: 'Будь ласка, введіть число', | ||
digit: 'Будь ласка, введіть цифри', | ||
phoneUS: 'Будь ласка, вкажіть коректний телефонний номер', | ||
equal: 'Значення повинні бути рівні', | ||
notEqual: 'Будь ласка, оберіть інше значення.', | ||
unique: 'Будь ласка, вкажіть унікальне значення.' | ||
}); | ||
})); |
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
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
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
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