UNPKG

@particular.cloud/i18n-react

Version:

i18n-react builds on top of i18n-js and implements a translation hook and provider

15 lines (14 loc) 408 B
import React from 'react'; import { TemplateValues } from '@particular.cloud/i18n-js'; export interface TextProps { textKey: string; language?: string; values?: TemplateValues; isolate?: boolean; } /** * Text: A component wrapper around the useT hook * (useful in class components where hooks cannot be used.) */ declare const Text: React.FC<TextProps>; export default Text;