ThisisaprojectbyWikimediafoundation's[LanguageEngineeringteam](https://www.mediawiki.org/wiki/Wikimedia_Language_engineering) and used in some of the Wikimedia Foundation projects like Universal Language Selector.
Messagestakeparameters.Theyarerepresentedby$1,$2,$3,…inthemessagetexts,andreplacedatruntime.Typicalparametervaluesarenumbers(Example:"Delete 3 versions?"),orusernames(Example:"Page last edited by $1"),pagenames,links,andsoon,orsometimesothermessages.
```javascript
varmessage="Welcome, $1";
$.i18n(message,'Alice');// This gives "Welcome, Alice"
IncaseofEnglish,thereareonly2pluralforms,butmanylanguagesusemorethan2pluralforms.Allthepluralformscanbegivenintheabovesyntax,separatedbypipe(|).Thenumberofpluralformsforeachlanguageisdefinedin[CLDR](https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html). 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](https://github.com/santhoshtr/CLDRPluralRuleParser/tree/8baf9aedc428924fe6ee508b3d952cb5564efb3a/src)) as well as this project's own files to work properly.
$.i18n(message,12);// Gives "Box has a dozen eggs."
```
##Gender
Similartoplural,dependingongenderofplaceholders,mostlyusernames,thesyntaxchangesdynamically.AnexampleinEnglishis"Alice changed her profile picture"and"Bob changed his profile picture".Tosupportthis{{GENDER...}}syntaxcanbeusedasshowninexample