Type Alias OtherLanguageWrap<Strings>

OtherLanguageWrap<Strings>: {
    [key in keyof Strings]?: Strings[key] extends I18nValue<infer A>
        ? I18nValue<A>
        : Strings[key] extends Record<string, unknown>
            ? OtherLanguageWrap<Strings[key]>
            : never
}

Wrapper type for i18n object containing strings for a language other than the primary one. Used to provide type safety.

Type Parameters

  • Strings