Skip to content
Snippets Groups Projects
Select Git revision
  • 980dd5f81f41cfe4463e07e3f57623e35d823193
  • main default protected
  • renovate/lock-file-maintenance
  • demo protected
  • person-select-custom
  • dbp-translation-component
  • icon-set-mapping
  • port-i18next-parser
  • remove-sentry
  • favorites-and-recent-files
  • revert-6c632dc6
  • lit2
  • advertisement
  • wc-part
  • automagic
  • publish
  • wip-cleanup
  • demo-file-handling
18 results

select2.js

Blame
  • select2.js 1.39 KiB
    /**
     * Content from https://github.com/select2/select2/blob/master/src/js/select2/i18n/en.js
     */
    export default function () {
        // English
        return {
            errorLoading: function () {
                return 'The results could not be loaded.';
            },
            inputTooLong: function (args) {
                var overChars = args.input.length - args.maximum;
    
                var message = 'Please delete ' + overChars + ' character';
    
                if (overChars != 1) {
                    message += 's';
                }
    
                return message;
            },
            inputTooShort: function (args) {
                var remainingChars = args.minimum - args.input.length;
    
                var message = 'Please enter ' + remainingChars + ' or more characters, you can also search for multiple parts of names';
    
                return message;
            },
            loadingMore: function () {
                return 'Loading more results…';
            },
            maximumSelected: function (args) {
                var message = 'You can only select ' + args.maximum + ' item';
    
                if (args.maximum != 1) {
                    message += 's';
                }
    
                return message;
            },
            noResults: function () {
                return 'No results found';
            },
            searching: function () {
                return 'Searching…';
            },
            removeAllItems: function () {
                return 'Remove all items';
            }
        };
    };