-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathselect2_locale_sv.js
More file actions
19 lines (17 loc) · 847 Bytes
/
select2_locale_sv.js
File metadata and controls
19 lines (17 loc) · 847 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/**
* Select2 Swedish translation.
*
* Author: Jens Rantil <jens.rantil@telavox.com>
*/
(function ($) {
"use strict";
$.fn.select2.locales['sv'] = {
formatNoMatches: function () { return "Inga träffar"; },
formatInputTooShort: function (input, min) { var n = min - input.length; return "Var god skriv in " + n + (n>1 ? " till tecken" : " tecken till"); },
formatInputTooLong: function (input, max) { var n = input.length - max; return "Var god sudda ut " + n + " tecken"; },
formatSelectionTooBig: function (limit) { return "Du kan max välja " + limit + " element"; },
formatLoadMore: function (pageNumber) { return "Laddar fler resultat…"; },
formatSearching: function () { return "Söker…"; }
};
$.extend($.fn.select2.defaults, $.fn.select2.locales['sv']);
})(jQuery);