0768e8fa29
- add Intl-backed locale definitions, formatters, catalog loaders, and runtime hooks\n- compile hashed production catalogs from package-scoped catalog sources\n- drive Lingui extraction and compilation directly from project JSON config\n- redesign the devtool with localized controls, draggable persistence, settings, navigation, copy actions, ANSI output, and fullscreen support\n- extend repository APIs, CLI coverage, documentation, and runtime tests
14 lines
377 B
TypeScript
14 lines
377 B
TypeScript
import * as React from "react"
|
|
|
|
import type { IntlFormatters, LocaleDefinition, MessageCatalogs } from "./types"
|
|
|
|
export interface I18nRuntimeContextValue {
|
|
catalogs: MessageCatalogs
|
|
formatters: IntlFormatters
|
|
locale: LocaleDefinition
|
|
locales: readonly LocaleDefinition[]
|
|
}
|
|
|
|
export const I18nRuntimeContext =
|
|
React.createContext<I18nRuntimeContextValue | null>(null)
|