Explorar el Código

add Hindi plural rule

Markus-Rost hace 4 años
padre
commit
b42b17445f
Se han modificado 2 ficheros con 2 adiciones y 1 borrados
  1. 1 1
      README.md
  2. 1 0
      util/i18n.js

+ 1 - 1
README.md

@@ -3,7 +3,7 @@
 
 **Wiki-Bot** is a bot for [Discord](https://discord.com/) with the purpose to easily link and search [MediaWiki](https://www.mediawiki.org/wiki/MediaWiki) sites like [Gamepedia](https://www.gamepedia.com/) and [Fandom](https://www.fandom.com/) wikis. **Wiki-Bot** shows short descriptions and additional info about pages and is able to resolve redirects and follow interwiki links.
 
-**Wiki-Bot** has translations for English, German, French, Dutch, Polish, Portuguese, Russian, Turkish and Chinese.
+**Wiki-Bot** has translations for English, German, French, Hindi, Dutch, Polish, Portuguese, Russian, Turkish and Chinese.
 
 [Use this link to invite **Wiki-Bot** to your Discord server.](https://discord.com/oauth2/authorize?client_id=461189216198590464&permissions=939912256&scope=bot)
 

+ 1 - 0
util/i18n.js

@@ -163,6 +163,7 @@ function plural(lang, number, args) {
 	var text = args[args.length - 1];
 	switch ( lang ) {
 		case 'fr':
+		case 'hi':
 			if ( number <= 1 ) text = getArg(args, 0);
 			else text = getArg(args, 1);
 			break;