Permalink
Browse files

Overhaul of the AMD integration

Now we do not have separate AMD builds, instead we use a UMD wrapper
to support both AMD and CommonJS environments along with the browser.
This has been tested with RequireJS and it correctly imports Select2
and hooks into jQuery.

This means that all builds will include the Almond AMD loader, but
this isn't that much of an issue when you consider the file sizes.
The loader is namespaced so RequireJS and other AMD builders don't
complain about `require` and `define` existing. This is also done
so AMD loaders don't conflict, as Select2's AMD loader should
operate independently of others.

There are now two layers of wrappers that are applied to files,
only one of which is used for the translation files. This allows
us to only load in the internal Select2 modules once, and in
general makes most things cleaner. These have also been pulled out
into individual JS files instead of being stored in JSON files,
allowing us to add comments and make things look readable.

Because we use a few hacks, these files are heavily commented as well.

This closes #2945.
This closes #2946.
  • Loading branch information...
1 parent e8fd5a0 commit d1e8a6fdad700deba721aaf83c912e09db80eb5d @kevin-brown kevin-brown committed Mar 14, 2015
Showing with 325 additions and 10,296 deletions.
  1. +2 −0 .jshintignore
  2. +47 −38 Gruntfile.js
  3. +1 −1 dist/js/i18n/az.js
  4. +1 −1 dist/js/i18n/bg.js
  5. +1 −1 dist/js/i18n/ca.js
  6. +1 −1 dist/js/i18n/cs.js
  7. +1 −1 dist/js/i18n/da.js
  8. +1 −1 dist/js/i18n/de.js
  9. +1 −1 dist/js/i18n/en.js
  10. +1 −1 dist/js/i18n/es.js
  11. +1 −1 dist/js/i18n/et.js
  12. +1 −1 dist/js/i18n/eu.js
  13. +1 −1 dist/js/i18n/fa.js
  14. +1 −1 dist/js/i18n/fi.js
  15. +1 −1 dist/js/i18n/fr.js
  16. +1 −1 dist/js/i18n/gl.js
  17. +1 −1 dist/js/i18n/hi.js
  18. +1 −1 dist/js/i18n/hr.js
  19. +1 −1 dist/js/i18n/hu.js
  20. +1 −1 dist/js/i18n/id.js
  21. +1 −1 dist/js/i18n/is.js
  22. +1 −1 dist/js/i18n/it.js
  23. +1 −1 dist/js/i18n/ko.js
  24. +1 −1 dist/js/i18n/lt.js
  25. +1 −1 dist/js/i18n/lv.js
  26. +1 −1 dist/js/i18n/mk.js
  27. +1 −1 dist/js/i18n/nb.js
  28. +1 −1 dist/js/i18n/nl.js
  29. +1 −1 dist/js/i18n/pl.js
  30. +1 −1 dist/js/i18n/pt-BR.js
  31. +1 −1 dist/js/i18n/pt.js
  32. +1 −1 dist/js/i18n/ro.js
  33. +1 −1 dist/js/i18n/ru.js
  34. +1 −1 dist/js/i18n/sk.js
  35. +1 −1 dist/js/i18n/sr.js
  36. +1 −1 dist/js/i18n/sv.js
  37. +1 −1 dist/js/i18n/th.js
  38. +1 −1 dist/js/i18n/tr.js
  39. +1 −1 dist/js/i18n/uk.js
  40. +1 −1 dist/js/i18n/vi.js
  41. +1 −1 dist/js/i18n/zh-CN.js
  42. +1 −1 dist/js/i18n/zh-TW.js
  43. +0 −5,335 dist/js/select2.amd.full.js
  44. +0 −4,775 dist/js/select2.amd.js
  45. +95 −49 dist/js/select2.full.js
  46. +3 −3 dist/js/select2.full.min.js
  47. +86 −40 dist/js/select2.js
  48. +2 −2 dist/js/select2.min.js
  49. +0 −4 src/js/banner.amd.json
  50. +0 −4 src/js/banner.basic.json
  51. +6 −0 src/js/banner.end.js
  52. +0 −4 src/js/banner.json
  53. +6 −0 src/js/banner.start.js
  54. +3 −2 src/js/select2/translation.js
  55. +12 −0 src/js/wrapper.end.js
  56. +23 −0 src/js/wrapper.start.js
View
@@ -1,2 +1,4 @@
+src/js/banner.*.js
+src/js/wrapper.*.js
tests/vendor/*.js
tests/helpers.js
View
@@ -1,10 +1,7 @@
module.exports = function (grunt) {
// Full list of files that must be included by RequireJS
includes = [
- 'jquery.select2'
- ];
-
- amdIncludes = [
+ 'jquery.select2',
'almond'
];
@@ -56,7 +53,7 @@ module.exports = function (grunt) {
i18nPaths[name] = '../../' + name;
}
- var minifiedBanner = '/!* Select2 <%= package.version %> | https://github.com/select2/select2/blob/master/LICENSE.md */';
+ var minifiedBanner = '/*! Select2 <%= package.version %> | https://github.com/select2/select2/blob/master/LICENSE.md */';
grunt.initConfig({
package: grunt.file.readJSON('package.json'),
@@ -65,6 +62,29 @@ module.exports = function (grunt) {
docs: ['docs/_site']
},
+ concat: {
+ 'dist': {
+ options: {
+ banner: grunt.file.read('src/js/wrapper.start.js'),
+ },
+ src: [
+ 'dist/js/select2.js',
+ 'src/js/wrapper.end.js'
+ ],
+ dest: 'dist/js/select2.js'
+ },
+ 'dist.full': {
+ options: {
+ banner: grunt.file.read('src/js/wrapper.start.js'),
+ },
+ src: [
+ 'dist/js/select2.full.js',
+ 'src/js/wrapper.end.js'
+ ],
+ dest: 'dist/js/select2.full.js'
+ }
+ },
+
connect: {
tests: {
options: {
@@ -227,12 +247,16 @@ module.exports = function (grunt) {
optimize: 'none',
name: 'select2/core',
out: 'dist/js/select2.js',
- include: amdIncludes.concat(includes),
+ include: includes,
+ namespace: 'S2',
paths: {
almond: '../../vendor/almond-0.2.9',
jquery: 'jquery.shim'
},
- wrap: grunt.file.readJSON('src/js/banner.json')
+ wrap: {
+ startFile: 'src/js/banner.start.js',
+ endFile: 'src/js/banner.end.js'
+ }
}
},
'dist.full': {
@@ -241,40 +265,17 @@ module.exports = function (grunt) {
optimize: 'none',
name: 'select2/core',
out: 'dist/js/select2.full.js',
- include: amdIncludes.concat(fullIncludes),
+ include: fullIncludes,
+ namespace: 'S2',
paths: {
almond: '../../vendor/almond-0.2.9',
jquery: 'jquery.shim',
'jquery.mousewheel': '../../vendor/jquery.mousewheel'
},
- wrap: grunt.file.readJSON('src/js/banner.json')
- }
- },
- 'amd': {
- options: {
- baseUrl: 'src/js',
- optimize: 'none',
- name: 'select2/core',
- out: 'dist/js/select2.amd.js',
- include: includes,
- paths: {
- jquery: 'empty:'
- },
- wrap: grunt.file.readJSON('src/js/banner.amd.json')
- }
- },
- 'amd.full': {
- options: {
- baseUrl: 'src/js',
- optimize: 'none',
- name: 'select2/core',
- out: 'dist/js/select2.amd.full.js',
- include: fullIncludes,
- paths: {
- jquery: 'empty:',
- 'jquery.mousewheel': '../../vendor/jquery.mousewheel'
- },
- wrap: grunt.file.readJSON('src/js/banner.amd.json')
+ wrap: {
+ startFile: 'src/js/banner.start.js',
+ endFile: 'src/js/banner.end.js'
+ }
}
},
'i18n': {
@@ -283,7 +284,11 @@ module.exports = function (grunt) {
dir: 'dist/js/i18n',
paths: i18nPaths,
modules: i18nModules,
- wrap: grunt.file.readJSON('src/js/banner.basic.json')
+ namespace: 'S2',
+ wrap: {
+ start: minifiedBanner + grunt.file.read('src/js/banner.start.js'),
+ end: grunt.file.read('src/js/banner.end.js')
+ }
}
}
},
@@ -329,7 +334,11 @@ module.exports = function (grunt) {
grunt.registerTask('default', ['compile', 'test', 'minify']);
- grunt.registerTask('compile', ['requirejs', 'sass:dev']);
+ grunt.registerTask('compile', [
+ 'requirejs:dist', 'requirejs:dist.full', 'requirejs:i18n',
+ 'concat:dist', 'concat:dist.full',
+ 'sass:dev'
+ ]);
grunt.registerTask('minify', ['uglify', 'sass:dist']);
grunt.registerTask('test', ['connect:tests', 'qunit', 'jshint']);
View
@@ -1,3 +1,3 @@
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
-(function(){if(window.define)var e=window.define;if(window.require)var t=window.require;if(window.jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd.define,t=jQuery.fn.select2.amd.require;e("select2/i18n/az",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum;return t+" simvol silin"},inputTooShort:function(e){var t=e.minimum-e.input.length;return t+" simvol daxil edin"},loadingMore:function(){return"Daha çox nəticə yüklənir…"},maximumSelected:function(e){return"Sadəcə "+e.maximum+" element seçə bilərsiniz"},noResults:function(){return"Nəticə tapılmadı"},searching:function(){return"Axtarılır…"}}}),t("jquery.select2"),jQuery.fn.select2.amd={define:e,require:t}})();
+(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/az",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum;return t+" simvol silin"},inputTooShort:function(e){var t=e.minimum-e.input.length;return t+" simvol daxil edin"},loadingMore:function(){return"Daha çox nəticə yüklənir…"},maximumSelected:function(e){return"Sadəcə "+e.maximum+" element seçə bilərsiniz"},noResults:function(){return"Nəticə tapılmadı"},searching:function(){return"Axtarılır…"}}}),{define:e.define,require:e.require}})();
View
@@ -1,3 +1,3 @@
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
-(function(){if(window.define)var e=window.define;if(window.require)var t=window.require;if(window.jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd.define,t=jQuery.fn.select2.amd.require;e("select2/i18n/bg",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum,n="Моля въведете с "+t+" по-малко символ";return t>1&&(n+="a"),n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Моля въведете още "+t+" символ";return t>1&&(n+="a"),n},loadingMore:function(){return"Зареждат се още…"},maximumSelected:function(e){var t="Можете да направите до "+e.maximum+" ";return e.maximum>1?t+="избора":t+="избор",t},noResults:function(){return"Няма намерени съвпадения"},searching:function(){return"Търсене…"}}}),t("jquery.select2"),jQuery.fn.select2.amd={define:e,require:t}})();
+(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/bg",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum,n="Моля въведете с "+t+" по-малко символ";return t>1&&(n+="a"),n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Моля въведете още "+t+" символ";return t>1&&(n+="a"),n},loadingMore:function(){return"Зареждат се още…"},maximumSelected:function(e){var t="Можете да направите до "+e.maximum+" ";return e.maximum>1?t+="избора":t+="избор",t},noResults:function(){return"Няма намерени съвпадения"},searching:function(){return"Търсене…"}}}),{define:e.define,require:e.require}})();
View
@@ -1,3 +1,3 @@
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
-(function(){if(window.define)var e=window.define;if(window.require)var t=window.require;if(window.jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd.define,t=jQuery.fn.select2.amd.require;e("select2/i18n/ca",[],function(){return{errorLoading:function(){return"La càrrega ha fallat"},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Si us plau, elimina "+t+" car";return t==1?n+="àcter":n+="àcters",n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Si us plau, introdueix "+t+" car";return t==1?n+="àcter":n+="àcters",n},loadingMore:function(){return"Carregant més resultats…"},maximumSelected:function(e){var t="Només es pot seleccionar "+e.maximum+" element";return e.maximum!=1&&(t+="s"),t},noResults:function(){return"No s'han trobat resultats"},searching:function(){return"Cercant…"}}}),t("jquery.select2"),jQuery.fn.select2.amd={define:e,require:t}})();
+(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/ca",[],function(){return{errorLoading:function(){return"La càrrega ha fallat"},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Si us plau, elimina "+t+" car";return t==1?n+="àcter":n+="àcters",n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Si us plau, introdueix "+t+" car";return t==1?n+="àcter":n+="àcters",n},loadingMore:function(){return"Carregant més resultats…"},maximumSelected:function(e){var t="Només es pot seleccionar "+e.maximum+" element";return e.maximum!=1&&(t+="s"),t},noResults:function(){return"No s'han trobat resultats"},searching:function(){return"Cercant…"}}}),{define:e.define,require:e.require}})();
View
@@ -1,3 +1,3 @@
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
-(function(){if(window.define)var e=window.define;if(window.require)var t=window.require;if(window.jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd.define,t=jQuery.fn.select2.amd.require;e("select2/i18n/cs",[],function(){function e(e,t){switch(e){case 2:return t?"dva":"dvě";case 3:return"tři";case 4:return"čtyři"}return""}return{errorLoading:function(){return"Výsledky nemohly být načteny."},inputTooLong:function(t){var n=t.input.length-t.maximum;return n==1?"Prosím zadejte o jeden znak méně":n<=4?"Prosím zadejte o "+e(n,!0)+" znaky méně":"Prosím zadejte o "+n+" znaků méně"},inputTooShort:function(t){var n=t.minimum-t.input.length;return n==1?"Prosím zadejte ještě jeden znak":n<=4?"Prosím zadejte ještě další "+e(n,!0)+" znaky":"Prosím zadejte ještě dalších "+n+" znaků"},loadingMore:function(){return"Načítají se další výsledky…"},maximumSelected:function(t){var n=t.maximum;return n==1?"Můžete zvolit jen jednu položku":n<=4?"Můžete zvolit maximálně "+e(n,!1)+" položky":"Můžete zvolit maximálně "+n+" položek"},noResults:function(){return"Nenalezeny žádné položky"},searching:function(){return"Vyhledávání…"}}}),t("jquery.select2"),jQuery.fn.select2.amd={define:e,require:t}})();
+(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/cs",[],function(){function e(e,t){switch(e){case 2:return t?"dva":"dvě";case 3:return"tři";case 4:return"čtyři"}return""}return{errorLoading:function(){return"Výsledky nemohly být načteny."},inputTooLong:function(t){var n=t.input.length-t.maximum;return n==1?"Prosím zadejte o jeden znak méně":n<=4?"Prosím zadejte o "+e(n,!0)+" znaky méně":"Prosím zadejte o "+n+" znaků méně"},inputTooShort:function(t){var n=t.minimum-t.input.length;return n==1?"Prosím zadejte ještě jeden znak":n<=4?"Prosím zadejte ještě další "+e(n,!0)+" znaky":"Prosím zadejte ještě dalších "+n+" znaků"},loadingMore:function(){return"Načítají se další výsledky…"},maximumSelected:function(t){var n=t.maximum;return n==1?"Můžete zvolit jen jednu položku":n<=4?"Můžete zvolit maximálně "+e(n,!1)+" položky":"Můžete zvolit maximálně "+n+" položek"},noResults:function(){return"Nenalezeny žádné položky"},searching:function(){return"Vyhledávání…"}}}),{define:e.define,require:e.require}})();
View
@@ -1,3 +1,3 @@
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
-(function(){if(window.define)var e=window.define;if(window.require)var t=window.require;if(window.jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd.define,t=jQuery.fn.select2.amd.require;e("select2/i18n/da",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Angiv venligst "+t+" tegn mindre";return n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Angiv venligst "+t+" tegn mere";return n},loadingMore:function(){return"Indlæser flere resultater…"},maximumSelected:function(e){var t="Du kan kun vælge "+e.maximum+" emne";return e.maximum!=1&&(t+="r"),t},noResults:function(){return"Ingen resultater fundet"},searching:function(){return"Søger…"}}}),t("jquery.select2"),jQuery.fn.select2.amd={define:e,require:t}})();
+(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/da",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Angiv venligst "+t+" tegn mindre";return n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Angiv venligst "+t+" tegn mere";return n},loadingMore:function(){return"Indlæser flere resultater…"},maximumSelected:function(e){var t="Du kan kun vælge "+e.maximum+" emne";return e.maximum!=1&&(t+="r"),t},noResults:function(){return"Ingen resultater fundet"},searching:function(){return"Søger…"}}}),{define:e.define,require:e.require}})();
View
@@ -1,3 +1,3 @@
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
-(function(){if(window.define)var e=window.define;if(window.require)var t=window.require;if(window.jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd.define,t=jQuery.fn.select2.amd.require;e("select2/i18n/de",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum;return"Bitte "+t+" Zeichen weniger eingeben"},inputTooShort:function(e){var t=e.minimum-e.input.length;return"Bitte "+t+" Zeichen mehr eingeben"},loadingMore:function(){return"Lade mehr Ergebnisse…"},maximumSelected:function(e){var t="Sie können nur "+e.maximum+" Eintr";return e.maximum===1?t+="ag":t+="äge",t+=" auswählen",t},noResults:function(){return"Keine Übereinstimmungen gefunden"},searching:function(){return"Suche…"}}}),t("jquery.select2"),jQuery.fn.select2.amd={define:e,require:t}})();
+(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/de",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum;return"Bitte "+t+" Zeichen weniger eingeben"},inputTooShort:function(e){var t=e.minimum-e.input.length;return"Bitte "+t+" Zeichen mehr eingeben"},loadingMore:function(){return"Lade mehr Ergebnisse…"},maximumSelected:function(e){var t="Sie können nur "+e.maximum+" Eintr";return e.maximum===1?t+="ag":t+="äge",t+=" auswählen",t},noResults:function(){return"Keine Übereinstimmungen gefunden"},searching:function(){return"Suche…"}}}),{define:e.define,require:e.require}})();
View
@@ -1,3 +1,3 @@
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
-(function(){if(window.define)var e=window.define;if(window.require)var t=window.require;if(window.jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd.define,t=jQuery.fn.select2.amd.require;e("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Please delete "+t+" character";return t!=1&&(n+="s"),n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Please enter "+t+" or more characters";return n},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return e.maximum!=1&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"}}}),t("jquery.select2"),jQuery.fn.select2.amd={define:e,require:t}})();
+(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Please delete "+t+" character";return t!=1&&(n+="s"),n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Please enter "+t+" or more characters";return n},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return e.maximum!=1&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"}}}),{define:e.define,require:e.require}})();
View
@@ -1,3 +1,3 @@
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
-(function(){if(window.define)var e=window.define;if(window.require)var t=window.require;if(window.jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd.define,t=jQuery.fn.select2.amd.require;e("select2/i18n/es",[],function(){return{errorLoading:function(){return"La carga falló"},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Por favor, elimine "+t+" car";return t==1?n+="ácter":n+="acteres",n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Por favor, introduzca "+t+" car";return t==1?n+="ácter":n+="acteres",n},loadingMore:function(){return"Cargando más resultados…"},maximumSelected:function(e){var t="Sólo puede seleccionar "+e.maximum+" elemento";return e.maximum!=1&&(t+="s"),t},noResults:function(){return"No se encontraron resultados"},searching:function(){return"Buscando…"}}}),t("jquery.select2"),jQuery.fn.select2.amd={define:e,require:t}})();
+(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/es",[],function(){return{errorLoading:function(){return"La carga falló"},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Por favor, elimine "+t+" car";return t==1?n+="ácter":n+="acteres",n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Por favor, introduzca "+t+" car";return t==1?n+="ácter":n+="acteres",n},loadingMore:function(){return"Cargando más resultados…"},maximumSelected:function(e){var t="Sólo puede seleccionar "+e.maximum+" elemento";return e.maximum!=1&&(t+="s"),t},noResults:function(){return"No se encontraron resultados"},searching:function(){return"Buscando…"}}}),{define:e.define,require:e.require}})();
Oops, something went wrong.

0 comments on commit d1e8a6f

Please sign in to comment.