Support for the legacy Fitbit Web API ends on September 30, 2026
Important: Support for the legacy Fitbit Web API ends on September 30, 2026. After this date the API will continue to operate, but Google will no longer fix bugs or provide API support. On October 30, 2026, the Fitbit Web API will be turned off and will no longer function or sync data to or from Fitbit users. To continue accessing data for your users after this date, migrate to the Google Health API.
User-settings API
chevron down
 

User-settings API

Variable: locale

Type: LocaleSettings

The User Settings API provides Locale settings for the current user.

import { locale } from "user-settings";
console.log(locale.language);

Interface: LocaleSettings

Locale settings are settings that relate to a user's preferred language.

Properties

readonly language

string

BCP 47 language tag.