forked from Knockout-Contrib/Knockout-Validation
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Arabic - Jordan (ar-JO) localization
Closes Knockout-Contrib#546
- Loading branch information
Showing
3 changed files
with
41 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 Arabic - Jordan (ar-JO) | ||
*/ | ||
(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('ar-JO', { | ||
required: 'مطلوب.', | ||
min: 'أدخل قيمة اكبر من {0}.', | ||
max: 'أدخل قيمة اقل من {0}.', | ||
minLength: 'أدخل {0} احرف أو أكثر.', | ||
maxLength: 'أدخل {0} أحرف أو أقل.', | ||
pattern: 'قيمة غير صحيحة.', | ||
step: 'يجب ان تضاف بمقدار {0}.', | ||
email: 'صيغة البريد الالكتروني غير صحيحة.', | ||
date: 'صيغة التاريخ غير صحيحة.', | ||
dateISO: 'صيغة التاريخ غير صحيحة.', | ||
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