Commit Graph

456 Commits

Author SHA1 Message Date
Abijeet a5a4701792 jquery.uls.lcd: Check if languages are present before highlighting
There might not be any languages if uls empty state is set in ULS
extension
2023-03-13 14:16:12 +02:00
Amir E. Aharoni 5128f8f164 Update language-data from upstream (#447)
Add:
* Haryanvi (bgc)
* Tausug (tsg)

Updating to
https://github.com/wikimedia/language-data/commit/52c9e2971432dd6c08d95aea38e49081425a268d
2023-03-08 18:30:52 +05:30
Amir E. Aharoni f5779eceb1 Update language-data from upstream
* Replace ajp with apc for Levantine Arabic.
* Add variants: en-us, nrf-gg, nrf-je
* Add Láadan (ldn)
* Add CQ region (backwards compatibility)
2023-02-27 08:33:20 +02:00
Abijeet 02cd462ec2 jquery.uls.lcd: Add null check for navigationIndex for up navigation 2023-02-16 11:11:11 +02:00
Amir E. Aharoni 0627f0ef32 Update language-data from upstream
Add Hassaniya (mey).

Updating to
https://github.com/wikimedia/language-data/commit/f1c2a81bebe8f39d689b1d1ad627057e4797b0f3
2023-01-29 11:23:06 +02:00
Amir E. Aharoni 33ded5382c Update language-data from upstream
Add Hindko (hno).

Updating to:
https://github.com/wikimedia/language-data/commit/16db71c2bc397fef0e2b6b0e47765b952d735b6a
2023-01-25 13:59:34 +02:00
Abijeet 6f1c6a4743 Fix line length warnings 2023-01-16 15:04:12 +02:00
Abijeet cfbfc5d2ff Remove unused variable and add uls prefix for CSS class 2023-01-16 15:04:12 +02:00
Abijeet 606697ae7c Fix issue with moving cursor location when pressing arrow keys 2023-01-16 15:04:12 +02:00
Abijeet f6b1e5cc6e Add some comments to the code 2023-01-16 15:04:12 +02:00
Abijeet 453cc37341 Fix general and usability issues, add some more features
* Scoll to currently highlighted item if its not visible.
* Fix navigation when list is filtered
* Add support for selecting highlighted item by pressing enter
2023-01-16 15:04:12 +02:00
NikG 31bd5c43db Set navigation index to the selected language item index on hover 2023-01-16 15:04:12 +02:00
NikG d7f7927ec3 Add caching for language option list items 2023-01-16 15:04:12 +02:00
NikG f3f14a2098 Fix lint errors 2023-01-16 15:04:12 +02:00
NikG cd1452eb76 Enable up/down keys for navigating the ULS menu 2023-01-16 15:04:12 +02:00
Amir E. Aharoni b23041a2a3 Update language-data from upstream (#442)
* Add Arbëresh language (aae)

https://github.com/wikimedia/language-data/commit/66e804116b68c87c7d162ee5535b2ee052621a20
2023-01-11 16:37:52 +05:30
Amir E. Aharoni 78d3abcd8d Update language-data from upstream
* Use turned comma in the autonym of Hawaii (haw)
* Add Igala (igl)

Updating to
https://github.com/wikimedia/language-data/commit/f95b5fe6758d5d9a1d899392e39bc6c6ff4c45f1
2023-01-11 13:24:24 +05:30
Amir E. Aharoni ea2197b73d Update jquery.uls from upstream
Add:
* Monegasque (lij-mc)
* Norwegian Hognorsk (nn-hognorsk)
* Varieties of Rhetoromanian (rm-puter, rm-rumgr,
  rm-surmiran, rm-sursilv, rm-sutsilv, rm-vallader)
* Manado (xmm)
2022-12-07 17:10:16 +05:30
wangombe 257fd1a837 Add Berom and Nzema languages
Updating to:
wikimedia/language-data@4ecd1d32
2022-12-05 12:13:02 +03:00
wangombe 5ae47c1b43 Update language-data from upstream
* Add Dagaare (dga), Kʋsaal (kus), (ajp) languages
* updates to 	South Levantine Arabic (ajp)
2022-12-01 16:05:03 +03:00
Amir E. Aharoni ce15e82ad8 Update language-data from upstream
Add Magahi (mag).

Updating to
https://github.com/wikimedia/language-data/commit/af77a5dc50a8c995197ac3586ff21415319641bd
2022-10-13 13:35:47 +05:30
Amir E. Aharoni 4b07e4fe64 Update language-data from upstream
Add Iraqi Arabic.

Updating to
https://github.com/wikimedia/language-data/commit/7de21c489f564008103f668da1587059c1be0ca4
2022-09-07 16:39:09 +05:30
Amir E. Aharoni cd13f0af75 Update language-data from upstream
* Update Iñupiaq (ik) autonym.
* Add Esan (ish).
* Add Makassarese (mak) in Latin and Buginese.
* Updates in regional data.

Updating to
https://github.com/wikimedia/language-data/commit/80b389b48ddbf4b69d93bba089c195e09f354a04
2022-08-29 18:35:48 +05:30
Amir E. Aharoni 677d9c5ae2 Update language-data from upstream
* Add Kalanga (kck), Wolaytta (wal), Yonaguni (yoi)
* Fix capitalization for Bunun (bnn).

Updating to
https://github.com/wikimedia/language-data/commit/0d800daf30c84732984763b93eabe1326dfd4b23
2022-07-20 12:16:52 +05:30
Amir E. Aharoni 9584756187 Update language-data from upstream
* Add Bura (bwr)
* Add Tai Nua (tdd), with Thai Le writing system (Tale)
* Change autonym of Kanuri (kr)
* Add Occitan (oc) as a language of Spain
* Remove Tajik Cyrillic (tg-cyrl) as a language of Pakistan

Updating to
https://github.com/wikimedia/language-data/commit/0a7203ca51b4e5e56dab29daa03efd77a730411c
2022-06-13 12:40:25 +05:30
Amir E. Aharoni 1995aeb868 Update language-data
* Add Tai Nüa (tdd).
* Add Occitan to Spain.

Updating to
https://github.com/wikimedia/language-data/commit/5163dfcfe785289293ecf7df3e61393191c89828
2022-05-31 10:14:32 +05:30
Amir E. Aharoni 6fc0e736d9 Update language-data from upstream
Updating Efik (efi) autonym.

Updating to
https://github.com/wikimedia/language-data/commit/e5abc089ffba354edfeb20ec3dc85725b14f3051
2022-05-23 17:30:05 +05:30
Amir E. Aharoni 54864601fa Update language-data
* Add Campidanese Sardinian (sro)
* Auto-update territory info: add Obolo (ann) to Nigeria
  and Pijin (pis) to Solomon Islands.

Updating to
https://github.com/wikimedia/language-data/commit/627d49561e9d1728c2a82d09a4be40a665231c9a
2022-05-18 20:14:51 +05:30
Amir E. Aharoni f422273d0f Update language-data from upstream
* Fix location for Karay-a (krj) and Livvi-Karelian (olo)
* Fix autonyms for Kinyarwanda (rw), Okinawan (ryu),
  and Kokborok (trp)
* Remove Eastern Yiddish (ydd), which is practically
  identical to Yiddish (yi).
* Remove "Kana" as a separate writing systems, and merge it with "Jpan".

Updating to
https://github.com/wikimedia/language-data/commit/35f37b6c5fa14881bb9e107edc3d52c20272636e
2022-05-05 12:46:29 +05:30
Amir E. Aharoni 62bcddbd8f Update language-data
Add Efik (efi).

Updating to
https://github.com/wikimedia/language-data/commit/fcb78913c6f220e0699b768b4bfde24bb4aab674
2022-04-13 13:00:57 +05:30
Amir E. Aharoni 85c3341aec Update language-data
* Add rsk, fat
* Update Kirundi autonym
* Automatically reorder some language codes in region info

Updating to
https://github.com/wikimedia/language-data/commit/abc5ad4b4ec0055fbde6da676ed22e7e19cea292
2022-03-07 21:37:46 +05:30
Amir E. Aharoni d0a5b92e57 Update language-data
* Add ken, bum
* Update region data for Canada and U.K.
  (automatically from CLDR)

Updating to
https://github.com/wikimedia/language-data/commit/eb467ffa0f812ccc6d02c1c8028d26c3bddd525b
2022-02-24 18:14:29 +05:30
Amir E. Aharoni fe46a2f7ce Update language-data
* Added: fvr, mos, se-fi, se-no, se-se
* Added shy-latn, uz-cyrl, and uz-latn
  for compatibility with MediaWiki.
* Added standard code for "Toki Pona" (tok),
  keeping the non-standard "tokipona" as redirect
  for backwards compatibility.
* Renamed "Sediq Taroko" to "Seediq".
* Added English as one of the languages of Maldives
  (automatically from CLDR).

Updating to
https://github.com/wikimedia/language-data/commit/ed481a74378fa9aac7da82d36e238de2a29778d7
2022-02-02 16:22:57 +02:00
Amir E. Aharoni c10140c12b Upgrade eslint-config-wikimedia to 0.21.0
JavaScript code and comments changes:
* Remove no-multi-str disabling.
* Document $ parameter.
* Replace .substring() with .slice().
* Change assert.ok() to assert.strictEqual() in a test.
2022-01-31 11:13:58 +02:00
Amir E. Aharoni 04ec45d5fd Update language-data from upstream
* Fix Angika autonym to "अंगिका"
* Add Nkore (nyn)

Updating to
https://github.com/wikimedia/language-data/commit/064aebfbda2e77bc6e36a4a3c1b80592d6078713
2022-01-17 18:05:10 +05:30
Amir E. Aharoni 57b52268d2 Update language-data from upstream
* Change autonyms for Nheengatu (yrl) and Abkhaz (ab)
* Add Aleut language (ale, ale-cyrl)

Updating to
https://github.com/wikimedia/language-data/commit/868370a287452e2a02cb8183c5691ca83da8ae4b
2022-01-03 14:19:55 +05:30
Amir E. Aharoni 09c410877d Update language-data from upstream
Add:
* Aja (ajg)
* Logooli (rag)

Updating to
https://github.com/wikimedia/language-data/commit/2ea97c8bd4ad2f56f47824a942b2fb6bdac4b17a
2021-11-15 17:27:14 +05:30
Amir E. Aharoni bc2f80a811 Update language-data from upstream
* Add: agq, gpe, mcn, nmz
* Split nod to nod (Tai Tham) and nod-thai, and add Tai Tham support
* Change Cyrillic-alphabet languages to lowercase
* Update autonym: ksw
2021-11-09 17:05:24 +02:00
Amir E. Aharoni 1b3e4265e6 Update language-data from upstream
Add:
* Levantine Arabic (ajp, ajp-latn, ajp-arab)
* Pa'O (blk)
* Nigerian Pidgin (pcm)
* Paiwan (pwn)
* Sirionó (srq)
* Makhuwa (vmw)

Changed configuration:
* Add Pacific region to Indonesian (id) and Rapanui (rap)
* Add Pacific and America regions to Chinese (zh, zh-hans, zh-hant)
* Remove uppercase from Cape Verdian autonym (kea)
* Change autonym for Lombard (lmo)
* Change autonym of gur to "farefare"

Updating to:
https://github.com/wikimedia/language-data/commit/ceb18ea4dd2efb86c1bb4f7aef2a49bf0c6fbb18
2021-10-11 11:37:17 +03:00
Abijeet e3a9a11840 ULS LCD: Check if region exists before adding languages
The regions displayed on ULS depend on the showRegions parameter
passed to uls.lcd plugin. If a new language and region have
been added to the language data, the region for it will not be
available to showRegion because it's static.

Bug: T187553
2021-09-28 15:58:32 +03:00
Ed S 7a6e559fe5 Update eslint and other devDependencies (#391)
* Update eslint and other devDependencies

* Lint JS in examples/ using eslint-plugin-html (#392)
2021-05-14 15:18:37 +05:30
Amir Aharoni ab929b81d8 Update language-data from upstream
Make 'ha' the primary code for Hausa
instead of ha-latn.

Updating to:
https://github.com/wikimedia/language-data/commit/d56debb089c61c019c77b1c63dc37ae2cf198791
2021-05-11 17:17:55 +03:00
Amir Aharoni 4c124f2d71 Update language-data from upstream
Split ciw to ciw and ojb

Updating to
https://github.com/wikimedia/language-data/commit/4e45e0cd80091f9f45038e81178114fae7bc8cca

For more info see downstream task
https://phabricator.wikimedia.org/T280461
2021-04-27 16:09:23 +03:00
Amir Aharoni 67e4d46f6a Update language-data from upstream
Add the Dargin (Dargwa) language (dar).

Updating to
https://github.com/wikimedia/language-data/commit/06fe4cd2711d6b504ddada85fb7ca9789b9bdf68
2021-04-14 14:29:36 +03:00
Amir Aharoni 4495850b9c Update language-data from upstream
* Add languages bas, bkm, bzj

Updating to
https://github.com/wikimedia/language-data/commit/2ddadd3a7f791f3a4f81911ff8847ec5a313916a
2021-03-31 18:13:07 +05:30
Niklas Laxström 5c7ff63b98 Add options.onPosition and deprecate top and left (#385) 2021-03-22 17:14:10 +05:30
Santhosh Thottingal 990c5402f4 Use sed and a template for generating jquery.uls.data.js
Drop browserify.
2021-03-18 18:56:17 +02:00
Amir Aharoni 3153ae0fc2 Update language-data from upstream
* Add nan-hani
* Update autonym for guc, cjy, cdo

Updating to
https://github.com/wikimedia/language-data/commit/29025c63f2111fa09f9fb47fe7f0ab290b307678
2021-03-08 18:36:22 +05:30
Amir E. Aharoni 1bed61638b Update language-data (#380)
* Add languages: nus, rhg, rmc
* Add variants: pap-aw, tly-cyrl
* Add script: Rohg
* Update data about Talysh

Updating to
https://github.com/wikimedia/language-data/commit/7181b2ecb77421cf400d78c52c86f195cebd101e
2021-03-01 15:57:18 +05:30
Amir Aharoni 5ccc75a8cf Update language-data
Add language gld and guw.

Updating to
https://github.com/wikimedia/language-data/commit/c0f628fb15d9910982829904c17597583828cd9c
2021-01-18 18:20:29 +05:30