Translating Errors
To handle an API error, use the hook:
import { useError } from "@revolt/i18n";
const err = useError();
<span>{err(someErrorObject)}</span>;
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
To handle an API error, use the hook:
import { useError } from "@revolt/i18n";
const err = useError();
<span>{err(someErrorObject)}</span>;