UNPKG

@intl-t/core

Version:

A Fully-Typed Node-Based i18n Translation Library

13 lines (12 loc) 518 B
import type { Translation } from "@intl-t/core/types"; export * from "@intl-t/global"; export default interface Global { Translation: Translation; } export type GlobalTranslation = Global extends { Translation: infer T; } ? T : Translation; export type GlobalSettings = GlobalTranslation["settings"]; export type GlobalPathSeparator = string extends GlobalSettings["ps"] ? "." : GlobalSettings["ps"]; export type GlobalLocale = GlobalSettings["allowedLocale"]; export type GlobalNode = GlobalSettings["tree"];