@shopify/react-i18n
Advanced tools
Comparing version 0.0.0-snapshot-20230203161211 to 0.0.0-snapshot-20230206191454
@@ -14,3 +14,3 @@ import { Replacements } from './types'; | ||
} | ||
export declare type I18nError = MissingTranslationError | MissingReplacementError | MissingCurrencyCodeError | MissingCountryError; | ||
export type I18nError = MissingTranslationError | MissingReplacementError | MissingCurrencyCodeError | MissingCountryError; | ||
//# sourceMappingURL=errors.d.ts.map |
import React from 'react'; | ||
import { I18n } from './i18n'; | ||
import { RegisterOptions } from './manager'; | ||
declare type Result = [I18n, React.ComponentType<{ | ||
type Result = [I18n, React.ComponentType<{ | ||
children: React.ReactNode; | ||
@@ -6,0 +6,0 @@ }>]; |
@@ -7,3 +7,3 @@ import { I18nDetails, TranslationDictionary, MaybePromise } from './types'; | ||
} | ||
declare type TranslationGetter = (locale: string) => MaybePromise<TranslationDictionary | undefined>; | ||
type TranslationGetter = (locale: string) => MaybePromise<TranslationDictionary | undefined>; | ||
interface TranslationMap { | ||
@@ -10,0 +10,0 @@ [key: string]: MaybePromise<TranslationDictionary | undefined>; |
@@ -26,5 +26,5 @@ /// <reference types="react" /> | ||
} | ||
export declare type MaybePromise<T> = T | Promise<T>; | ||
export type MaybePromise<T> = T | Promise<T>; | ||
export { CurrencyCode } from './currencyCode'; | ||
export declare type Replacements = PrimitiveReplacementDictionary | ComplexReplacementDictionary; | ||
export type Replacements = PrimitiveReplacementDictionary | ComplexReplacementDictionary; | ||
//# sourceMappingURL=types.d.ts.map |
{ | ||
"name": "@shopify/react-i18n", | ||
"version": "0.0.0-snapshot-20230203161211", | ||
"version": "0.0.0-snapshot-20230206191454", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "i18n utilities for React handling translations, formatting, and more", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
281963