ntms
Version:
A dead simple way to add i18n to your Next.js app using the Notion API and Deepl
12 lines (11 loc) • 479 B
TypeScript
import { databaseDictionnary } from "./types";
interface ExtracTranslationsOptions {
deepl: any;
results: any;
locale: string;
defaultLocale: string;
notionLocales: string[];
defaultLocaleTranslations?: databaseDictionnary;
}
declare const extractTranslations: ({ deepl, results, locale, defaultLocale, defaultLocaleTranslations, notionLocales, }: ExtracTranslationsOptions) => Promise<databaseDictionnary>;
export default extractTranslations;