diff --git a/src/js/_enqueues/lib/nav-menu.js b/src/js/_enqueues/lib/nav-menu.js index be66268a5c087..3b1daa997067b 100644 --- a/src/js/_enqueues/lib/nav-menu.js +++ b/src/js/_enqueues/lib/nav-menu.js @@ -319,7 +319,7 @@ $selected = 'selected'; } - $html += ''; + $html += ''; $.each( menuItems, function() { var menuItem = $(this), @@ -364,7 +364,13 @@ if ( i == itemPosition ) { $selected = 'selected'; } - $html += ''; + // Translators: %1$s is the current menu item number, %2$s is the total number of menu items. + var itemString = wp.i18n.sprintf( + wp.i18n._x( '%1$s of %2$s', 'indicating a part of a total number of items in a navigation menu' ), + i, + totalMenuItems + ); + $html += ''; } } else { @@ -380,7 +386,13 @@ if ( i == itemPosition ) { $selected = 'selected'; } - $html += ''; + // Translators: %1$s is the current submenu item number, %2$s is the total number of submenu items. + var submenuString = wp.i18n.sprintf( + wp.i18n._x( '%1$s of %2$s', 'indicating a part of a total number of items in a submenu' ), + i, + totalSubMenuItems + ); + $html += ''; } }