The Locale API lets you read the site's language and regional settings. Use it to format dates, times, and numbers, and to lay out text, so they match the site's settings for every site visitor, both on the server and in the browser.
With the Locale API, you can:
Every value comes from the site's settings, not the site visitor's browser or device. The values are the same while the page renders on the server and in the browser, so code that formats with them produces the same output in both places.
It's important to note the following points before starting to code:
To use the API, install the @wix/site-service-locale package:
Import any type shown in these docs from @wix/site-service-locale/types:
In a React component, resolve the service with the useService hook:
Last updated: 13 October 2026