next-i18next
Version:
The easiest way to translate your NextJs apps.
17 lines (16 loc) • 676 B
text/typescript
import { useLayoutEffect } from "react";
import { FallbackLng } from "i18next";
//#region src/pagesRouter/utils.d.ts
declare const getFallbackForLng: (lng: string, fallbackLng: false | FallbackLng) => string[];
declare const unique: (list: string[]) => string[];
/**
* This hook behaves like `useLayoutEffect` on the client,
* and `useEffect` on the server(no effect).
*
* Since using `useLayoutEffect` on the server cause warning messages in nextjs,
* this hook is workaround for that.
*/
declare const useIsomorphicLayoutEffect: typeof useLayoutEffect;
//#endregion
export { getFallbackForLng, unique, useIsomorphicLayoutEffect };
//# sourceMappingURL=utils.d.cts.map