@gulibs/react-vintl
Version:
Type-safe i18n library for React with Vite plugin and automatic type inference
12 lines • 438 B
TypeScript
import React from "react";
import type { I18nContextType, I18nProviderProps } from "./types";
/**
* I18n Provider 组件
* 自动使用生成的 I18nKeys 类型
*/
export declare function I18nProvider({ resources, defaultLocale, supportedLocales, children, }: I18nProviderProps): React.JSX.Element;
/**
* 使用 I18n Context 的 Hook
*/
export declare function useI18nContext(): I18nContextType;
//# sourceMappingURL=context.d.ts.map