Localize.Number() Frontend API Method

Use the new Localize.number() method to format numbers based on your site’s selected language or locale, ensuring users see numbers in their expected format.

Kirk B.
February 23, 2022

We've added a new method to the Localize Frontend API that allows you to convert the format of a number to the format used in the currently selected language/locale.

Use this method to convert specific numbers in your websites to the format of the language that your users are expecting.

See the specifications here: Localize.number()

Quickest Method for Publishing Translations

Talk to an expert today to find out how you can translate your website in minutes, not months.