fix typos (lanugage -> language)
This commit is contained in:
parent
d3c887286d
commit
43480954a4
4
dist/js/select2.amd.full.js
vendored
4
dist/js/select2.amd.full.js
vendored
@ -3923,7 +3923,7 @@ define('select2/defaults',[
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (typeof options.language === 'string') {
|
if (typeof options.language === 'string') {
|
||||||
// Check if the lanugage is specified with a region
|
// Check if the language is specified with a region
|
||||||
if (options.language.indexOf('-') > 0) {
|
if (options.language.indexOf('-') > 0) {
|
||||||
// Extract the region information if it is included
|
// Extract the region information if it is included
|
||||||
var languageParts = options.language.split('-');
|
var languageParts = options.language.split('-');
|
||||||
@ -3959,7 +3959,7 @@ define('select2/defaults',[
|
|||||||
// because of how Select2 helps load all possible translation files.
|
// because of how Select2 helps load all possible translation files.
|
||||||
if (window.console && console.warn) {
|
if (window.console && console.warn) {
|
||||||
console.warn(
|
console.warn(
|
||||||
'Select2: The lanugage file for "' + name + '" could not be ' +
|
'Select2: The language file for "' + name + '" could not be ' +
|
||||||
'automatically loaded. A fallback will be used instead.'
|
'automatically loaded. A fallback will be used instead.'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
4
dist/js/select2.amd.js
vendored
4
dist/js/select2.amd.js
vendored
@ -3923,7 +3923,7 @@ define('select2/defaults',[
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (typeof options.language === 'string') {
|
if (typeof options.language === 'string') {
|
||||||
// Check if the lanugage is specified with a region
|
// Check if the language is specified with a region
|
||||||
if (options.language.indexOf('-') > 0) {
|
if (options.language.indexOf('-') > 0) {
|
||||||
// Extract the region information if it is included
|
// Extract the region information if it is included
|
||||||
var languageParts = options.language.split('-');
|
var languageParts = options.language.split('-');
|
||||||
@ -3959,7 +3959,7 @@ define('select2/defaults',[
|
|||||||
// because of how Select2 helps load all possible translation files.
|
// because of how Select2 helps load all possible translation files.
|
||||||
if (window.console && console.warn) {
|
if (window.console && console.warn) {
|
||||||
console.warn(
|
console.warn(
|
||||||
'Select2: The lanugage file for "' + name + '" could not be ' +
|
'Select2: The language file for "' + name + '" could not be ' +
|
||||||
'automatically loaded. A fallback will be used instead.'
|
'automatically loaded. A fallback will be used instead.'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
4
dist/js/select2.full.js
vendored
4
dist/js/select2.full.js
vendored
@ -4362,7 +4362,7 @@ define('select2/defaults',[
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (typeof options.language === 'string') {
|
if (typeof options.language === 'string') {
|
||||||
// Check if the lanugage is specified with a region
|
// Check if the language is specified with a region
|
||||||
if (options.language.indexOf('-') > 0) {
|
if (options.language.indexOf('-') > 0) {
|
||||||
// Extract the region information if it is included
|
// Extract the region information if it is included
|
||||||
var languageParts = options.language.split('-');
|
var languageParts = options.language.split('-');
|
||||||
@ -4398,7 +4398,7 @@ define('select2/defaults',[
|
|||||||
// because of how Select2 helps load all possible translation files.
|
// because of how Select2 helps load all possible translation files.
|
||||||
if (window.console && console.warn) {
|
if (window.console && console.warn) {
|
||||||
console.warn(
|
console.warn(
|
||||||
'Select2: The lanugage file for "' + name + '" could not be ' +
|
'Select2: The language file for "' + name + '" could not be ' +
|
||||||
'automatically loaded. A fallback will be used instead.'
|
'automatically loaded. A fallback will be used instead.'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
4
dist/js/select2.js
vendored
4
dist/js/select2.js
vendored
@ -4362,7 +4362,7 @@ define('select2/defaults',[
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (typeof options.language === 'string') {
|
if (typeof options.language === 'string') {
|
||||||
// Check if the lanugage is specified with a region
|
// Check if the language is specified with a region
|
||||||
if (options.language.indexOf('-') > 0) {
|
if (options.language.indexOf('-') > 0) {
|
||||||
// Extract the region information if it is included
|
// Extract the region information if it is included
|
||||||
var languageParts = options.language.split('-');
|
var languageParts = options.language.split('-');
|
||||||
@ -4398,7 +4398,7 @@ define('select2/defaults',[
|
|||||||
// because of how Select2 helps load all possible translation files.
|
// because of how Select2 helps load all possible translation files.
|
||||||
if (window.console && console.warn) {
|
if (window.console && console.warn) {
|
||||||
console.warn(
|
console.warn(
|
||||||
'Select2: The lanugage file for "' + name + '" could not be ' +
|
'Select2: The language file for "' + name + '" could not be ' +
|
||||||
'automatically loaded. A fallback will be used instead.'
|
'automatically loaded. A fallback will be used instead.'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
4
src/js/select2/defaults.js
vendored
4
src/js/select2/defaults.js
vendored
@ -203,7 +203,7 @@ define([
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (typeof options.language === 'string') {
|
if (typeof options.language === 'string') {
|
||||||
// Check if the lanugage is specified with a region
|
// Check if the language is specified with a region
|
||||||
if (options.language.indexOf('-') > 0) {
|
if (options.language.indexOf('-') > 0) {
|
||||||
// Extract the region information if it is included
|
// Extract the region information if it is included
|
||||||
var languageParts = options.language.split('-');
|
var languageParts = options.language.split('-');
|
||||||
@ -239,7 +239,7 @@ define([
|
|||||||
// because of how Select2 helps load all possible translation files.
|
// because of how Select2 helps load all possible translation files.
|
||||||
if (window.console && console.warn) {
|
if (window.console && console.warn) {
|
||||||
console.warn(
|
console.warn(
|
||||||
'Select2: The lanugage file for "' + name + '" could not be ' +
|
'Select2: The language file for "' + name + '" could not be ' +
|
||||||
'automatically loaded. A fallback will be used instead.'
|
'automatically loaded. A fallback will be used instead.'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user