@gulibs/react-vintl
Version:
Type-safe i18n library for React with Vite plugin and automatic type inference
9 lines • 815 B
TypeScript
export type { I18nResources, I18nKeys, I18nLocales, I18nNamespaces, I18nContextType, TranslationFunction, NamespacedTranslationFunction, ExtractNamespaceKeys, TranslationProps, TranslationPropsBase, NamespacedTranslationProps, I18nProviderProps } from './types';
export { getNestedValue, replaceParams, createTranslationFunction, validateResources, deepMerge, mergeResources } from './utils';
export { I18nProvider, useI18nContext } from './context';
export { useTranslation, useI18n, useTranslationKey, useLocale } from './hooks';
export { useLoadRemoteTranslations } from './hooks-remote';
export type { LoadRemoteTranslationsOptions, LoadRemoteTranslationsResult } from './hooks-remote';
export { logger, Logger } from './logger';
export type { LoggerConfig } from './logger';
//# sourceMappingURL=index.d.ts.map