Files
smart-city-digital-twin-mar…/smart-app-city/frontend/node_modules/expo-localization/build/Localization.d.ts
Eric FELIXINE e30ae8ed09 feat(smart-app): implement complete mobile app MVP
- App.tsx: full navigation (Auth stack + Main tabs with 5 screens)
- Auth: LoginScreen, RegisterScreen, ForgotPasswordScreen
- HomeScreen: dashboard with IoT metrics, weather widget, alerts, quick actions, sensors
- MapScreen: interactive map with layer toggles (6 layers)
- MarketplaceScreen: categories (6), products (5), search
- ChatScreen: AI chat with quick prompts (4), bot responses
- ProfileScreen: user info, stats, menu (9 items), logout
- AlertsScreen: alert list with severity, acknowledge
- SensorsScreen: sensor list with type filters (6 types), search
- ZonesScreen: zone cards with stats
- SettingsScreen: language picker (FR/EN/ES/DE), privacy, about
- Stores: iotStore (sensors, zones, alerts), notificationStore, uiStore + i18n
- Hooks: useSensors, useAlerts, useNotifications, useLocation
- Components: Card, Button, LoadingSpinner, ErrorBoundary, Header
- Services: iotService, notificationService (with axios API client)
- Utils: formatters (temp, AQI, noise, dates), validators (email, password, IBAN)
- Theme: colors.ts with full design system (Blue Ocean palette)
- Ditto: fixed MongoDB connection, new JWT secrets, official gateway image
2026-06-01 18:00:35 -04:00

188 lines
6.3 KiB
TypeScript

import { Localization } from './Localization.types';
export * from './Localization.types';
/**
* @hidden
* @deprecated Use Localization.getLocales() instead.
* Three-character ISO 4217 currency code. Returns `null` on web.
*
* @example
* `'USD'`, `'EUR'`, `'CNY'`, `null`
*/
export declare const currency: string | null;
/**
* @hidden
* @deprecated Use Localization.getLocales() instead.
* Decimal separator used for formatting numbers.
*
* @example
* `','`, `'.'`
*/
export declare const decimalSeparator: string;
/**
* @hidden
* @deprecated Use Localization.getLocales() instead.
* Digit grouping separator used when formatting numbers larger than 1000.
*
* @example
* `'.'`, `''`, `','`
*/
export declare const digitGroupingSeparator: string;
/**
* @hidden
* @deprecated Use Localization.getLocales() instead.
* A list of all the supported language ISO codes.
*/
export declare const isoCurrencyCodes: string[];
/**
* @hidden
* @deprecated Use Localization.getLocales() instead.
* Boolean value that indicates whether the system uses the metric system.
* On Android and web, this is inferred from the current region.
*/
export declare const isMetric: boolean;
/**
* @hidden
* @deprecated Use Localization.getLocales() instead.
* Returns if the system's language is written from Right-to-Left.
* This can be used to build features like [bidirectional icons](https://material.io/design/usability/bidirectionality.html).
*
* Returns `false` in Server Side Rendering (SSR) environments.
*/
export declare const isRTL: boolean;
/**
* @deprecated Use [`Localization.getLocales()`](#localizationgetlocales) instead.
* An [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag),
* 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'`
*/
export declare const locale: string;
/**
* @hidden
* @deprecated Use Localization.getLocales() instead.
* List of all the native languages provided by the user settings.
* These are returned in the order the user defines in their device settings.
*
* @example
* `['en', 'en-US', 'zh-Hans', 'zh-Hans-CN', 'en-emodeng']`
*/
export declare const locales: string[];
/**
* @hidden
* @deprecated Use Localization.getCalendars() instead.
* The current time zone in display format.
* On Web time zone is calculated with Intl.DateTimeFormat().resolvedOptions().timeZone. For a
* better estimation you could use the moment-timezone package but it will add significant bloat to
* your website's bundle size.
*
* @example
* `'America/Los_Angeles'`
*/
export declare const timezone: string;
/**
* @hidden
* @deprecated Use Localization.getLocales() instead.
* The region code for your device that comes from the Region setting under Language & Region on iOS.
* This value is always available on iOS, but might return `null` on Android or web.
*
* @example
* `'US'`, `'NZ'`, `null`
*/
export declare const region: string | null;
/**
* List of user's locales, returned as an array of objects of type `Locale`.
* Guaranteed to contain at least 1 element.
* These are returned in the order the user defines in their device settings.
* On the web currency and measurements systems are not provided, instead returned as null.
* If needed, you can infer them from the current region using a lookup table.
* @example
* ```js
* [{
* "languageTag": "pl-PL",
* "languageCode": "pl",
* "textDirection": "ltr",
* "digitGroupingSeparator": " ",
* "decimalSeparator": ",",
* "measurementSystem": "metric",
* "currencyCode": "PLN",
* "currencySymbol": "zł",
* "regionCode": "PL",
* "temperatureUnit": "celsius"
* }]
* ```
*/
export declare const getLocales: () => import("./Localization.types").Locale[];
/**
* List of user's preferred calendars, returned as an array of objects of type `Calendar`.
* Guaranteed to contain at least 1 element.
* For now always returns a single element, but it's likely to return a user preference list on some platforms in the future.
* @example
* ```js
* [{
* "calendar": "gregory",
* "timeZone": "Europe/Warsaw",
* "uses24hourClock": true,
* "firstWeekday": 1
* }]
* ```
*/
export declare const getCalendars: () => import("./Localization.types").Calendar[];
/**
* A hook providing a list of user's locales, returned as an array of objects of type `Locale`.
* Guaranteed to contain at least 1 element.
* These are returned in the order the user defines in their device settings.
* On the web currency and measurements systems are not provided, instead returned as null.
* If needed, you can infer them from the current region using a lookup table.
* If the OS settings change, the hook will rerender with a new list of locales.
* @example
* ```js
* [{
* "languageTag": "pl-PL",
* "languageCode": "pl",
* "textDirection": "ltr",
* "digitGroupingSeparator": " ",
* "decimalSeparator": ",",
* "measurementSystem": "metric",
* "currencyCode": "PLN",
* "currencySymbol": "zł",
* "regionCode": "PL",
* "temperatureUnit": "celsius"
* }]
* ```
*/
export declare function useLocales(): import("./Localization.types").Locale[];
/**
* A hook providing a list of user's preferred calendars, returned as an array of objects of type `Calendar`.
* Guaranteed to contain at least 1 element.
* For now always returns a single element, but it's likely to return a user preference list on some platforms in the future.
* If the OS settings change, the hook will rerender with a new list of calendars.
* @example
* ```js
* [{
* "calendar": "gregory",
* "timeZone": "Europe/Warsaw",
* "uses24hourClock": true,
* "firstWeekday": 1
* }]
* ```
*/
export declare function useCalendars(): import("./Localization.types").Calendar[];
/**
* @hidden
* Get the latest native values from the device. Locale can be changed on some Android devices
* without resetting the app.
* > On iOS, changing the locale will cause the device to reset meaning the constants will always be
* correct.
*
* @example
* ```ts
* // When the app returns from the background on Android...
*
* const { locale } = await Localization.getLocalizationAsync();
* ```
* @deprecated
* Use Localization.getLocales() or Localization.getCalendars() instead.
*/
export declare function getLocalizationAsync(): Promise<Localization>;
//# sourceMappingURL=Localization.d.ts.map