Update jquery.uls and jquery.ime from upstream

jquery.uls:
* Make "ha" the primary code for Hausa (should address Bug T279269).
* Localisation updates: ms-arab, ce, fur.
* Minor whitespace fixes for eslint.
Updating to
9b879ca89b

jquery.ime:
* Minor whitespace and escaping fixes for eslint.
Updating to
1fd57c64b9

Bug: T279269
Change-Id: I46aeb0a8397ebd9dc8a5d68a9e92368d8156ae2d
This commit is contained in:
Amir Aharoni
2021-05-24 10:48:32 +03:00
committed by jenkins-bot
parent 53c076a736
commit 7c6a6b528b
77 changed files with 1294 additions and 1236 deletions

View File

@@ -12,9 +12,8 @@
* header is left intact. See files GPL-LICENSE and MIT-LICENSE for details.
*
* @file
* @ingroup Extensions
* @licence GNU General Public Licence 2.0 or later
* @licence MIT License
* @license GNU General Public Licence 2.0 or later
* @license MIT License
*/
( function ( $ ) {
@@ -22,6 +21,7 @@
/**
* Is this language a redirect to another language?
*
* @param {string} language Language code
* @return {string|boolean} Target language code if it's a redirect or false if it's not
*/
@@ -33,6 +33,7 @@
/**
* Returns the script of the language.
*
* @param {string} language Language code
* @return {string}
*/
@@ -53,6 +54,7 @@
/**
* Returns the regions in which a language is spoken.
*
* @param {string} language Language code
* @return {string|string[]}
*/
@@ -68,6 +70,7 @@
/**
* Returns the autonym of the language.
*
* @param {string} language Language code
* @return {string}
*/
@@ -84,6 +87,7 @@
/**
* Returns all language codes and corresponding autonyms
*
* @return {string[]}
*/
$.uls.data.getAutonyms = function () {
@@ -103,6 +107,7 @@
/**
* Returns all languages written in script.
*
* @param {string} script string
* @return {string[]} languages codes
*/
@@ -112,6 +117,7 @@
/**
* Returns all languages written in the given scripts.
*
* @param {string[]} scripts
* @return {string[]} languages codes
*/
@@ -138,6 +144,7 @@
/**
* Returns an associative array of languages in a region,
* grouped by script group.
*
* @param {string} region Region code
* @return {Object}
*/
@@ -147,6 +154,7 @@
/**
* Get the given list of languages grouped by script.
*
* @param {string[]} languages Array of language codes to group
* @return {string[]} Array of language codes
*/
@@ -169,6 +177,7 @@
/**
* Returns an associative array of languages in several regions,
* grouped by script group.
*
* @param {string[]} regions region codes
* @return {Object}
*/
@@ -201,6 +210,7 @@
/**
* Returns the script group of a script or 'Other' if it doesn't
* belong to any group.
*
* @param {string} script Script code
* @return {string} script group name
*/
@@ -218,6 +228,7 @@
/**
* Returns the script group of a language.
*
* @param {string} language Language code
* @return {string} script group name
*/
@@ -227,6 +238,7 @@
/**
* Return the list of languages sorted by script groups.
*
* @param {string[]} languages Array of language codes to sort
* @return {string[]} Array of language codes
*/
@@ -247,6 +259,7 @@
/**
* A callback for sorting languages by autonym.
* Can be used as an argument to a sort function.
*
* @param {string} a Language code
* @param {string} b Language code
* @return {number}
@@ -260,6 +273,7 @@
/**
* Check if a language is right-to-left.
*
* @param {string} language Language code
* @return {boolean}
*/
@@ -269,6 +283,7 @@
/**
* Return the direction of the language
*
* @param {string} language Language code
* @return {string}
*/
@@ -278,6 +293,7 @@
/**
* Returns the languages spoken in a territory.
*
* @param {string} territory Territory code
* @return {string[]} list of language codes
*/