Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

@shopify/react-i18n | Expose I18nError #2794

Open
2 tasks done
afonsograca opened this issue Jun 14, 2024 · 0 comments
Open
2 tasks done

@shopify/react-i18n | Expose I18nError #2794

afonsograca opened this issue Jun 14, 2024 · 0 comments
Labels

Comments

@afonsograca
Copy link

afonsograca commented Jun 14, 2024

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)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant