Socket
Socket
Sign inDemoInstall

expo-localization

Package Overview
Dependencies
2
Maintainers
28
Versions
74
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 14.8.4 to 15.0.0

2

build/ExpoLocalization.d.ts

@@ -19,5 +19,5 @@ import { Subscription } from 'expo-modules-core';

getCalendars(): Calendar[];
getLocalizationAsync(): Promise<Omit<Localization, 'getCalendars' | 'getLocales'>>;
getLocalizationAsync(): Promise<Omit<Localization, "getCalendars" | "getLocales">>;
};
export default _default;
//# sourceMappingURL=ExpoLocalization.d.ts.map

@@ -142,3 +142,3 @@ /* eslint-env browser */

timeZone: locale?.timeZone || locale?.timeZones?.[0] || null,
uses24hourClock: (locale?.hourCycle || locale?.hourCycles?.[0])?.startsWith('h2') ?? null,
uses24hourClock: (locale?.hourCycle || locale?.hourCycles?.[0])?.startsWith('h2') ?? null, //https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/hourCycle
firstWeekday: locale?.weekInfo?.firstDay || null,

@@ -145,0 +145,0 @@ },

@@ -8,3 +8,4 @@ import { Localization } from './Localization.types';

*
* @example `'USD'`, `'EUR'`, `'CNY'`, `null`
* @example
* `'USD'`, `'EUR'`, `'CNY'`, `null`
*/

@@ -17,3 +18,4 @@ export declare const currency: string | null;

*
* @example `','`, `'.'`
* @example
* `','`, `'.'`
*/

@@ -26,3 +28,4 @@ export declare const decimalSeparator: string;

*
* @example `'.'`, `''`, `','`
* @example
* `'.'`, `''`, `','`
*/

@@ -57,3 +60,4 @@ export declare const digitGroupingSeparator: string;

*
* @example `'en'`, `'en-US'`, `'zh-Hans'`, `'zh-Hans-CN'`, `'en-emodeng'`
* @example
* `'en'`, `'en-US'`, `'zh-Hans'`, `'zh-Hans-CN'`, `'en-emodeng'`
*/

@@ -67,3 +71,4 @@ export declare const locale: string;

*
* @example `['en', 'en-US', 'zh-Hans', 'zh-Hans-CN', 'en-emodeng']`
* @example
* `['en', 'en-US', 'zh-Hans', 'zh-Hans-CN', 'en-emodeng']`
*/

@@ -79,3 +84,4 @@ export declare const locales: string[];

*
* @example `'America/Los_Angeles'`
* @example
* `'America/Los_Angeles'`
*/

@@ -89,3 +95,4 @@ export declare const timezone: string;

*
* @example `'US'`, `'NZ'`, `null`
* @example
* `'US'`, `'NZ'`, `null`
*/

@@ -99,14 +106,17 @@ export declare const region: string | null;

* If needed, you can infer them from the current region using a lookup table.
* @example `[{
"languageTag": "pl-PL",
"languageCode": "pl",
"textDirection": "ltr",
"digitGroupingSeparator": " ",
"decimalSeparator": ",",
"measurementSystem": "metric",
"currencyCode": "PLN",
"currencySymbol": "zł",
"regionCode": "PL",
"temperatureUnit": "celsius"
}]`
* @example
* ```js
* [{
* "languageTag": "pl-PL",
* "languageCode": "pl",
* "textDirection": "ltr",
* "digitGroupingSeparator": " ",
* "decimalSeparator": ",",
* "measurementSystem": "metric",
* "currencyCode": "PLN",
* "currencySymbol": "zł",
* "regionCode": "PL",
* "temperatureUnit": "celsius"
* }]
* ```
*/

@@ -118,10 +128,11 @@ export declare const getLocales: () => import("./Localization.types").Locale[];

* For now always returns a single element, but it's likely to return a user preference list on some platforms in the future.
* @example `[
{
"calendar": "gregory",
"timeZone": "Europe/Warsaw",
"uses24hourClock": true,
"firstWeekday": 1
}
]`
* @example
* ```js
* [{
* "calendar": "gregory",
* "timeZone": "Europe/Warsaw",
* "uses24hourClock": true,
* "firstWeekday": 1
* }]
* ```
*/

@@ -136,14 +147,17 @@ export declare const getCalendars: () => import("./Localization.types").Calendar[];

* If the OS settings change, the hook will rerender with a new list of locales.
* @example `[{
"languageTag": "pl-PL",
"languageCode": "pl",
"textDirection": "ltr",
"digitGroupingSeparator": " ",
"decimalSeparator": ",",
"measurementSystem": "metric",
"currencyCode": "PLN",
"currencySymbol": "zł",
"regionCode": "PL",
"temperatureUnit": "celsius"
}]`
* @example
* ```js
* [{
* "languageTag": "pl-PL",
* "languageCode": "pl",
* "textDirection": "ltr",
* "digitGroupingSeparator": " ",
* "decimalSeparator": ",",
* "measurementSystem": "metric",
* "currencyCode": "PLN",
* "currencySymbol": "zł",
* "regionCode": "PL",
* "temperatureUnit": "celsius"
* }]
* ```
*/

@@ -156,10 +170,11 @@ export declare function useLocales(): import("./Localization.types").Locale[];

* If the OS settings change, the hook will rerender with a new list of calendars.
* @example `[
{
"calendar": "gregory",
"timeZone": "Europe/Warsaw",
"uses24hourClock": true,
"firstWeekday": 1
}
]`
* @example
* ```js
* [{
* "calendar": "gregory",
* "timeZone": "Europe/Warsaw",
* "uses24hourClock": true,
* "firstWeekday": 1
* }]
* ```
*/

@@ -166,0 +181,0 @@ export declare function useCalendars(): import("./Localization.types").Calendar[];

@@ -10,3 +10,4 @@ import { useEffect, useReducer, useMemo } from 'react';

*
* @example `'USD'`, `'EUR'`, `'CNY'`, `null`
* @example
* `'USD'`, `'EUR'`, `'CNY'`, `null`
*/

@@ -20,3 +21,4 @@ export const currency = ExpoLocalization.currency;

*
* @example `','`, `'.'`
* @example
* `','`, `'.'`
*/

@@ -30,3 +32,4 @@ export const decimalSeparator = ExpoLocalization.decimalSeparator;

*
* @example `'.'`, `''`, `','`
* @example
* `'.'`, `''`, `','`
*/

@@ -65,3 +68,4 @@ export const digitGroupingSeparator = ExpoLocalization.digitGroupingSeparator;

*
* @example `'en'`, `'en-US'`, `'zh-Hans'`, `'zh-Hans-CN'`, `'en-emodeng'`
* @example
* `'en'`, `'en-US'`, `'zh-Hans'`, `'zh-Hans-CN'`, `'en-emodeng'`
*/

@@ -76,3 +80,4 @@ export const locale = ExpoLocalization.locale;

*
* @example `['en', 'en-US', 'zh-Hans', 'zh-Hans-CN', 'en-emodeng']`
* @example
* `['en', 'en-US', 'zh-Hans', 'zh-Hans-CN', 'en-emodeng']`
*/

@@ -89,3 +94,4 @@ export const locales = ExpoLocalization.locales;

*
* @example `'America/Los_Angeles'`
* @example
* `'America/Los_Angeles'`
*/

@@ -100,3 +106,4 @@ export const timezone = ExpoLocalization.timezone;

*
* @example `'US'`, `'NZ'`, `null`
* @example
* `'US'`, `'NZ'`, `null`
*/

@@ -110,14 +117,17 @@ export const region = ExpoLocalization.region;

* If needed, you can infer them from the current region using a lookup table.
* @example `[{
"languageTag": "pl-PL",
"languageCode": "pl",
"textDirection": "ltr",
"digitGroupingSeparator": " ",
"decimalSeparator": ",",
"measurementSystem": "metric",
"currencyCode": "PLN",
"currencySymbol": "zł",
"regionCode": "PL",
"temperatureUnit": "celsius"
}]`
* @example
* ```js
* [{
* "languageTag": "pl-PL",
* "languageCode": "pl",
* "textDirection": "ltr",
* "digitGroupingSeparator": " ",
* "decimalSeparator": ",",
* "measurementSystem": "metric",
* "currencyCode": "PLN",
* "currencySymbol": "zł",
* "regionCode": "PL",
* "temperatureUnit": "celsius"
* }]
* ```
*/

@@ -129,10 +139,11 @@ export const getLocales = ExpoLocalization.getLocales;

* For now always returns a single element, but it's likely to return a user preference list on some platforms in the future.
* @example `[
{
"calendar": "gregory",
"timeZone": "Europe/Warsaw",
"uses24hourClock": true,
"firstWeekday": 1
}
]`
* @example
* ```js
* [{
* "calendar": "gregory",
* "timeZone": "Europe/Warsaw",
* "uses24hourClock": true,
* "firstWeekday": 1
* }]
* ```
*/

@@ -147,14 +158,17 @@ export const getCalendars = ExpoLocalization.getCalendars;

* If the OS settings change, the hook will rerender with a new list of locales.
* @example `[{
"languageTag": "pl-PL",
"languageCode": "pl",
"textDirection": "ltr",
"digitGroupingSeparator": " ",
"decimalSeparator": ",",
"measurementSystem": "metric",
"currencyCode": "PLN",
"currencySymbol": "zł",
"regionCode": "PL",
"temperatureUnit": "celsius"
}]`
* @example
* ```js
* [{
* "languageTag": "pl-PL",
* "languageCode": "pl",
* "textDirection": "ltr",
* "digitGroupingSeparator": " ",
* "decimalSeparator": ",",
* "measurementSystem": "metric",
* "currencyCode": "PLN",
* "currencySymbol": "zł",
* "regionCode": "PL",
* "temperatureUnit": "celsius"
* }]
* ```
*/

@@ -177,10 +191,11 @@ export function useLocales() {

* If the OS settings change, the hook will rerender with a new list of calendars.
* @example `[
{
"calendar": "gregory",
"timeZone": "Europe/Warsaw",
"uses24hourClock": true,
"firstWeekday": 1
}
]`
* @example
* ```js
* [{
* "calendar": "gregory",
* "timeZone": "Europe/Warsaw",
* "uses24hourClock": true,
* "firstWeekday": 1
* }]
* ```
*/

@@ -187,0 +202,0 @@ export function useCalendars() {

export type Localization = {
/**
* Three-character ISO 4217 currency code. Returns `null` on web.
*
* @example `'USD'`, `'EUR'`, `'CNY'`, `null`
* @example
* `'USD'`, `'EUR'`, `'CNY'`, `null`
*/

@@ -10,4 +10,4 @@ currency: string | null;

* Decimal separator used for formatting numbers.
*
* @example `','`, `'.'`
* @example
* `','`, `'.'`
*/

@@ -17,4 +17,4 @@ decimalSeparator: string;

* Digit grouping separator used when formatting numbers larger than 1000.
*
* @example `'.'`, `''`, `','`
* @example
* `'.'`, `''`, `','`
*/

@@ -41,4 +41,4 @@ digitGroupingSeparator: string;

* consisting of a two-character language code and optional script, region and variant codes.
*
* @example `'en'`, `'en-US'`, `'zh-Hans'`, `'zh-Hans-CN'`, `'en-emodeng'`
* @example
* `'en'`, `'en-US'`, `'zh-Hans'`, `'zh-Hans-CN'`, `'en-emodeng'`
*/

@@ -49,4 +49,4 @@ locale: string;

* These are returned in the order that the user defined in the device settings.
*
* @example `['en', 'en-US', 'zh-Hans', 'zh-Hans-CN', 'en-emodeng']`
* @example
* `['en', 'en-US', 'zh-Hans', 'zh-Hans-CN', 'en-emodeng']`
*/

@@ -57,4 +57,4 @@ locales: string[];

* This value is always available on iOS, but might return `null` on Android or web.
*
* @example `'US'`, `'NZ'`, `null`
* @example
* `'US'`, `'NZ'`, `null`
*/

@@ -67,4 +67,4 @@ region: string | null;

* your website's bundle size.
*
* @example `'America/Los_Angeles'`
* @example
* `'America/Los_Angeles'`
*/

@@ -76,3 +76,4 @@ timezone: string;

* An [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) with a region code.
* @example `'en-US'`, `'es-419'`, `'pl-PL'`.
* @example
* `'en-US'`, `'es-419'`, `'pl-PL'`.
*/

@@ -82,3 +83,4 @@ languageTag: string;

* An [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) without the region code.
* @example `'en'`, `'es'`, `'pl'`.
* @example
* `'en'`, `'es'`, `'pl'`.
*/

@@ -93,3 +95,4 @@ languageCode: string | null;

* Is `null` on Web, use a table lookup based on region instead.
* @example `'USD'`, `'EUR'`, `'PLN'`.
* @example
* `'USD'`, `'EUR'`, `'PLN'`.
*/

@@ -100,3 +103,4 @@ currencyCode: string | null;

* Is `null` on Web, use a table lookup based on region (if available) instead.
* @example `'$'`, `'€'`, `'zł'`.
* @example
* `'$'`, `'€'`, `'zł'`.
*/

@@ -106,3 +110,4 @@ currencySymbol: string | null;

* Decimal separator used for formatting numbers with fractional parts.
* @example `'.'`, `','`.
* @example
* `'.'`, `','`.
*/

@@ -112,3 +117,4 @@ decimalSeparator: string | null;

* Digit grouping separator used for formatting large numbers.
* @example `'.'`, `','`.
* @example
* `'.'`, `','`.
*/

@@ -198,3 +204,3 @@ digitGroupingSeparator: string | null;

/**
* True when current device settings use 24 hour time format.
* True when current device settings use 24-hour time format.
* Can be null on some browsers that don't support the [hourCycle](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/hourCycle) property in [Intl](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl) API.

@@ -206,3 +212,4 @@ */

* Can be null on some browsers that don't support the [weekInfo](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/weekInfo) property in [Intl](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl) API.
* @example `1`, `7`.
* @example
* `1`, `7`.
*/

@@ -212,3 +219,4 @@ firstWeekday: Weekday | null;

* Time zone for the calendar. Can be `null` on Web.
* @example `'America/Los_Angeles'`, `'Europe/Warsaw'`, `'GMT+1'`.
* @example
* `'America/Los_Angeles'`, `'Europe/Warsaw'`, `'GMT+1'`.
*/

@@ -215,0 +223,0 @@ timeZone: string | null;

@@ -13,17 +13,22 @@ # Changelog

## 14.8.4 — 2024-04-15
## 15.0.0 — 2024-04-18
### 💡 Others
### 🐛 Bug fixes
- [iOS] Add privacy manifest describing required reason API usage. ([#27770](https://github.com/expo/expo/pull/27770) by [@aleqsio](https://github.com/aleqsio))
- [Android] Fix es-419 locale returning empty list. ([#27250](https://github.com/expo/expo/pull/27250) by [@aleqsio](https://github.com/aleqsio))
## 14.8.3 — 2024-01-18
### 💡 Others
- Removed deprecated backward compatible Gradle settings. ([#28083](https://github.com/expo/expo/pull/28083) by [@kudo](https://github.com/kudo))
## 14.8.3 - 2024-01-18
_This version does not introduce any user-facing changes._
## 14.8.2 — 2024-01-10
## 14.8.2 - 2024-01-10
_This version does not introduce any user-facing changes._
## 14.8.1 — 2023-12-19
## 14.8.1 - 2023-12-19

@@ -30,0 +35,0 @@ _This version does not introduce any user-facing changes._

{
"name": "expo-localization",
"version": "14.8.4",
"version": "15.0.0",
"description": "Provides an interface for native user localization information.",

@@ -50,3 +50,3 @@ "main": "build/Localization.js",

},
"gitHead": "88a8226609b870c0635c39da43ac8306c4dc7031"
"gitHead": "4165b8d72e1b9a1889c2767534cc619e21468110"
}

@@ -17,3 +17,4 @@ import { useEffect, useReducer, useMemo } from 'react';

*
* @example `'USD'`, `'EUR'`, `'CNY'`, `null`
* @example
* `'USD'`, `'EUR'`, `'CNY'`, `null`
*/

@@ -28,3 +29,4 @@ export const currency = ExpoLocalization.currency;

*
* @example `','`, `'.'`
* @example
* `','`, `'.'`
*/

@@ -39,3 +41,4 @@ export const decimalSeparator = ExpoLocalization.decimalSeparator;

*
* @example `'.'`, `''`, `','`
* @example
* `'.'`, `''`, `','`
*/

@@ -78,3 +81,4 @@ export const digitGroupingSeparator = ExpoLocalization.digitGroupingSeparator;

*
* @example `'en'`, `'en-US'`, `'zh-Hans'`, `'zh-Hans-CN'`, `'en-emodeng'`
* @example
* `'en'`, `'en-US'`, `'zh-Hans'`, `'zh-Hans-CN'`, `'en-emodeng'`
*/

@@ -90,3 +94,4 @@ export const locale = ExpoLocalization.locale;

*
* @example `['en', 'en-US', 'zh-Hans', 'zh-Hans-CN', 'en-emodeng']`
* @example
* `['en', 'en-US', 'zh-Hans', 'zh-Hans-CN', 'en-emodeng']`
*/

@@ -104,3 +109,4 @@ export const locales = ExpoLocalization.locales;

*
* @example `'America/Los_Angeles'`
* @example
* `'America/Los_Angeles'`
*/

@@ -116,3 +122,4 @@ export const timezone = ExpoLocalization.timezone;

*
* @example `'US'`, `'NZ'`, `null`
* @example
* `'US'`, `'NZ'`, `null`
*/

@@ -127,14 +134,17 @@ export const region = ExpoLocalization.region;

* If needed, you can infer them from the current region using a lookup table.
* @example `[{
"languageTag": "pl-PL",
"languageCode": "pl",
"textDirection": "ltr",
"digitGroupingSeparator": " ",
"decimalSeparator": ",",
"measurementSystem": "metric",
"currencyCode": "PLN",
"currencySymbol": "zł",
"regionCode": "PL",
"temperatureUnit": "celsius"
}]`
* @example
* ```js
* [{
* "languageTag": "pl-PL",
* "languageCode": "pl",
* "textDirection": "ltr",
* "digitGroupingSeparator": " ",
* "decimalSeparator": ",",
* "measurementSystem": "metric",
* "currencyCode": "PLN",
* "currencySymbol": "zł",
* "regionCode": "PL",
* "temperatureUnit": "celsius"
* }]
* ```
*/

@@ -147,10 +157,11 @@ export const getLocales = ExpoLocalization.getLocales;

* For now always returns a single element, but it's likely to return a user preference list on some platforms in the future.
* @example `[
{
"calendar": "gregory",
"timeZone": "Europe/Warsaw",
"uses24hourClock": true,
"firstWeekday": 1
}
]`
* @example
* ```js
* [{
* "calendar": "gregory",
* "timeZone": "Europe/Warsaw",
* "uses24hourClock": true,
* "firstWeekday": 1
* }]
* ```
*/

@@ -166,14 +177,17 @@ export const getCalendars = ExpoLocalization.getCalendars;

* If the OS settings change, the hook will rerender with a new list of locales.
* @example `[{
"languageTag": "pl-PL",
"languageCode": "pl",
"textDirection": "ltr",
"digitGroupingSeparator": " ",
"decimalSeparator": ",",
"measurementSystem": "metric",
"currencyCode": "PLN",
"currencySymbol": "zł",
"regionCode": "PL",
"temperatureUnit": "celsius"
}]`
* @example
* ```js
* [{
* "languageTag": "pl-PL",
* "languageCode": "pl",
* "textDirection": "ltr",
* "digitGroupingSeparator": " ",
* "decimalSeparator": ",",
* "measurementSystem": "metric",
* "currencyCode": "PLN",
* "currencySymbol": "zł",
* "regionCode": "PL",
* "temperatureUnit": "celsius"
* }]
* ```
*/

@@ -197,10 +211,11 @@ export function useLocales() {

* If the OS settings change, the hook will rerender with a new list of calendars.
* @example `[
{
"calendar": "gregory",
"timeZone": "Europe/Warsaw",
"uses24hourClock": true,
"firstWeekday": 1
}
]`
* @example
* ```js
* [{
* "calendar": "gregory",
* "timeZone": "Europe/Warsaw",
* "uses24hourClock": true,
* "firstWeekday": 1
* }]
* ```
*/

@@ -207,0 +222,0 @@ export function useCalendars() {

@@ -5,4 +5,4 @@ // @needsAudit

* Three-character ISO 4217 currency code. Returns `null` on web.
*
* @example `'USD'`, `'EUR'`, `'CNY'`, `null`
* @example
* `'USD'`, `'EUR'`, `'CNY'`, `null`
*/

@@ -12,4 +12,4 @@ currency: string | null;

* Decimal separator used for formatting numbers.
*
* @example `','`, `'.'`
* @example
* `','`, `'.'`
*/

@@ -19,4 +19,4 @@ decimalSeparator: string;

* Digit grouping separator used when formatting numbers larger than 1000.
*
* @example `'.'`, `''`, `','`
* @example
* `'.'`, `''`, `','`
*/

@@ -43,4 +43,4 @@ digitGroupingSeparator: string;

* consisting of a two-character language code and optional script, region and variant codes.
*
* @example `'en'`, `'en-US'`, `'zh-Hans'`, `'zh-Hans-CN'`, `'en-emodeng'`
* @example
* `'en'`, `'en-US'`, `'zh-Hans'`, `'zh-Hans-CN'`, `'en-emodeng'`
*/

@@ -51,4 +51,4 @@ locale: string;

* These are returned in the order that the user defined in the device settings.
*
* @example `['en', 'en-US', 'zh-Hans', 'zh-Hans-CN', 'en-emodeng']`
* @example
* `['en', 'en-US', 'zh-Hans', 'zh-Hans-CN', 'en-emodeng']`
*/

@@ -59,4 +59,4 @@ locales: string[];

* This value is always available on iOS, but might return `null` on Android or web.
*
* @example `'US'`, `'NZ'`, `null`
* @example
* `'US'`, `'NZ'`, `null`
*/

@@ -69,4 +69,4 @@ region: string | null;

* your website's bundle size.
*
* @example `'America/Los_Angeles'`
* @example
* `'America/Los_Angeles'`
*/

@@ -79,3 +79,4 @@ timezone: string;

* An [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) with a region code.
* @example `'en-US'`, `'es-419'`, `'pl-PL'`.
* @example
* `'en-US'`, `'es-419'`, `'pl-PL'`.
*/

@@ -85,3 +86,4 @@ languageTag: string;

* An [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) without the region code.
* @example `'en'`, `'es'`, `'pl'`.
* @example
* `'en'`, `'es'`, `'pl'`.
*/

@@ -96,3 +98,4 @@ languageCode: string | null;

* Is `null` on Web, use a table lookup based on region instead.
* @example `'USD'`, `'EUR'`, `'PLN'`.
* @example
* `'USD'`, `'EUR'`, `'PLN'`.
*/

@@ -103,3 +106,4 @@ currencyCode: string | null;

* Is `null` on Web, use a table lookup based on region (if available) instead.
* @example `'$'`, `'€'`, `'zł'`.
* @example
* `'$'`, `'€'`, `'zł'`.
*/

@@ -109,3 +113,4 @@ currencySymbol: string | null;

* Decimal separator used for formatting numbers with fractional parts.
* @example `'.'`, `','`.
* @example
* `'.'`, `','`.
*/

@@ -115,3 +120,4 @@ decimalSeparator: string | null;

* Digit grouping separator used for formatting large numbers.
* @example `'.'`, `','`.
* @example
* `'.'`, `','`.
*/

@@ -129,3 +135,2 @@ digitGroupingSeparator: string | null;

measurementSystem: `metric` | `us` | `uk` | null;
/**

@@ -206,3 +211,3 @@ * The temperature unit used in the locale.

/**
* True when current device settings use 24 hour time format.
* True when current device settings use 24-hour time format.
* Can be null on some browsers that don't support the [hourCycle](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/hourCycle) property in [Intl](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl) API.

@@ -214,3 +219,4 @@ */

* Can be null on some browsers that don't support the [weekInfo](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/weekInfo) property in [Intl](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl) API.
* @example `1`, `7`.
* @example
* `1`, `7`.
*/

@@ -220,5 +226,6 @@ firstWeekday: Weekday | null;

* Time zone for the calendar. Can be `null` on Web.
* @example `'America/Los_Angeles'`, `'Europe/Warsaw'`, `'GMT+1'`.
* @example
* `'America/Los_Angeles'`, `'Europe/Warsaw'`, `'GMT+1'`.
*/
timeZone: string | null;
};

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc