UNPKG

@catchphrase/core

Version:

Functional i18n library for the web

3 lines (2 loc) 323 B
import { CreateTranslationConfig, CreateTranslationReturn, LanguageCode, TranslationThunk } from "./types"; export declare const createTranslation: <L extends LanguageCode>({ languageSelector }: CreateTranslationConfig<L>) => <K extends object>(translationThunk: TranslationThunk<L, K>) => CreateTranslationReturn<L, K>;