Type Alias OtherLanguageWrapExhaustive<Strings>

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

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

Unlike OtherLanguageWrap, this type requires all strings from the primary language to be present

Type Parameters

  • Strings