next-translations
Version:
Translations to NextJS app
20 lines (19 loc) • 589 B
TypeScript
import type { T_PageTranslations } from "./hooks";
declare const allTranslationsLanguages: string[];
declare function getTranslationsProps(ctx: any, ns?: string[]): Promise<{
translations?: T_PageTranslations | undefined;
}>;
declare const getPaths: (filterDefaultLocale?: boolean) => {
params: {
locale: string;
};
}[];
declare const getStaticPaths: () => {
fallback: boolean;
paths: {
params: {
locale: string;
};
}[];
};
export { allTranslationsLanguages, getTranslationsProps, getPaths, getStaticPaths, };