function translateInteger(number, locale = userLocale()) {
  const f = new Intl.NumberFormat(locale, {
    useGrouping: false,
    minimumFractionDigits: 0,
    maximumFractionDigits: 0,
  });
  return f.format(number);
}
/**
 * Translate an integer from English into the matching
 * character in the language specified by the locale.
 * If no locale is passed, then the browser locale is used.
 * The returned number will have no formatting.
 *
 * @private
 * @param {number} number - An integer integer to translate into
 *   the given language. Fractions will be removed.
 * @param {string} [locale] - A specific locale to use or the browser locale.
 * @return {string}
 */
Translate an integer from English into the matching
character in the language specified by the locale.
If no locale is passed, then the browser locale is used.
The returned number will have no formatting.

@private
@param {number} number - An integer integer to translate into
the given language. Fractions will be removed.
@param {string} [locale] - A specific locale to use or the browser locale.
@return {string}
Translate an integer from English into the matching character in the language specified by the locale . If no locale is passed then the browser locale is used . The returned number will have no formatting . @private @param { number } number - An integer integer to translate into the given language . Fractions will be removed . @param { string } [ locale ] - A specific locale to use or the browser locale . @return { string }
function translateInteger(number, locale = userLocale()) {
  const f = new Intl.NumberFormat(locale, {
    useGrouping: false,
    minimumFractionDigits: 0,
    maximumFractionDigits: 0,
  });
  return f.format(number);
}
function translateInteger ( number , locale = userLocale ( ) ) { const f = new Intl . NumberFormat ( locale , { useGrouping : false , minimumFractionDigits : 0 , maximumFractionDigits : 0 , } ) ; return f . format ( number ) ; }
Translate an integer from English into the matching
 character in the language specified by the locale.
Translate an integer from English into the matching character in the language specified by the locale .