Skip to content
This repository was archived by the owner on Jan 10, 2025. It is now read-only.
This repository was archived by the owner on Jan 10, 2025. It is now read-only.

@shopify/react-i18n | Expose I18nError #2794

Description

@afonsograca

Overview

The interface I18nDetails is public and one of its props uses I18nError as an argument and the latter is not publicly available.

For typed situations, it would be good to have access to this type.

Motivation

In TypeScript, currently we are not able to do something like this:

const onError = (error: I18nError) => {
  ...
};

const manager =  I18nManager({locale, onError, currency: currencyCode, fallbackLocale: FALLBACK_LANGUAGE});

Checklist

  • Please delete the labels section before submitting your issue
  • I have described this issue in a way that is actionable (if possible)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions