The object structure you wish to localize
The fallback document of "current doc" if accessing current doc returns undefined or a falsy value
A function that is used for transitioning values and an instance of the registered localization plugin
Example:
const t = useTranslation({heading: "this is a title"}, {heading: "fallback", "body": "this is a body"})
t("heading") // returns "this is a title"
t("body") // returns "this is a body"
Generated using TypeDoc
Use translation hook provides an easy way to access localized data and provided fallback data