useTranslation
useTranslation
Section titled “useTranslation”const { t, i18n } = useTranslation();return <button>{t("checkout.pay")}</button>;t(key, options?)- resolve a translation for the active locale; supports interpolation and plurals. When the FALCplainLanguagemode is on,t()returns theplain_languageoverlay for keys that have one.<Trans i18nKey="...">- rich-JSX translation.i18n- the instance (see A11y accessors andsetLocale/dir/setPlainLanguage).