fixing API mismatch between the patch for Y.Intl and the original core implementation