UNPKG

@lifi/widget

Version:

LI.FI Widget for cross-chain bridging and swapping. It will drive your multi-chain strategy and attract new users from everywhere.

28 lines (21 loc) 651 B
import type * as languages from '../../i18n/index.js' export type PartialResource<T> = T extends object ? { [P in keyof T]?: PartialResource<T[P]> } : T export type LanguageKey = keyof typeof languages export type LanguageResource = typeof languages.en export type LanguageResources = | { [K in LanguageKey]?: PartialResource<LanguageResource> } | { [language: string]: PartialResource<LanguageResource> } export type LanguageTranslationResource = { [N in 'translation']: PartialResource<LanguageResource> } export type LanguageTranslationResources = { [language: string]: LanguageTranslationResource }