UNPKG

astro-nanointl

Version:

Tiny set of tools to implement internationalization for Astro

6 lines (3 loc) 230 B
type Args<T> = T extends Array<any> ? T : [T] export type TranslationFunction<T> = (...args: Args<T>) => string export type TransformFunction<TInput, TArgs> = (locale: string, translation?: TInput) => TranslationFunction<TArgs>