Skip to content

Commit 244ba1b

Browse files
committed
add [it] locale transations
1 parent cd3d742 commit 244ba1b

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

select2_locale_it.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/**
2+
* Select2 Italian translation
3+
*/
4+
(function ($) {
5+
"use strict";
6+
7+
$.extend($.fn.select2.defaults, {
8+
formatNoMatches: function () { return "Nessuna corrispondenza trovata"; },
9+
formatInputTooShort: function (input, min) { var n = min - input.length; return "Inserisci ancora " + n + " caratter" + (n == 1? "e" : "i"); },
10+
formatInputTooLong: function (input, max) { var n = input.length - max; return "Inserisci " + n + " caratter" + (n == 1? "e" : "i") + " in meno"; },
11+
formatSelectionTooBig: function (limit) { return "Puoi selezionare solo " + limit + " element" + (limit == 1 ? "o" : "i"); },
12+
formatLoadMore: function (pageNumber) { return "Caricamento in corso..."; },
13+
formatSearching: function () { return "Ricerca..."; }
14+
});
15+
})(jQuery);

0 commit comments

Comments
 (0)