Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

213
Views
Intl.NumberFormat.prototype.formatToParts support for Safari older version from 13

i got an error on my application that **formaTtoParts** is not defined

TypeError: Intl.NumberFormat(t,{minimumFractionDigits:2}).formatToParts is not a
function. (In 'Intl.NumberFormat(t,{minimumFractionDigits:2}).formatToParts(ri(e))',
 'Intl.NumberFormat(t,{minimumFractionDigits:2}).formatToParts' is undefined)
browser.name:
Mobile Safari UI/WKWebView

device:
iPhone

interface_type:
exception

os:
iOS 12.5.5

Is it possible to find a polyfill please for alternate solution that supports previous version of Safar from 13 ???

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

https://formatjs.io/docs/react-intl/components#formattednumberparts

React Intl has a set of React components that provide a declarative way to
 setup an i18n context and format dates, numbers, and strings for display in 
a web UI. The components render React elements by building on React Intl's imperative API.

this might help us on the device when Intl.NumberFormat.prototype.formatToPartsis not supported

Here is the file to check more details on the implementation: FormatNumericToParts.ts

Moreover, can use the @formatjs as a polyfill too

import '@formatjs/intl-numberformat/polyfill'
import '@formatjs/intl-numberformat/locale-data/en' // locale-data for en
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!