How to use the select2/src/js/select2/translation._cache function in select2

To help you get started, we’ve selected a few select2 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nditech / apollo / apollo / static / src / scripts-rtl.js View on Github external
$(document).ready(function () {
    bsCustomFileInput.init()
});

window.jQuery = $;
window.$ = $;

import 'select2/src/js/jquery.select2.js';

const Translation = require("select2/src/js/select2/translation");

Translation._cache["en"] = require("select2/src/js/select2/i18n/en");
Translation._cache["es"] = require("select2/src/js/select2/i18n/es");
Translation._cache["fr"] = require("select2/src/js/select2/i18n/fr");
Translation._cache["az"] = require("select2/src/js/select2/i18n/az");
Translation._cache["ar"] = require("select2/src/js/select2/i18n/ar");
Translation._cache["de"] = require("select2/src/js/select2/i18n/de");
Translation._cache["ru"] = require("select2/src/js/select2/i18n/ru");
Translation._cache["ro"] = require("select2/src/js/select2/i18n/ro");
github nditech / apollo / apollo / static / src / scripts-rtl.js View on Github external
import './js/app.js';
import bsCustomFileInput from 'bs-custom-file-input';

$(document).ready(function () {
    bsCustomFileInput.init()
});

window.jQuery = $;
window.$ = $;

import 'select2/src/js/jquery.select2.js';

const Translation = require("select2/src/js/select2/translation");

Translation._cache["en"] = require("select2/src/js/select2/i18n/en");
Translation._cache["es"] = require("select2/src/js/select2/i18n/es");
Translation._cache["fr"] = require("select2/src/js/select2/i18n/fr");
Translation._cache["az"] = require("select2/src/js/select2/i18n/az");
Translation._cache["ar"] = require("select2/src/js/select2/i18n/ar");
Translation._cache["de"] = require("select2/src/js/select2/i18n/de");
Translation._cache["ru"] = require("select2/src/js/select2/i18n/ru");
Translation._cache["ro"] = require("select2/src/js/select2/i18n/ro");
github nditech / apollo / apollo / static / src / scripts-rtl.js View on Github external
import bsCustomFileInput from 'bs-custom-file-input';

$(document).ready(function () {
    bsCustomFileInput.init()
});

window.jQuery = $;
window.$ = $;

import 'select2/src/js/jquery.select2.js';

const Translation = require("select2/src/js/select2/translation");

Translation._cache["en"] = require("select2/src/js/select2/i18n/en");
Translation._cache["es"] = require("select2/src/js/select2/i18n/es");
Translation._cache["fr"] = require("select2/src/js/select2/i18n/fr");
Translation._cache["az"] = require("select2/src/js/select2/i18n/az");
Translation._cache["ar"] = require("select2/src/js/select2/i18n/ar");
Translation._cache["de"] = require("select2/src/js/select2/i18n/de");
Translation._cache["ru"] = require("select2/src/js/select2/i18n/ru");
Translation._cache["ro"] = require("select2/src/js/select2/i18n/ro");
github nditech / apollo / apollo / static / src / scripts.js View on Github external
import bsCustomFileInput from 'bs-custom-file-input';

$(document).ready(function () {
    bsCustomFileInput.init()
});

window.jQuery = $;
window.$ = $;

import 'select2/src/js/jquery.select2.js';

const Translation = require("select2/src/js/select2/translation");

Translation._cache["en"] = require("select2/src/js/select2/i18n/en");
Translation._cache["es"] = require("select2/src/js/select2/i18n/es");
Translation._cache["fr"] = require("select2/src/js/select2/i18n/fr");
Translation._cache["az"] = require("select2/src/js/select2/i18n/az");
Translation._cache["ar"] = require("select2/src/js/select2/i18n/ar");
Translation._cache["de"] = require("select2/src/js/select2/i18n/de");
Translation._cache["ru"] = require("select2/src/js/select2/i18n/ru");
Translation._cache["ro"] = require("select2/src/js/select2/i18n/ro");
github nditech / apollo / apollo / static / src / scripts-rtl.js View on Github external
bsCustomFileInput.init()
});

window.jQuery = $;
window.$ = $;

import 'select2/src/js/jquery.select2.js';

const Translation = require("select2/src/js/select2/translation");

Translation._cache["en"] = require("select2/src/js/select2/i18n/en");
Translation._cache["es"] = require("select2/src/js/select2/i18n/es");
Translation._cache["fr"] = require("select2/src/js/select2/i18n/fr");
Translation._cache["az"] = require("select2/src/js/select2/i18n/az");
Translation._cache["ar"] = require("select2/src/js/select2/i18n/ar");
Translation._cache["de"] = require("select2/src/js/select2/i18n/de");
Translation._cache["ru"] = require("select2/src/js/select2/i18n/ru");
Translation._cache["ro"] = require("select2/src/js/select2/i18n/ro");
github nditech / apollo / apollo / static / src / scripts.js View on Github external
$(document).ready(function () {
    bsCustomFileInput.init()
});

window.jQuery = $;
window.$ = $;

import 'select2/src/js/jquery.select2.js';

const Translation = require("select2/src/js/select2/translation");

Translation._cache["en"] = require("select2/src/js/select2/i18n/en");
Translation._cache["es"] = require("select2/src/js/select2/i18n/es");
Translation._cache["fr"] = require("select2/src/js/select2/i18n/fr");
Translation._cache["az"] = require("select2/src/js/select2/i18n/az");
Translation._cache["ar"] = require("select2/src/js/select2/i18n/ar");
Translation._cache["de"] = require("select2/src/js/select2/i18n/de");
Translation._cache["ru"] = require("select2/src/js/select2/i18n/ru");
Translation._cache["ro"] = require("select2/src/js/select2/i18n/ro");
github nditech / apollo / apollo / static / src / scripts.js View on Github external
bsCustomFileInput.init()
});

window.jQuery = $;
window.$ = $;

import 'select2/src/js/jquery.select2.js';

const Translation = require("select2/src/js/select2/translation");

Translation._cache["en"] = require("select2/src/js/select2/i18n/en");
Translation._cache["es"] = require("select2/src/js/select2/i18n/es");
Translation._cache["fr"] = require("select2/src/js/select2/i18n/fr");
Translation._cache["az"] = require("select2/src/js/select2/i18n/az");
Translation._cache["ar"] = require("select2/src/js/select2/i18n/ar");
Translation._cache["de"] = require("select2/src/js/select2/i18n/de");
Translation._cache["ru"] = require("select2/src/js/select2/i18n/ru");
Translation._cache["ro"] = require("select2/src/js/select2/i18n/ro");
github nditech / apollo / apollo / static / src / scripts-rtl.js View on Github external
$(document).ready(function () {
    bsCustomFileInput.init()
});

window.jQuery = $;
window.$ = $;

import 'select2/src/js/jquery.select2.js';

const Translation = require("select2/src/js/select2/translation");

Translation._cache["en"] = require("select2/src/js/select2/i18n/en");
Translation._cache["es"] = require("select2/src/js/select2/i18n/es");
Translation._cache["fr"] = require("select2/src/js/select2/i18n/fr");
Translation._cache["az"] = require("select2/src/js/select2/i18n/az");
Translation._cache["ar"] = require("select2/src/js/select2/i18n/ar");
Translation._cache["de"] = require("select2/src/js/select2/i18n/de");
Translation._cache["ru"] = require("select2/src/js/select2/i18n/ru");
Translation._cache["ro"] = require("select2/src/js/select2/i18n/ro");
github nditech / apollo / apollo / static / src / scripts-rtl.js View on Github external
});

window.jQuery = $;
window.$ = $;

import 'select2/src/js/jquery.select2.js';

const Translation = require("select2/src/js/select2/translation");

Translation._cache["en"] = require("select2/src/js/select2/i18n/en");
Translation._cache["es"] = require("select2/src/js/select2/i18n/es");
Translation._cache["fr"] = require("select2/src/js/select2/i18n/fr");
Translation._cache["az"] = require("select2/src/js/select2/i18n/az");
Translation._cache["ar"] = require("select2/src/js/select2/i18n/ar");
Translation._cache["de"] = require("select2/src/js/select2/i18n/de");
Translation._cache["ru"] = require("select2/src/js/select2/i18n/ru");
Translation._cache["ro"] = require("select2/src/js/select2/i18n/ro");
github nditech / apollo / apollo / static / src / scripts.js View on Github external
});

window.jQuery = $;
window.$ = $;

import 'select2/src/js/jquery.select2.js';

const Translation = require("select2/src/js/select2/translation");

Translation._cache["en"] = require("select2/src/js/select2/i18n/en");
Translation._cache["es"] = require("select2/src/js/select2/i18n/es");
Translation._cache["fr"] = require("select2/src/js/select2/i18n/fr");
Translation._cache["az"] = require("select2/src/js/select2/i18n/az");
Translation._cache["ar"] = require("select2/src/js/select2/i18n/ar");
Translation._cache["de"] = require("select2/src/js/select2/i18n/de");
Translation._cache["ru"] = require("select2/src/js/select2/i18n/ru");
Translation._cache["ro"] = require("select2/src/js/select2/i18n/ro");

select2

Select2 is a jQuery based replacement for select boxes. It supports searching, remote data sets, and infinite scrolling of results.

MIT
Latest version published 4 years ago

Package Health Score

82 / 100
Full package analysis