Skip to content
Snippets Groups Projects
Commit 3ad6d53d authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #172540 by ChrisKennedy: fixed typo on Drupal.formatPlural().

parent d33f3df9
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -149,7 +149,7 @@ Drupal.t = function(str, args) {
* A translated string.
*/
Drupal.formatPlural = function(count, singular, plural, args) {
var args = ars || {};
var args = args || {};
args['@count'] = count;
// Determine the index of the plural form.
var index = Drupal.locale.pluralFormula ? Drupal.locale.pluralFormula(args['@count']) : ((args['@count'] == 1) ? 0 : 1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment