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

Add Armenian language translations for Select2 plugin #5285

Merged
merged 1 commit into from
Aug 9, 2023
Merged
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/**
* Select2 Armenian translation.
*
* @author Arman Harutyunyan <armanx@gmail.com>
* @author Siruhi Karakhanyan <sirunkarakhanyan1983@gmail.com>
*
*/
(function($) {
"use strict";

$.fn.select2.locales['hy'] = {
formatNoMatches: function() {
return "Համընկնումներ չեն գտնվել";
},
formatInputTooShort: function(input, min) {
return "Խնդրում ենք մուտքագրել առնվազն" + character(min - input.length);
},
formatInputTooLong: function(input, max) {
return "Խնդրում ենք մուտքագրել" + character(input.length - max) + " պակաս";
},
formatSelectionTooBig: function(limit) {
return "Դուք կարող եք ընտրել ոչ ավելին" + character(limit);
},
formatLoadMore: function(pageNumber) {
return "Տվյալների բեռնում…";
},
formatSearching: function() {
return "Որոնել…";
}
};

$.extend($.fn.select2.defaults, $.fn.select2.locales['hy']);

function character(n) {
return " " + n + " խորհրդանիշ";
}
})(jQuery);