I've ported all the languages from this file: https://github.com/Wikia/app/blob/dev/extensions/Translate/data/plural-gettext.txt. In case a few languages are missing, we can add the rules. If there is much more to support, I'd consider moving all the rules to PHP code and sending just a single rule for the current language in one package along with the javascript messages dictionary.