feat(i18n): expand catalog runtime and developer tooling
- 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
This commit is contained in:
@@ -1,7 +1,13 @@
|
||||
import { Trans, type TransProps } from "@lingui/react"
|
||||
|
||||
export type TranslateProps = TransProps
|
||||
import type { MessageDescriptor } from "./types"
|
||||
|
||||
export type TranslateProps = Omit<
|
||||
TransProps,
|
||||
"comment" | "id" | "message" | "values"
|
||||
> &
|
||||
MessageDescriptor
|
||||
|
||||
export function Translate(props: TranslateProps) {
|
||||
return <Trans {...props} />
|
||||
return <Trans {...(props as TransProps)} />
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user