react-intlayer
Version:
Easily internationalize i18n your React applications with type-safe multilingual content management.
17 lines (16 loc) • 557 B
TypeScript
import { DeclaredLocales } from "@intlayer/types/module_augmentation";
//#region src/server/useLocale.d.ts
type UseLocaleResult = {
locale: DeclaredLocales;
defaultLocale: DeclaredLocales;
availableLocales: DeclaredLocales[];
};
/**
* On the server side, Hook that picking one dictionary by its key and return the content
*
* If the locale is not provided, it will use the locale from the server context
*/
declare const useLocale: () => UseLocaleResult;
//#endregion
export { UseLocaleResult, useLocale };
//# sourceMappingURL=useLocale.d.ts.map