• Stars
    star
    666
  • Rank 65,095 (Top 2 %)
  • Language
    JavaScript
  • License
    GNU General Publi...
  • Created over 11 years ago
  • Updated 9 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

🌐 jQuery based internationalization library

jQuery.i18n

npm

NOTE: For jquery independent version of this library, see https://github.com/wikimedia/banana-i18n

jQuery.i18n is a jQuery based Javascript internationalization library. It helps you to internationalize your web applications easily.

This is a project by Wikimedia foundation's Language Engineering team and used in some of the Wikimedia Foundation projects like Universal Language Selector.

The jquery.i18n library uses a json based localization file format, "banana", which is used as the localization file format for MediaWiki and other projects.

Features

  • Simple file format - JSON. Easily readable for humans and machines.
  • Author and metadata information is not lost anywhere. There are other file formats using comments to store this.
  • Uses MediaWiki convention for placeholders. Easily readable and proven convention. Example: There are $1 cars
  • Supports plural conversion without using extra messages for all plural forms. Plural rule handling is done using CLDR. Covers a wide range of languages
  • Supports gender. By passing the gender value, you get correct sentences according to gender.
  • Supports grammar forms. jquery.i18n has a basic but extensible grammar conversion support
  • Fallback chains for all languages.
  • Data api- the message key. Example: <li data-i18n="message-key"></li>.
  • Dynamic change of interface language without refreshing a webpage.
  • Nestable grammar, plural, gender support. These constructs can be nested to any arbitrary level for supporting sophisticated message localization
  • Message documentation through special language code qqq
  • Extensible message parser to add or customize magic words in the messages. Example: {sitename} or [[link]]

Quick start

git clone https://github.com/wikimedia/jquery.i18n.git
cd jquery.i18n
git submodule update --init

Testing

npm install

To run tests locally, run npm test, and this will run the tests.

Running demo

# If you're using python3, open demo as a local server using port 8000
python -m http.server
# If you're using python2, use this command instead
# python -m SimpleHTTPServer  

Open localhost:8000/demo in your browser, you can see the demo index page.

Message File Format

The message files are json formatted. As a convention, you can have a folder named i18n inside your source code. For each language or locale, have a file named like languagecode.json.

Example:

App
	|--src
	|--doc
	|--i18n
		|--ar.json
		|--de.json
		|--en.json
		|--he.json
		|--hi.json
		|--fr.json
		|--qqq.json

A simple en.json file example is given below

{
	"@metadata": {
		"authors": [
			"Alice",
			"David",
			"Santhosh"
		],
		"last-updated": "2012-09-21",
		"locale": "en",
		"message-documentation": "qqq",
		"AnotherMetadata": "AnotherMedatadataValue"
	},
	"appname-title": "Example Application",
	"appname-sub-title": "An example application with jquery.i18n",
	"appname-header-introduction": "Introduction",
	"appname-about": "About this application",
	"appname-footer": "Footer text"
}

The json file should be a valid json. The @metadata holds all kind of data that are not messages. You can store author information, copyright, updated date or anything there.

Messages are key-value pairs. It is a good convention to prefix your appname to message keys to make the messages unique. It acts as the namespace for the message keys. It is also a good convention to have the message keys with - separated words, all in lower case.

If you are curious to see some real jquery.i18n message file from other projects:

Single message file for all languages

There are some alternate message file formats supported for different use cases. If your application is not big, and want all the translation in a single file, you can have it as shown in the below example:

{
	"@metadata": {
		"authors": [
			"Alice",
			"David",
			"Santhosh"
		],
		"last-updated": "2012-09-21",
		"locale": "en",
		"message-documentation": "qqq",
		"AnotherMetadata": "AnotherMedatadataValue"
	},
	"en": {
		"appname-title": "Example Application",
		"appname-sub-title": "An example application with jquery.i18n",
		"appname-header-introduction": "Introduction",
		"appname-about": "About this application",
		"appname-footer": "Footer text"
		},
	"ml": {
		"appname-title": "അപ്ലിക്കേഷന്‍ ഉദാഹരണം",
		"appname-sub-title": "jquery.i18n ഉപയോഗിച്ചുള്ള അപ്ലിക്കേഷന്‍ ഉദാഹരണം",
		"appname-header-introduction": "ആമുഖം",
		"appname-about": "ഈ അപ്ലിക്കേഷനെപ്പറ്റി",
		"appname-footer": "അടിക്കുറിപ്പു്"
	}
}

Here the json file contains language code as key-value and messagekey-message pairs as the value for all language pairs. You can choose this format or per-language file formats depending on your use case. Per-language files are more convenient for collaboration, version controlling, scalability, etc.

In this approach, it is also possible to give a file name as the value of language code.

{
	"@metadata": {
		"authors": [
			"Alice",
			"David",
			"Santhosh"
		],
		"last-updated": "2012-09-21",
		"locale": "en",
		"message-documentation": "qqq",
		"AnotherMetadata": "AnotherMedatadataValue"
	},
	"en": {
		"appname-title": "Example Application",
		"appname-sub-title": "An example application with jquery.i18n",
		"appname-header-introduction": "Introduction",
		"appname-about": "About this application",
		"appname-footer": "Footer text"
		},
	"ml": "path/to/ml.json"
}

Translation

To translate the jquery.i18n application, depending on the expertise of the translator, there are multiple ways.

  • Editing the json files directly - Suitable for translators with technical background. Also suitable if your application is small and you want to work with only a small number of languages
  • Providing a translation interface along with your application: Suitable for proprietary or private applications with significant amount of translators
  • Using open source translation platforms like translatewiki.net. The MediaWiki and jquery.uls from previous examples use translatewiki.net for crowdsourced message translation. Translatewiki.net can update your code repo at regular intervals with updated translations. Highly recommended if your application is opensource and want it to be localized to as many as languages possible with maximum number of translators.

Usage

Switching locale

While initializing the jquery.i18n, the locale for the page can be given using the locale option. For example

$.i18n( {
    locale: 'he' // Locale is Hebrew
} );

In case locale option is not given, jquery.i18n plugin will use the language attribute given for the html tag. For example

<html lang="he" dir="rtl">

In this case, the locale will be he(Hebrew). If that lang attribute is also missing, it will try to use the locale specified by the browser.

It is possible to switch to another locale after plugin is initialized. See below example:

$.i18n({
    locale: 'he' // Locale is Hebrew
});
$.i18n( 'message-hello' ); // This will give the Hebrew translation of message key `message-hello`.
$.i18n().locale = 'ml'; // Now onwards locale is 'Malayalam'
$.i18n( 'message-hello' ); // This will give the Malayalam translation of message key `message-hello`.

Message Loading

JSON formatted messages can be loaded to the plugin using multiple ways.

Dynamic loading using load method.

Following example shows loading messages for two locales- localex, and localey. Here localex and localey are just examples. They should be valid IS0 639 language codes(eg: en, ml, hi, fr, ta etc)

$.i18n().load( {
	'localex' : {
		'message-key1' : 'message1' // Message for localex.
	},
	'localey' : {
		'message-key1' : 'message1'
	}
} );

If we want to load the messages for a specific locale, it can be done like this:

$.i18n().load({
    'message-hello': 'Hello World',
    'message-welcome': 'Welcome'
}, 'en');

Note the second argument for the load method. It should be a valid language code.

It is also possible to refer messages from an external URL. See below example

$.i18n().load( {
	en: {
		'message-hello': 'Hello World',
		'message-welcome': 'Welcome'
	},
	hi: 'i18n/messages-hi.json', // Messages for Hindi
	de: 'i18n/messages-de.json'
} );

Messages for a locale can be also loaded in parts. Example

$.i18n().load( {
	en: {
		'message-hello': 'Hello World',
		'message-welcome': 'Welcome'
	}
} );

$.i18n().load( {
    	// This does not remove the previous messages.
	en: {
		'message-header' : 'Header',
		'message-footer' : 'Footer',
		// This will overwrite message-welcome message
		'message-welcome' : 'Welcome back'
	}
} );

Since it is desirable to render interface messages instantly and not after a delay of loading the message files from a server, make sure that the messages are present at client side before using jQuery.i18n.

The library should expose an API to load an object containing key-value pair of messages. Example: $.i18n.load(data). This will return a jQuery.Promise.

jquery.i18n plugin

The jQuery plugin defines $.i18n() and $.fn.i18n()

$.i18n( 'message-key-sample1' );
$.i18n( 'message-key-sample1' );
$.i18n( 'Found $1 {{plural:$1|result|results}}', 10 ); // Message key itself is message text
$.i18n( 'Showing $1 out of $2 {{plural:$2|result|results}}', 5,100 );
$.i18n( 'User X updated {{gender|his|her}} profile', 'male' );

$( '#foo' ).i18n(); // to translate the element matching jquery selector based on data-i18n key

Data API

It is possible to display localized messages without any custom JavaScript. For the HTML tags, add an attribute data-i18n with value as the message key. Example:

<li data-i18n="message-key"></li>.

It is also possible to have the above li node with fallback text already in place.

<li data-i18n="message-key">Fallback text</li>

The framework will place the localized message corresponding to message-key as the text value of the node. Similar to $('selector').i18n( ... ). This will not work for dynamically created elements.

Note that if data-i18n contains html markup, that html will not be used as the element content, instead, the text version will be used. But if the message key is prefixed with [html], the element's html will be changed. For example <li data-i18n="[html]message-key">Fallback html</li>, in this if the message-key has a value containing HTML markup, the <li> tags html will be replaced by that html.

If you want to change the html of the element, you can also use: $(selector).html($.i18n(messagekey))

Examples

See https://thottingal.in/projects/js/jquery.i18n/demo/

Message format

Placeholders

Messages take parameters. They are represented by $1, $2, $3, … in the message texts, and replaced at run time. Typical parameter values are numbers (Example: "Delete 3 versions?"), or user names (Example: "Page last edited by $1"), page names, links, and so on, or sometimes other messages.

var message = "Welcome, $1";
$.i18n(message, 'Alice'); // This gives "Welcome, Alice"

Plurals

To make the syntax of sentence correct, plural forms are required. jquery.i18n support plural forms in the message using the syntax {{PLURAL:$1|pluralform1|pluralform2|...}}

For example:

var message = "Found $1 {{PLURAL:$1|result|results}}";
$.i18n(message, 1); // This gives "Found 1 result"
$.i18n(message, 4); // This gives "Found 4 results"

Note that {{PLURAL:...}} is not case sensitive. It can be {{plural:...}} too.

In case of English, there are only 2 plural forms, but many languages use more than 2 plural forms. All the plural forms can be given in the above syntax, separated by pipe(|). The number of plural forms for each language is defined in CLDR. You need to provide all those plural forms for a language. Please note that many languages will require the inclusion of CLDRPluralRuleParser.js (from here) as well as this project's own files to work properly.

For example, English has 2 plural forms and the message format will look like {{PLURAL:$1|one|other}}. for Arabic there are 6 plural forms and format will look like {{PLURAL:$1|zero|one|two|few|many|other}}.

You cannot skip a plural form from the middle or beginning. However, you can skip from end. For example, in Arabic, if the message is like {{PLURAL:$1|A|B}}, for 0, A will be used, for numbers that fall under one, two, few, many, other categories B will be used.

If there is an explicit plural form to be given for a specific number, it is possible with the following syntax

var message = 'Box has {{PLURAL:$1|one egg|$1 eggs|12=a dozen eggs}}.';
$.i18n(message, 4 ); // Gives "Box has 4 eggs."
$.i18n(message, 12 ); // Gives "Box has a dozen eggs."

Gender

Similar to plural, depending on gender of placeholders, mostly user names, the syntax changes dynamically. An example in English is "Alice changed her profile picture" and "Bob changed his profile picture". To support this {{GENDER...}} syntax can be used as shown in example

var message = "$1 changed {{GENDER:$2|his|her}} profile picture";
$.i18n(message, 'Alice', 'female' ); // This gives "Alice changed her profile picture"
$.i18n(message, 'Bob', 'male' ); // This gives "Bob changed his profile picture"

Note that {{GENDER:...}} is not case sensitive. It can be {{gender:...}} too.

Grammar

$.i18n( { locale: 'fi' } );

var message = "{{grammar:genitive|$1}}";

$.i18n(message, 'talo' ); // This gives "talon"

$.i18n().locale = 'hy'; // Switch to locale Armenian
$.i18n(message, 'Մաունա'); // This gives "Մաունայի"

Directionality-safe isolation

To avoid BIDI corruption that looks like "(Foo_(Bar", which happens when a string is inserted into a context with the reverse directionality, you can use {{bidi:…}}. Directionality-neutral characters at the edge of the string can get wrongly interpreted by the BIDI algorithm. This would let you embed your substituted string into a new BIDI context, //e.g.//:

"Shalom, {{bidi:$1}}, hi!"

The embedded context's directionality is determined by looking at the argument for $1, and then explicitly inserted into the Unicode text, ensuring correct rendering (because then the bidi algorithm "knows" the argument text is a separate context).

Fallback

The plugin takes an option 'fallback' with the default value 'en'. The library reuses the fallback data available in MediaWiki for calculating the language fallbacks. Fallbacks are used when a message key is not found in a locale. Example fallbacks: sa->hi->en or tt->tt-cyrl->ru.

See jquery.i18n.fallbacks.js in the source.

Magic word support

  • For plural, gender and grammar support, MediaWiki template-like syntax - {{...}} will be used.
  • There will be a default implementation for all these in $.i18n.language['default']
  • The plural, gender and grammar methods in $.i18n.language[ 'default' ] can be overridden or extended in $.i18n.language['languageCode'].
  • Language-specific rules about Gender and Grammar can be written in languages/langXYZ.js files
  • Plural forms will be dynamically calculated using the CLDR plural parser.

Extending the parser

Following example illustrates extending the parser to support more magic words

$.extend( $.i18n.parser.emitter, {
	// Handle SITENAME keywords
	sitename: function () {
		return 'Wikipedia';
	},
	// Handle LINK keywords
	link: function ( nodes ) {
		return '<a href="' + nodes[1] + '">' + nodes[0] + '</a>';
	}
} );

This will parse the message

$.i18n( '{{link:{{SITENAME}}|https://en.wikipedia.org}}' );

to

<a href="https://en.wikipedia.org">Wikipedia</a>

Message documentation

The message keys and messages won't give a enough context about the message being translated to the translator. Whenever a developer adds a new message, it is a usual practice to document the message to a file named qqq.json with same message key.

Example qqq.json:

{
	"@metadata": {
		"authors": [
			"Developer Name"
		]
	},
	"appname-title": "Application name. Transliteration is recommended",
	"appname-sub-title": "Brief explanation of the application",
	"appname-header-introduction": "Text for the introduction header",
	"appname-about": "About this application text",
	"appname-footer": "Footer text"
}

In MediaWiki and its hundreds of extensions, message documentation is a strictly followed practice. There is a grunt task to check whether all messages are documented or not. See https://www.npmjs.org/package/grunt-banana-checker

More Repositories

1

mediawiki

🌻 The collaborative editing software that runs Wikipedia. Mirror from https://gerrit.wikimedia.org/g/mediawiki/core. See https://mediawiki.org/wiki/Developer_access for contributing.
PHP
3,606
star
2

wikipedia-ios

📱The official Wikipedia iOS app.
Swift
2,914
star
3

apps-android-wikipedia

📱The official Wikipedia app for Android!
Kotlin
2,216
star
4

composer-merge-plugin

Merge one or more additional composer.json files at Composer runtime
PHP
890
star
5

pywikibot

A Python library that interfaces with the MediaWiki API. This is a mirror from gerrit.wikimedia.org. Do not submit any patches here. See https://www.mediawiki.org/wiki/Developer_account for contributing.
Python
595
star
6

operations-puppet

Wikimedia Foundation operates some of the largest collaborative projects in the world. This is the Puppet repo for our servers. This repository is a mirror; see https://www.mediawiki.org/wiki/Developer_access for contributing.
Puppet
244
star
7

node-cssjanus

↔️ Convert CSS between left-to-right and right-to-left. Mirror of https://gerrit.wikimedia.org/g/mediawiki/libs/node-cssjanus/. Contribute via https://www.mediawiki.org/wiki/Developer_account.
JavaScript
198
star
8

VisualEditor

✏ Standalone rich HTML5 editor, based on ContentEditable. Mirror from https://gerrit.wikimedia.org/g/VisualEditor/VisualEditor. See https://mediawiki.org/wiki/Developer_access.
JavaScript
181
star
9

wikipedia-iphone

An obsolete version of the Wikipedia iPhone app. Please use the current version:
Objective-C
179
star
10

jquery.ime

jQuery based input methods library
JavaScript
162
star
11

mediawiki-api-demos

Demo apps and code snippets in Python, Javascript and PHP demonstrating how to use various modules of the MediaWiki Action API
JavaScript
144
star
12

html-metadata

MetaData html scraper and parser for Node.js (supports Promises and callback style)
JavaScript
137
star
13

phabricator-extensions-Sprint

Github mirror of "phabricator/extensions/Sprint" - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing
JavaScript
137
star
14

wikidata-query-rdf

Github mirror of "wikidata/query/rdf" - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing
Java
136
star
15

mediawiki-services-parsoid

This is a mirror from https://gerrit.wikimedia.org/g/mediawiki/services/parsoid/. See https://www.mediawiki.org/wiki/Developer_access for contributing.
PHP
136
star
16

mediawiki-extensions-Wikibase

🌐 The knowledge base software that drives Wikidata.org. Mirror from https://gerrit.wikimedia.org/g/mediawiki/extensions/Wikibase. See https://www.mediawiki.org/wiki/Developer_access for contributing.
PHP
122
star
17

WikimediaUI-Style-Guide

Wikimedia Design Style Guide with user interface focus, authored by Wikimedia Foundation Design team.
HTML
118
star
18

ores

🤖 A hosting service for 'revscoring' models.
Python
111
star
19

restbase

Distributed storage with REST API & dispatcher for backend services.
JavaScript
102
star
20

search-highlighter

Github mirror of "search/highlighter" - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing
Java
95
star
21

revscoring

A generic, machine learning-based revision scoring system for MediaWiki
Python
89
star
22

less.php

Less.js ported to PHP.
JavaScript
80
star
23

operations-mediawiki-config

⚙️ Configuration for Wikimedia Foundation wikis. This is a mirror from https://gerrit.wikimedia.org/g/operations/mediawiki-config/. See https://www.mediawiki.org/wiki/Developer_access for contributing.
HTML
78
star
24

mediawiki-extensions-VisualEditor

This is a mirror from https://gerrit.wikimedia.org/g/mediawiki/extensions/VisualEditor. See https://www.mediawiki.org/wiki/Developer_access for contributing.
JavaScript
77
star
25

jquery.uls

Universal Language Selector
JavaScript
74
star
26

banana-i18n

banana-i18n - Javascript Internationalization library
JavaScript
74
star
27

ws-export

A Wikimedia Toolforge tool for exporting ebooks from Wikisources.
PHP
73
star
28

wikidata-query-gui

Github mirror of "wikidata/query/gui" - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing)
JavaScript
72
star
29

mediawiki-vagrant

A virtual MediaWiki development environment, built on Vagrant, VirtualBox, and Puppet. This is a mirror from https://gerrit.wikimedia.org.
Ruby
67
star
30

wikimedia.github.io

HTML
66
star
31

wikipedia-kaios

The official Wikipedia KaiOS app.
JavaScript
63
star
32

limn

A GUI Visualization Toolkit
HTML
62
star
33

analytics-wikistats2

Mirror from https://gerrit.wikimedia.org/g/analytics/wikistats2
JavaScript
60
star
34

mediawiki-extensions-MobileFrontend

This is a mirror from https://gerrit.wikimedia.org. See https://www.mediawiki.org/wiki/Developer_access for contributing.
JavaScript
59
star
35

oojs-ui

OOUI is a modern JavaScript UI library with strong cross-browser support. It is the standard library for MediaWiki and Wikipedia. This is a mirror from https://gerrit.wikimedia.org. Main website:
JavaScript
56
star
36

operations-software-varnish-varnishkafka

Varnish log collector with Apache Kafka integration. This is a mirror from https://gerrit.wikimedia.org/g/operations/software/varnish/varnishkafka. See https://www.mediawiki.org/wiki/Developer_access for contributing.
C
55
star
37

IPSet

PHP library to match IPs against CIDR specs. This is a mirror from https://gerrit.wikimedia.org/g/IPSet/. See https://www.mediawiki.org/wiki/Developer_access for contributing.
PHP
53
star
38

wikipedia-preview

JavaScript
51
star
39

mediawiki-php-excimer

Mirror from https://gerrit.wikimedia.org/g/mediawiki/php/excimer. See https://www.mediawiki.org/wiki/Developer_access for contributing.
C
50
star
40

search-extra

Github mirror of "search/extra" - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing
Java
48
star
41

articlequality

A library for performing automatic detection of assessment classes of Wikipedia article text.
Python
46
star
42

WhoWroteThat

A Wikipedia gadget to a browser extension to display article contribution information. Powered by WikiWho.
JavaScript
46
star
43

mediawiki-ruby-api

Github mirror of "mediawiki/ruby/api" - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing
Ruby
45
star
44

wvui

Wikimedia Vue UI (WVUI) – Wikimedia Foundation's Vue.js shared user-interface components for Wikipedia, MediaWiki, and beyond. Please file tasks for WVUI and Vue.js on Phabricator: https://w.wiki/3khS, https://w.wiki/Xbt. Mirror from https://gerrit.wikimedia.org/r/plugins/gitiles/wvui
45
star
45

mediawiki-containers

[ARCHIVED] See https://www.mediawiki.org/wiki/MediaWiki-Docker
Shell
44
star
46

design-codex

Codex is a toolkit for building user interfaces within the Wikimedia Design System. Codex contains design tokens, Vue 3 components and VitePress documentation site packages. This is a mirror from https://gerrit.wikimedia.org/g/design/codex/
TypeScript
43
star
47

mediawiki-extensions-Scribunto

Github mirror of MediaWiki extension Scribunto - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing)
Lua
43
star
48

analytics-quarry-web

Github mirror of "analytics/quarry/web" - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing
43
star
49

mediawiki-extensions-Popups

GitHub mirror of MediaWiki extension Popups - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing
JavaScript
41
star
50

operations-software-druid_exporter

This is a mirror from https://gerrit.wikimedia.org. See https://www.mediawiki.org/wiki/Developer_access for contributing.
Python
39
star
51

mediawiki-extensions-CirrusSearch

🔍 Mirror of https://gerrit.wikimedia.org/g/mediawiki/extensions/CirrusSearch. See https://www.mediawiki.org/wiki/Developer_access for contributing.
PHP
39
star
52

performance-arc-lamp

🔥 Flame graphs and trace logs for PHP 7 in production.     Mirror from https://gerrit.wikimedia.org/g/performance/arc-lamp. See https://mediawiki.org/wiki/Developer_access for contributing.
Shell
39
star
53

AhoCorasick

A PHP implementation of the Aho-Corasick string search algorithm. Mirror from https://gerrit.wikimedia.org/g/AhoCorasick - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing)
PHP
37
star
54

labs-tools-intuition

Mirror of https://gerrit.wikimedia.org/g/labs/tools/intuition
PHP
36
star
55

mediawiki-extensions-Translate

🌐Github mirror of MediaWiki extension Translate - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing)
PHP
35
star
56

operations-puppet-kafka

Mirror of https://gerrit.wikimedia.org/g/operations/puppet/kafka See https://www.mediawiki.org/wiki/Developer_access for contributing
Puppet
35
star
57

WiktionaryMobile

Wiktionary on Mobile!
JavaScript
35
star
58

translatewiki

Github mirror of translatewiki - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing)
PHP
34
star
59

editquality

Supervised learning approach to determining the quality of edits in Wikipedia
Python
34
star
60

KafkaSSE

Kafka Consumer -> HTTP SSE
JavaScript
33
star
61

mediawiki-extensions-SyntaxHighlight_GeSHi

This is a mirror from https://gerrit.wikimedia.org. See https://www.mediawiki.org/wiki/Developer_access for contributing.
PHP
33
star
62

mediawiki-tools-codesniffer

Github mirror of MediaWiki tool codesniffer - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing)
PHP
32
star
63

mediawiki-extensions

GitHub mirror of the mediawiki/extensions repository. Development happens at https://gerrit.wikimedia.org. Please see https://www.mediawiki.org/wiki/Developer_account if you wish to contribute.
Python
31
star
64

mediawiki-skins-Timeless

Github mirror of "mediawiki/skins/Timeless" - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing
Less
30
star
65

operations-debs-pybal

Mirror of https://gerrit.wikimedia.org/g/operations/debs/pybal
Python
28
star
66

grunt-stylelint

Stylelint adapter for the Grunt task runner.
JavaScript
28
star
67

WikidataQueryServiceR

An R package for the Wikidata Query Service API
R
27
star
68

ifttt

[OBSOLETE] Replaced by https://gitlab.wikimedia.org/toolforge-repos/ifttt
Python
27
star
69

eslint-config-wikimedia

JavaScript style guide for Wikimedia.
JavaScript
26
star
70

eslint-plugin-no-jquery

Control allowance of certain jQuery functions, and suggest or autofix alternatives.
JavaScript
26
star
71

wikilabels

A generalized labeling service for MediaWiki
JavaScript
26
star
72

mediawiki-skins-MinervaNeue

Github mirror of "mediawiki/skins/MinervaNeue" - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing)
PHP
26
star
73

mediawiki-extensions-Echo

🔔 Notifications for MediaWiki. Mirror from https://gerrit.wikimedia.org/g/mediawiki/extensions/Echo. See https://www.mediawiki.org/wiki/Developer_access for contributing.
PHP
25
star
74

mediawiki-extensions-AbuseFilter

Github mirror of MediaWiki extension AbuseFilter - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing)
PHP
25
star
75

mediawiki-extensions-Cargo

Github mirror of MediaWiki extension Cargo - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing
JavaScript
25
star
76

integration-zuul-config

⚙️ This is a mirror from https://gerrit.wikimedia.org. See https://www.mediawiki.org/wiki/Developer_access for contributing.
24
star
77

mediawiki-tools-grunt-cssjanus

Mirror of https://gerrit.wikimedia.org/g/mediawiki/tools/grunt-cssjanus. See https://www.mediawiki.org/wiki/Developer_access for contributing.
JavaScript
24
star
78

WikiContrib

A tool for Wikimedia community members to visualize their technical contributions
JavaScript
23
star
79

mediawiki-tools-mwdumper

Github mirror of MediaWiki tool mwdumper - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing)
Java
23
star
80

mediawiki-tools-phan-SecurityCheckPlugin

Mirror of https://gerrit.wikimedia.org/g/mediawiki/tools/phan/SecurityCheckPlugin See https://www.mediawiki.org/wiki/Developer_access for contributing
PHP
23
star
81

cumin

An automation and orchestration framework — Mirror of https://gerrit.wikimedia.org/g/operations/software/cumin. To contribute see: https://wikitech.wikimedia.org/wiki/Cumin#How_to_contribute_to_Cumin
Python
23
star
82

jsonschema-tools

Tools to dereference and generated versioned JSONSchemas
JavaScript
22
star
83

analytics-kafkatee

Github mirror of "analytics/kafkatee" - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing
C
22
star
84

DeadlinkChecker

Code to determine if a link on the web is dead or alive
PHP
22
star
85

mediawiki-extensions-UniversalLanguageSelector

Github mirror of MediaWiki extension UniversalLanguageSelector - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing)
PHP
21
star
86

service-runner

Generic nodejs service supervisor
JavaScript
21
star
87

sentencex

A sentence segmentation library with wide language support optimized for speed and utility.
Python
20
star
88

fresh

🌱 Fresh environments.     Mirror of https://gerrit.wikimedia.org/g/fresh. See https://www.mediawiki.org/wiki/Developer_access for contributing.
Shell
20
star
89

jquery.webfonts

jQuery based Webfonts library
JavaScript
20
star
90

mediawiki-extensions-Flow

💬 Github mirror of MediaWiki extension Flow - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing
PHP
20
star
91

mediawiki-extensions-Math

Github mirror of MediaWiki extension Math - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing)
PHP
20
star
92

mediawiki-extensions-MultimediaViewer

Github mirror of MediaWiki extension MultimediaViewer - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing
JavaScript
20
star
93

eventgate

Library and HTTP Service for validating JSONSchema events and producing them (to Kafka or elsewhere)
JavaScript
19
star
94

kraken

Wikimedia analytics data services platform.
Java
19
star
95

WLMMobile

DEPRECATED -- not for production use. Wiki Loves Monuments app for Android.
JavaScript
19
star
96

mediawiki-extensions-WikiEditor

Mirror of https://gerrit.wikimedia.org/g/mediawiki/extensions/WikiEditor
JavaScript
18
star
97

mediawiki-extensions-NavigationTiming

⏱ Github mirror of MediaWiki extension NavigationTiming - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing)
JavaScript
18
star
98

mediawiki-php-luasandbox

Mirror of https://gerrit.wikimedia.org/g/mediawiki/php/luasandbox See https://www.mediawiki.org/wiki/Developer_access for contributing
C
18
star
99

mediawiki-extensions-PageForms

Github mirror of MediaWiki extension PageForms - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing)
JavaScript
18
star
100

operations-dns

Mirror of https://gerrit.wikimedia.org/g/operations/dns. See https://www.mediawiki.org/wiki/Developer_access for contributing.
Python
18
star