UNPKG

react-intlayer

Version:

Easily internationalize i18n your React applications with type-safe multilingual content management.

15 lines 530 B
import type { LocalesValues } from '@intlayer/config/client'; type useLocaleProps = { onLocaleChange?: (locale: LocalesValues) => void; }; /** * On the client side, hook to get the current locale and all related fields */ export declare const useLocale: ({ onLocaleChange }?: useLocaleProps) => { locale: LocalesValues; defaultLocale: import("intlayer").Locales; availableLocales: import("intlayer").Locales[]; setLocale: (locale: LocalesValues) => void; }; export {}; //# sourceMappingURL=useLocale.d.ts.map