UNPKG

react-native-localize

Version:

A toolbox for your React Native app localization.

56 lines (55 loc) 1.82 kB
import { ReactNode } from "react"; export declare const getCalendar: () => string; export declare const getCountry: () => string; export declare const getCurrencies: () => string[]; export declare const getLocales: () => { countryCode: string; languageTag: string; languageCode: string; isRTL: boolean; }[]; export declare const getNumberFormatSettings: () => { decimalSeparator: string; groupingSeparator: string; }; export declare const getTemperatureUnit: () => string; export declare const getTimeZone: () => string; export declare const uses24HourClock: () => boolean; export declare const usesMetricSystem: () => boolean; export declare const usesAutoDateAndTime: () => boolean; export declare const usesAutoTimeZone: () => boolean; export declare const findBestLanguageTag: () => { languageTag: string; isRTL: boolean; }; export declare const openAppLanguageSettings: () => Promise<void>; export declare const ServerLanguagesProvider: ({ children, }: { children: ReactNode; value: string[]; }) => ReactNode; export declare const useLocalize: () => { getCalendar: () => string; getCountry: () => string; getCurrencies: () => string[]; getLocales: () => { countryCode: string; languageTag: string; languageCode: string; isRTL: boolean; }[]; getNumberFormatSettings: () => { decimalSeparator: string; groupingSeparator: string; }; getTemperatureUnit: () => string; getTimeZone: () => string; uses24HourClock: () => boolean; usesMetricSystem: () => boolean; usesAutoDateAndTime: () => boolean; usesAutoTimeZone: () => boolean; findBestLanguageTag: () => { languageTag: string; isRTL: boolean; }; openAppLanguageSettings: () => Promise<void>; };